/**
 * FF-Terminal Art Deco Terminal Styles
 * Art Deco aesthetic with gold/teal theme
 */

/* ==========================================
   TERMINAL CONTAINER
   ========================================== */

.terminal-section {
    padding: var(--section-padding) 0;
    background: #0a0807;
    min-height: 100vh;
}

.terminal-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 2rem;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* ==========================================
   SIDEBAR - DEMO SCENARIOS
   ========================================== */

.terminal-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.demo-scenarios-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--celestial-gold);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(212, 165, 116, 0.3);
}

.demo-scenario-card {
    background: rgba(26, 24, 22, 0.6);
    border: 1px solid rgba(212, 165, 116, 0.15);
    border-radius: 0.75rem;
    padding: 1.25rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.demo-scenario-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--celestial-gold), var(--celestial-teal));
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.demo-scenario-card:hover {
    border-color: var(--celestial-gold);
    background: rgba(26, 24, 22, 0.8);
    transform: translateX(4px);
}

.demo-scenario-card:hover::before {
    transform: scaleY(1);
}

.demo-scenario-card.active {
    border-color: var(--celestial-gold);
    background: rgba(0, 107, 94, 0.15);
    box-shadow: inset 0 0 0 1px rgba(212, 165, 116, 0.2);
}

.demo-scenario-card.active::before {
    transform: scaleY(1);
}

.demo-scenario-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.demo-scenario-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, rgba(0, 107, 94, 0.3), rgba(212, 165, 116, 0.15));
    border: 1px solid rgba(212, 165, 116, 0.3);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.demo-scenario-name {
    font-family: var(--font-display);
    font-size: 1.125rem;
    color: var(--celestial-cream);
    font-weight: 600;
}

.demo-scenario-desc {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
}

.demo-scenario-duration {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    color: var(--celestial-gold);
    margin-top: 0.75rem;
    padding: 0.25rem 0.625rem;
    background: rgba(212, 165, 116, 0.1);
    border-radius: 20px;
}

/* ==========================================
   TERMINAL WINDOW
   ========================================== */

.terminal-window {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(212, 165, 116, 0.3);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.5),
        0 0 60px rgba(0, 107, 94, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
}

.terminal-window::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(212, 165, 116, 0.02) 0%, 
        transparent 50%, 
        rgba(0, 107, 94, 0.02) 100%);
    pointer-events: none;
}

/* Terminal Header */
.terminal-header {
    background: linear-gradient(90deg, rgba(26, 24, 22, 0.95), rgba(10, 8, 7, 0.95));
    border-bottom: 1px solid rgba(212, 165, 116, 0.2);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.terminal-controls {
    display: flex;
    gap: 0.5rem;
}

.terminal-btn {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: none;
    cursor: default;
}

.terminal-btn.close { background: #ff5f57; }
.terminal-btn.minimize { background: #ffbd2e; }
.terminal-btn.maximize { background: #28c940; }

.terminal-title {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.terminal-title::before {
    content: '>';
    color: var(--celestial-gold);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.terminal-status {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--celestial-teal);
    animation: statusBlink 2s infinite;
}

.status-dot.active {
    background: #22c55e;
}

@keyframes statusBlink {
    0%, 100% { opacity: 1; box-shadow: 0 0 8px #22c55e; }
    50% { opacity: 0.6; box-shadow: none; }
}

/* Terminal Body */
.terminal-body {
    font-family: var(--font-mono);
    font-size: 0.9375rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    padding: 1.5rem;
    max-height: 600px;
    overflow-y: auto;
    scroll-behavior: smooth;
}

/* Custom scrollbar */
.terminal-body::-webkit-scrollbar {
    width: 8px;
}

.terminal-body::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

.terminal-body::-webkit-scrollbar-thumb {
    background: rgba(212, 165, 116, 0.3);
    border-radius: 4px;
}

.terminal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 165, 116, 0.5);
}

/* ==========================================
   TERMINAL OUTPUT STYLES
   ========================================== */

.terminal-output {
    margin-bottom: 1.5rem;
}

.terminal-line {
    margin-bottom: 0.25rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.terminal-prompt {
    color: var(--celestial-gold);
    font-weight: 600;
    white-space: nowrap;
}

.terminal-command {
    color: var(--celestial-cream);
    font-weight: 500;
}

.terminal-response {
    color: rgba(255, 255, 255, 0.85);
    margin-left: 1.5rem;
}

.terminal-success {
    color: #22c55e;
}

.terminal-warning {
    color: #fbbf24;
}

.terminal-error {
    color: #ef4444;
}

.terminal-highlight {
    color: var(--celestial-gold);
    font-weight: 500;
}

.terminal-system {
    color: rgba(0, 212, 170, 0.8);
    font-style: italic;
}

/* ==========================================
   TYPING CURSOR
   ========================================== */

.typing-cursor {
    display: inline-block;
    width: 10px;
    height: 1.2em;
    background: var(--celestial-gold);
    margin-left: 0.25rem;
    vertical-align: text-bottom;
    animation: cursorBlink 1s infinite;
}

@keyframes cursorBlink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* ==========================================
   PROGRESS BARS
   ========================================== */

.terminal-progress {
    margin: 1rem 0;
}

.progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--celestial-gold), var(--celestial-teal));
    border-radius: 3px;
    transition: width 0.3s ease;
}

.progress-label {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    justify-content: space-between;
}

/* ==========================================
   CODE BLOCKS
   ========================================== */

.terminal-code {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(212, 165, 116, 0.2);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin: 1rem 0;
    overflow-x: auto;
}

.terminal-code code {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--celestial-gold);
}

.terminal-code .comment {
    color: rgba(255, 255, 255, 0.4);
    font-style: italic;
}

.terminal-code .keyword {
    color: var(--celestial-teal-light);
}

.terminal-code .string {
    color: #86efac;
}

/* ==========================================
   LISTS & DATA TABLES
   ========================================== */

.terminal-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.terminal-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.terminal-list li:last-child {
    border-bottom: none;
}

.terminal-list .bullet {
    color: var(--celestial-gold);
}

.terminal-list .check {
    color: #22c55e;
}

.terminal-list .cross {
    color: #ef4444;
}

/* Data table */
.terminal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.875rem;
}

