/* frame.css - SpecInfo v20 Global Frame Styles */

:root {
    /* Color Palette */
    --bg-dark: #0f111a;
    --bg-surface: #1a1d27;
    --bg-surface-glass: rgba(26, 29, 39, 0.75);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;

    /* Accents */
    --accent-primary: #3b82f6;
    /* Blue High-tech */
    --accent-glow: rgba(59, 130, 246, 0.5);
    --accent-success: #10b981;
    --accent-warning: #f59e0b;
    --accent-danger: #ef4444;

    /* Utility */
    --border-color: rgba(255, 255, 255, 0.08);
    --font-sans: 'Inter', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --radius-lg: 16px;
    --radius-md: 8px;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-sans);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Global dropdown fix for invisibility on some Linux/Chromium browsers */
select {
    color-scheme: dark;
}

option {
    background-color: #0f172a;
    /* Solid dark background */
    color: #ffffff;
    -webkit-appearance: none;
    appearance: none;
}

/* Header v20 Container */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 2.5rem;
    /* Slimmer header padding */
    background: rgba(15, 17, 26, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.header-container::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
    opacity: 0.5;
}

.brand-area {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.back-btn {
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.back-btn:hover {
    background: var(--accent-primary);
    transform: translateX(-5px);
    box-shadow: 0 0 15px var(--accent-glow);
    border-color: transparent;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-text .logo {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: 1.5px;
    color: #fff;
}

.brand-text .logo span {
    color: var(--accent-primary);
    text-shadow: 0 0 10px var(--accent-glow);
}

.telemetry-status {
    font-size: 0.85rem;
    color: var(--accent-success);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1px;
    /* Minimal margin to prevent stretching */
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 1;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background-color: var(--accent-success);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-success);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.system-meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    background: rgba(0, 0, 0, 0.3);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    align-items: flex-end;
}

.meta-item span {
    color: var(--text-main);
    font-weight: 700;
}

/* =============================================
   Footer v20 — Redesigned
   ============================================= */
.v20-footer {
    margin-top: 5rem;
    background: #0a0c14;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 3rem 2.5rem;
    position: relative;
}

.v20-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.2), transparent);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* --- LEFT: Brand --- */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.footer-logo {
    font-family: var(--font-sans);
    font-weight: 900;
    font-size: 1.1rem;
    letter-spacing: 1.5px;
    color: var(--text-main);
    line-height: 1;
}

.footer-logo span {
    color: var(--accent-primary);
    text-shadow: 0 0 10px var(--accent-glow);
}

.footer-copy {
    margin: 4px 0 0 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-brand small {
    font-size: 0.8rem;
    color: var(--text-muted);
    opacity: 0.7;
}

.trading-name {
    margin-top: 10px;
    display: block;
    font-size: 0.72rem !important;
    opacity: 0.45 !important;
    line-height: 1.45;
    max-width: 280px;
}


/* --- CENTER: Navigation --- */
.footer-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.footer-nav-row {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.featured-link {
    font-weight: 800 !important;
    color: var(--accent-primary) !important;
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.4);
    opacity: 1 !important;
}

.footer-nav-row a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: inline-block;
}

.footer-nav-row a:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

.footer-nav-sub a {
    font-size: 0.85rem;
    opacity: 0.7;
    margin: 0 4px;
}

.footer-nav-sub a:hover {
    opacity: 1;
}

.support-heart {
    color: #ef4444 !important;
    font-weight: 700 !important;
    opacity: 1 !important;
}

.sep {
    color: var(--accent-primary);
    font-weight: bold;
}

/* --- RIGHT: Meta --- */
.footer-right-block {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
}


.footer-meta-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

/* Lang Selector */
.lang-selector {
    display: flex;
    align-items: center;
    gap: 4px;
}

.lang-btn {
    background: none;
    border: none;
    color: var(--accent-success);
    opacity: 0.5;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 700;
    padding: 10px 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.lang-btn.active {
    opacity: 1;
    text-shadow: 0 0 10px var(--accent-success);
}

.pipe {
    color: var(--accent-success);
    opacity: 0.2;
    font-size: 0.7rem;
}

/* Status Indicator */
.status-indicator {
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-success);
    font-weight: 800;
    font-family: var(--font-mono);
    text-transform: uppercase;
    text-shadow: 0 0 8px rgba(16, 185, 129, 0.3);
}

.dot-pulse {
    width: 6px;
    height: 6px;
    background-color: var(--accent-success);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-success);
    animation: pulse 2s infinite;
    flex-shrink: 0;
}

/* Responsive */
@media (max-width: 900px) {
    .header-container {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem 1rem;
    }

    .brand-area {
        width: 100%;
        justify-content: space-between;
    }

    .system-meta {
        width: 100%;
        box-sizing: border-box;
        align-items: center;
        font-size: 0.75rem;
        gap: 0.3rem;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-brand {
        align-items: center;
    }

    .footer-right-block {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .footer-meta-row {
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .brand-text .logo {
        font-size: 1.4rem;
    }

    .footer-qr-row {
        flex-direction: column;
        gap: 15px;
    }

    .footer-qr-divider {
        width: 60%;
        height: 1px;
        margin: 10px 0;
    }
}

/* --- SEMANTIC BLOG CTA (v2.0) --- */
.blog-cta-main {
    margin-top: 100px;
    padding: 60px 40px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 32px;
    text-align: center;
}

.cta-badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--accent-primary);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    border-radius: 40px;
    margin-bottom: 25px;
    letter-spacing: 2px;
    font-family: var(--font-mono);
    text-transform: uppercase;
}

.cta-title {
    font-size: 2.8rem;
    font-weight: 900;
    margin: 0 0 15px 0;
    color: #fff;
    letter-spacing: -1.5px;
    line-height: 1.1;
}

.cta-description {
    margin-bottom: 35px;
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-btn-primary {
    display: inline-block;
    padding: 12px 32px;
    border: 1px solid var(--accent-primary);
    color: var(--accent-primary) !important;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    text-transform: uppercase;
    font-family: var(--font-mono);
    letter-spacing: 1px;
    transition: all 0.3s;
}

.cta-btn-primary:hover {
    background: rgba(59, 130, 246, 0.1);
    transform: translateY(-3px);
    border-color: #fff;
}

.cta-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
    margin: 50px 0;
}

.support-area {
    opacity: 0.95;
}

.support-text {
    color: var(--text-muted);
    margin-bottom: 25px;
    font-size: 1rem;
}

.support-link {
    display: inline-block;
    padding: 14px 36px;
    background: var(--accent-primary);
    color: #fff !important;
    text-decoration: none;
    font-weight: 800;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.2);
}

.support-link:hover {
    transform: translateY(-4px) scale(1.03);
    background: #4f91ff;
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.4);
}

.support-link .heart {
    margin-left: 8px;
    filter: drop-shadow(0 0 5px rgba(255, 0, 0, 0.3));
}