/**
 * SNR Trading Bot Frontend Stylesheet - Bloomberg Algo Theme
 * High-Tech Quantitative Forex & Binary Options Design
 */

:root {
    --bg-dark: #07090e;
    --bg-surface: #0e131f;
    --bg-card: #141c2c;
    --bg-card-hover: #1a2438;
    --accent-cyan: #00f0ff;
    --accent-green: #00ff88;
    --accent-red: #ff3366;
    --accent-gold: #f59e0b;
    --accent-telegram: #229ed9;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(0, 240, 255, 0.3);
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--accent-cyan);
    text-decoration: none;
    transition: all 0.2s ease;
}
a:hover {
    color: #38bdf8;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   Header & Navigation
   CRITICAL REQUIREMENT: Menu located EXACTLY BELOW the Logo!
   ========================================================================== */
.site-header {
    background: rgba(14, 19, 31, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Top Branding Bar containing ONLY the Logo (and Mobile toggle on small screens) */
.header-top-bar {
    padding: 16px 0 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.site-logo-link {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
}

.site-logo-img {
    max-height: 52px;
    max-width: 280px;
    height: auto;
    width: auto;
    display: block;
}

.site-logo-text-fallback {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #ffffff;
    text-transform: uppercase;
}
.site-logo-text-fallback span.brand-accent {
    color: var(--accent-cyan);
    text-shadow: 0 0 15px rgba(0, 240, 255, 0.6);
}

/* Navigation Bar located EXACTLY BELOW the Logo */
.header-nav-bar {
    padding: 10px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-navigation-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 28px;
    margin: 0;
    padding: 0;
}

.main-navigation-menu li a {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 4px;
    position: relative;
    transition: color 0.2s ease;
}

.main-navigation-menu li a:hover,
.main-navigation-menu li a.active {
    color: var(--accent-cyan);
}

.main-navigation-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--accent-cyan);
    box-shadow: 0 0 10px var(--accent-cyan);
    transition: width 0.25s ease;
}

.main-navigation-menu li a:hover::after {
    width: 100%;
}

.nav-cta-btn {
    background: linear-gradient(135deg, #0088cc 0%, #00f0ff 100%) !important;
    color: #ffffff !important;
    padding: 6px 16px !important;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 136, 204, 0.4);
}
.nav-cta-btn::after {
    display: none !important;
}
.nav-cta-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 240, 255, 0.6);
}

/* Mobile Hamburger Button */
.mobile-menu-btn {
    display: none;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 24px;
    cursor: pointer;
    padding: 6px;
    z-index: 1010;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    padding: 60px 0 50px;
    background: radial-gradient(circle at 50% 10%, rgba(0, 240, 255, 0.08) 0%, rgba(7, 9, 14, 0) 70%);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.hero-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid var(--border-glow);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
    color: var(--accent-cyan);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 24px;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.15);
}

.pulsing-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-green);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-green);
    animation: pulse 1.6s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.7); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(0, 255, 136, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 255, 136, 0); }
}

.hero-title {
    font-size: clamp(28px, 4.5vw, 52px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
    color: #ffffff;
    max-width: 950px;
    margin: 0 auto 20px;
}

.hero-title span.glow-text {
    background: linear-gradient(135deg, #ffffff 20%, #00f0ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: clamp(15px, 1.8vw, 18px);
    color: var(--text-secondary);
    max-width: 780px;
    margin: 0 auto 35px;
    line-height: 1.6;
}

/* Hero CTA Action Buttons */
.hero-cta-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 45px;
}

.btn-cta-telegram {
    background: linear-gradient(135deg, #0088cc 0%, #00b4d8 100%);
    color: #ffffff !important;
    font-size: 16px;
    font-weight: 700;
    padding: 14px 28px;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 8px 25px rgba(0, 136, 204, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.25s ease;
}
.btn-cta-telegram:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0, 180, 216, 0.6);
}

.btn-cta-signals {
    background: rgba(20, 28, 44, 0.8);
    color: var(--accent-cyan) !important;
    font-size: 16px;
    font-weight: 700;
    padding: 14px 28px;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--accent-cyan);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.15);
    transition: all 0.25s ease;
}
.btn-cta-signals:hover {
    background: rgba(0, 240, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.35);
}

/* Hero Metrics Strip */
.hero-stats-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 18px;
    max-width: 950px;
    margin: 0 auto;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 18px 14px;
    border-radius: 10px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: border-color 0.2s ease, transform 0.2s ease;
}
.stat-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-2px);
}
.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
}