.terminal-table th,
.terminal-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(212, 165, 116, 0.15);
}

.terminal-table th {
    color: var(--celestial-gold);
    font-weight: 600;
    background: rgba(0, 107, 94, 0.1);
}

.terminal-table td {
    color: rgba(255, 255, 255, 0.85);
}

.terminal-table tr:hover td {
    background: rgba(212, 165, 116, 0.05);
}

/* ==========================================
   COMMAND INPUT (INACTIVE - FOR DISPLAY)
   ========================================== */

.terminal-input-line {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(212, 165, 116, 0.1);
    margin-top: 1rem;
}

.input-trigger {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--celestial-gold);
    font-size: 0.875rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    background: rgba(212, 165, 116, 0.1);
    border: 1px solid rgba(212, 165, 116, 0.3);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.input-trigger:hover {
    background: rgba(212, 165, 116, 0.2);
    border-color: var(--celestial-gold);
}

/* ==========================================
   ANIMATION CLASSES
   ========================================== */

.fade-in {
    animation: fadeIn 0.3s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.stagger-in > * {
    opacity: 0;
    animation: fadeIn 0.3s ease-out forwards;
}

.stagger-in > *:nth-child(1) { animation-delay: 0.05s; }
.stagger-in > *:nth-child(2) { animation-delay: 0.1s; }
.stlagger-in > *:nth-child(3) { animation-delay: 0.15s; }
.stagger-in > *:nth-child(4) { animation-delay: 0.2s; }
.stagger-in > *:nth-child(5) { animation-delay: 0.25s; }

/* Slide in from right */
.slide-in-right {
    animation: slideInRight 0.4s ease-out forwards;
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ==========================================
   COPY BUTTON
   ========================================== */

.copy-button {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    background: rgba(212, 165, 116, 0.1);
    border: 1px solid rgba(212, 165, 116, 0.2);
    border-radius: 4px;
    color: var(--celestial-gold);
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: 1rem;
}

.copy-button:hover {
    background: rgba(212, 165, 116, 0.2);
    border-color: var(--celestial-gold);
}

.copy-button.copied {
    background: rgba(34, 197, 94, 0.2);
    border-color: #22c55e;
    color: #22c55e;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

@media (max-width: 1024px) {
    .terminal-layout {
        grid-template-columns: 1fr;
    }

    .terminal-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1rem;
    }

    .demo-scenarios-title {
        grid-column: 1 / -1;
    }

    .demo-scenario-card {
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    .terminal-body {
        font-size: 0.875rem;
        padding: 1rem;
    }

    .terminal-header {
        padding: 0.75rem 1rem;
    }

    .terminal-title {
        font-size: 0.75rem;
    }

    .terminal-sidebar {
        grid-template-columns: 1fr;
    }

    .terminal-table {
        font-size: 0.8125rem;
    }

    .terminal-table th,
    .terminal-table td {
        padding: 0.5rem 0.75rem;
    }
}

/* ==========================================
   SECTION HERO FOR TERMINAL PAGE
   ========================================== */

.terminal-hero {
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(180deg, #0a0807 0%, #000 100%);
    position: relative;
    overflow: hidden;
}

.terminal-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(ellipse at 20% 80%, rgba(0, 107, 94, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(212, 165, 116, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.terminal-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--celestial-cream);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.terminal-hero p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    line-height: 1.7;
}

/* ==========================================
   FEATURE BADGES
   ========================================== */

.feature-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 2rem;
}

.feature-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 107, 94, 0.15);
    border: 1px solid rgba(212, 165, 116, 0.2);
    border-radius: 50px;
    font-size: 0.875rem;
    color: var(--celestial-gold);
}

.feature-badge svg {
    width: 16px;
    height: 16px;
}