.stat-value {
    font-size: 26px;
    font-weight: 800;
    color: #ffffff;
    font-family: var(--font-mono);
}
.stat-value.highlight-green {
    color: var(--accent-green);
    text-shadow: 0 0 15px rgba(0, 255, 136, 0.4);
}
.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

/* ==========================================================================
   Live Bloomberg Terminal Signals Ticker
   ========================================================================== */
.ticker-section {
    padding: 30px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background: #0a0e17;
}

.ticker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.ticker-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ticker-pair {
    font-weight: 800;
    font-size: 16px;
    font-family: var(--font-mono);
    color: #ffffff;
}

.ticker-price {
    font-size: 13px;
    color: var(--text-secondary);
    font-family: var(--font-mono);
}

.signal-action-badge {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-family: var(--font-mono);
}
.signal-call {
    background: rgba(0, 255, 136, 0.15);
    color: var(--accent-green);
    border: 1px solid rgba(0, 255, 136, 0.4);
}
.signal-put {
    background: rgba(255, 51, 102, 0.15);
    color: var(--accent-red);
    border: 1px solid rgba(255, 51, 102, 0.4);
}

/* ==========================================================================
   Section Headers & Titles
   ========================================================================== */
.section-wrapper {
    padding: 70px 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 45px;
}

.section-tag {
    color: var(--accent-cyan);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
    display: block;
}

.section-title {
    font-size: clamp(24px, 3.2vw, 36px);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.25;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 15px;
    margin-top: 10px;
}

/* ==========================================================================
   Videos Grid
   ========================================================================== */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.video-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.25s ease, border-color 0.25s ease;
    display: flex;
    flex-direction: column;
}
.video-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-glow);
}

.video-card-media {
    position: relative;
    background: #000;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.video-card-body {
    padding: 18px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.video-card-badge {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent-cyan);
    text-transform: uppercase;
    margin-bottom: 6px;
}

.video-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
    line-height: 1.35;
}

.video-card-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 14px;
    flex-grow: 1;
}

/* ==========================================================================
   Articles Grid
   ========================================================================== */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.article-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
}
.article-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-glow);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.article-card-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #111827;
}

.article-card-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.article-card-cat {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent-cyan);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.article-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
    line-height: 1.35;
}
.article-card-title a {
    color: #ffffff;
}
.article-card-title a:hover {
    color: var(--accent-cyan);
}

.article-card-excerpt {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
    flex-grow: 1;
}

.article-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 12px;
    font-size: 12px;
    color: var(--text-muted);
}

/* ==========================================================================
   Telegram Lifetime Banner CTA
   ========================================================================== */
.telegram-banner-cta {
    background: linear-gradient(135deg, rgba(34, 158, 217, 0.15) 0%, rgba(0, 240, 255, 0.05) 100%);
    border: 1px solid rgba(34, 158, 217, 0.4);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin: 40px 0;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.telegram-banner-title {
    font-size: clamp(22px, 3vw, 34px);
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 12px;
}

.telegram-banner-desc {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto 25px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background: #040609;
    border-top: 1px solid var(--border-color);
    padding: 50px 0 30px;
    font-size: 13px;
    color: var(--text-muted);
}

.footer-top-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-disclaimer-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 16px 20px;
    border-radius: 6px;
    margin-bottom: 25px;
    font-size: 12px;
    line-height: 1.6;
    color: #788296;
}

.footer-disclaimer-title {
    color: var(--accent-gold);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding-top: 20px;
    font-size: 12px;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 900px) {
    .mobile-menu-btn {
        display: block;
    }

    .header-nav-bar {
        display: none;
        width: 100%;
        padding: 0;
    }

    .site-header.mobile-expanded .header-nav-bar {
        display: block;
        border-top: 1px solid var(--border-color);
        background: var(--bg-surface);
    }

    .main-navigation-menu {
        flex-direction: column;
        gap: 0;
        width: 100%;
        padding: 10px 0;
    }

    .main-navigation-menu li {
        width: 100%;
        text-align: center;
    }

    .main-navigation-menu li a {
        display: block;
        padding: 12px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    }

    .main-navigation-menu li a::after {
        display: none;
    }

    .nav-cta-btn {
        margin: 10px 20px;
        display: inline-block;
    }

    .footer-top-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}
