/* N-Back Task Article Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;700;900&display=swap');

:root {
    --bg: #121221;
    --bg-panel: #1a1a2e;
    --accent: #FFCD30;
    --accent-glow: rgba(255, 205, 48, 0.3);
    --glass: rgba(26, 26, 46, 0.4);
    --glass-border: rgba(255, 255, 255, 0.05);
    --text: #e0e0e0;
    --text-dim: rgba(224, 224, 224, 0.5);
    --success: #00ff88;
    --success-glow: rgba(0, 255, 136, 0.2);
    --error: #ff4a4a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
}

.glow-bg {
    display: none;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Header Navigation */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 0;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-section img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.logo-text {
    font-weight: 400;
    font-size: 14px;
    letter-spacing: 2px;
    color: #fff;
}

.nav-cta-mini {
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    border: 1px solid var(--accent);
    padding: 10px 24px;
    border-radius: 50px;
    transition: all 0.3s ease;
    background: transparent;
}

.nav-cta-mini:hover {
    background: var(--accent);
    color: #000;
    box-shadow: 0 0 20px var(--accent-glow);
    transform: translateY(-2px);
}

/* Hero Section */
.article-header {
    text-align: center;
    margin-bottom: 50px;
}

.article-header-split {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    margin-bottom: 70px;
    margin-top: 20px;
}

.article-header-content {
    flex: 1.2;
    text-align: left;
}

.article-header-visual {
    flex: 0.8;
    display: flex;
    justify-content: flex-end;
}

.article-header-split .v2-title {
    margin-bottom: 20px;
    font-size: clamp(56px, 8vw, 84px);
    line-height: 0.95;
    letter-spacing: -2px;
}

.article-header-split .v2-subtitle {
    font-size: clamp(28px, 4.5vw, 36px);
    line-height: 1.1;
    margin-bottom: 25px;
    letter-spacing: -1px;
    text-transform: uppercase;
    font-weight: 900;
}

.article-header-split .v2-lead-text {
    margin: 0;
    text-align: left;
}

.article-header-split .article-meta {
    justify-content: flex-start;
}

/* Interface Mockup (from main page) */
.interface-mockup {
    background: var(--bg);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 380px;
}

.mockup-header {
    background: var(--bg-panel);
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
}

.dots {
    display: flex;
    gap: 8px;
}

.dots span {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.level-tag {
    font-size: 11px;
    font-weight: 900;
    color: var(--accent);
    text-transform: uppercase;
}

.mockup-body {
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.game-grid-v2 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.g-cell {
    width: 70px;
    height: 70px;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.g-cell.active-gold {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 30px var(--accent-glow);
}

.g-cell.success-match {
    background: var(--success);
    border-color: var(--success);
    box-shadow: 0 0 30px var(--success-glow);
}

.g-cell.center-point {
    background: rgba(255, 205, 48, 0.06);
    border: 1px dashed rgba(255, 205, 48, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 20px;
    font-weight: 700;
}

.audio-status-wrap {
    display: flex;
    align-items: center;
    gap: 20px;
}

.audio-status-wrap .speaker-icon,
.audio-status-wrap .audio-waves {
    opacity: 0.2;
    transition: all 0.3s ease;
}

.audio-status-wrap.active .speaker-icon,
.audio-status-wrap.active .audio-waves {
    opacity: 1;
}

.speaker-icon {
    width: 24px;
    height: 24px;
    color: var(--accent);
    filter: drop-shadow(0 0 8px var(--accent-glow));
}

.audio-waves {
    display: flex;
    gap: 6px;
    height: 30px;
    align-items: center;
}

.bar {
    width: 4px;
    height: 40%;
    background: var(--accent);
    border-radius: 4px;
    animation: bar-dance 1.5s infinite ease-in-out;
}

.bar:nth-child(2) {
    animation-delay: 0.2s;
    height: 70%;
}

.bar:nth-child(3) {
    animation-delay: 0.4s;
    height: 100%;
}

.bar:nth-child(4) {
    animation-delay: 0.1s;
    height: 50%;
}

.mockup-letter {
    font-size: 28px;
    font-weight: 900;
    color: var(--accent);
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mockup-letter.active {
    opacity: 1;
    transform: scale(1);
}

.mockup-letter.success-text {
    color: var(--success);
    text-shadow: 0 0 15px var(--success-glow);
}

@keyframes bar-dance {

    0%,
    100% {
        height: 40%;
    }

    50% {
        height: 100%;
    }
}

.v2-title {
    font-size: clamp(26px, 4.5vw, 44px);
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1.2;
    margin-bottom: 25px;
}

.inline-h1 {
    display: inline;
    font-size: inherit;
    font-weight: inherit;
    text-transform: inherit;
    line-height: inherit;
    margin: 0;
    padding: 0;
}

.gold-gradient {
    background: linear-gradient(135deg, #ffcd30 0%, #ff9900 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.v2-lead-text {
    font-size: 18px;
    color: var(--text-dim);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 25px;
    font-size: 13px;
    color: var(--text-dim);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.meta-item svg {
    width: 14px;
    height: 14px;
}

/* Section Cards */
.article-section {
    margin-bottom: 60px;
}

.section-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 45px;
    border-radius: 30px;
    backdrop-filter: blur(20px);
}

.section-card h3 {
    font-size: 24px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-card p {
    color: var(--text-dim);
    margin-bottom: 22px;
    font-size: 16px;
    line-height: 1.7;
}

.section-card p strong {
    color: #fff;
}

/* Two-column block for "Development vs Gaming" */
.dilemma-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.dilemma-box {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--glass-border);
    padding: 30px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.dilemma-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.dilemma-header h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 0;
}

.dilemma-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.dilemma-box.brain-growth .dilemma-icon {
    color: var(--success);
}

.dilemma-box.score-gaming .dilemma-icon {
    color: var(--error);
}

.dilemma-box.brain-growth h4 {
    color: var(--success);
}

.dilemma-box.score-gaming h4 {
    color: var(--error);
}

.dilemma-box p {
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 12px 0;
    color: var(--text-dim);
}

.dilemma-box p:last-child {
    margin-bottom: 0;
}

/* Tips Vertical List */
.tips-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 30px;
}

.tip-row-card {
    display: flex;
    gap: 25px;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--glass-border);
    padding: 30px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.tip-row-card:hover {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 205, 48, 0.15);
    transform: translateX(5px);
}

.tip-num-badge {
    width: 50px;
    height: 50px;
    background: rgba(255, 205, 48, 0.06);
    border: 1px solid rgba(255, 205, 48, 0.15);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-weight: 900;
    font-size: 20px;
    flex-shrink: 0;
}

.tip-info-content h4 {
    font-size: 18px;
    color: #fff;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.tip-stat-tag {
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1px;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-dim);
    border: 1px solid var(--glass-border);
}

.tip-stat-tag.energy {
    color: var(--success);
    background: rgba(0, 255, 136, 0.04);
    border-color: rgba(0, 255, 136, 0.1);
}

.tip-row-card:hover .tip-num-badge {
    background: var(--accent);
    color: #000;
    box-shadow: 0 0 15px var(--accent-glow);
}

/* Center-focus interactive simulator */
.sim-showcase {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 35px;
    margin-top: 35px;
}

.sim-flex-row {
    display: flex;
    gap: 35px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.sim-grid-layout {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 8px;
    width: 200px;
    height: 200px;
    background: rgba(0, 0, 0, 0.3);
    padding: 10px;
    border-radius: 18px;
    border: 1px solid var(--glass-border);
    position: relative;
}

.grid-cell-item {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.grid-cell-item.flash-accent {
    background: var(--accent);
    box-shadow: 0 0 15px var(--accent-glow);
}

.grid-cell-item.center-point {
    background: rgba(255, 205, 48, 0.06);
    border: 1px dashed rgba(255, 205, 48, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 20px;
    font-weight: 700;
}

.grid-cell-item.center-point.glow {
    box-shadow: 0 0 20px var(--accent-glow);
    border-color: var(--accent);
}

.sim-text-column {
    flex-grow: 1;
    max-width: 450px;
}

.sim-text-column h4 {
    font-size: 18px;
    color: #fff;
    margin-bottom: 12px;
}

.sim-text-column p {
    font-size: 14px;
    color: var(--text-dim);
    line-height: 1.6;
    margin-bottom: 15px;
}

.sim-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 900;
    color: var(--accent);
    border: 1px solid rgba(255, 205, 48, 0.2);
    background: rgba(255, 205, 48, 0.03);
    padding: 4px 10px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sim-live-badge span:first-child {
    display: block;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    animation: simPulse 2s infinite;
}

@keyframes simPulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 205, 48, 0.4); }
    70% { box-shadow: 0 0 0 6px rgba(255, 205, 48, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 205, 48, 0); }
}

.sim-text-column p.sim-status-hint {
    font-size: 13px;
    color: var(--accent);
    font-weight: bold;
    min-height: 40px;
    margin-top: 15px;
    margin-bottom: 20px;
    text-align: center;
    line-height: 1.5;
}

#focus-status-text {
    color: var(--accent);
    font-weight: bold;
}

/* Slider Controls */
.sim-slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}
.sim-btn-nav {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}
.sim-btn-nav:hover {
    background: var(--accent);
    color: #000;
    box-shadow: 0 0 10px var(--accent-glow);
}
.sim-dots {
    display: flex;
    gap: 8px;
}
.sim-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.2s ease;
}
.sim-dot.active {
    background: var(--accent);
    transform: scale(1.2);
}

/* Slide Specific Micro-UI */
.grid-cell-item.doubt-accent {
    background: rgba(255, 100, 100, 0.1);
    color: var(--error);
    box-shadow: 0 0 10px rgba(255, 100, 100, 0.3);
}
.grid-cell-item.energy-high {
    background: rgba(100, 255, 100, 0.2);
    box-shadow: 0 0 15px rgba(100, 255, 100, 0.4);
}
.grid-cell-item.energy-low {
    background: rgba(150, 150, 150, 0.1);
    opacity: 0.5;
}

.sim-overlay {
    position: absolute;
    z-index: 10;
    animation: fadeIn 0.3s ease;
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

.thought-bubble {
    top: -30px;
    right: -20px;
    background: var(--accent);
    color: #000;
    padding: 6px 12px;
    border-radius: 12px 12px 12px 0;
    font-weight: 800;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}
.battery-icon {
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.8);
    border: 1px solid var(--glass-border);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
    white-space: nowrap;
}
.battery-icon.high { color: var(--success); }
.battery-icon.low { color: var(--error); }

.stats-panel {
    bottom: -45px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.8);
    border: 1px solid var(--glass-border);
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: normal;
    text-align: center;
    line-height: 1.4;
    width: 140px;
    color: #fff;
}

/* Call to Action */
.cta-section {
    text-align: center;
    padding: 70px 0;
    margin-top: 40px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 35px;
}

.btn-primary {
    display: inline-block;
    background: var(--accent);
    color: #000;
    text-decoration: none;
    font-weight: 900;
    font-size: 15px;
    padding: 16px 36px;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 5px 15px var(--accent-glow);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 205, 48, 0.5);
}

.btn-secondary {
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    padding: 16px 36px;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: transparent;
}

.btn-secondary:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

/* Адаптивность / Responsiveness */
@media (max-width: 992px) {
    .article-header-split {
        flex-direction: column;
        justify-content: flex-start;
        gap: 0;
        margin-top: 30px;
        margin-bottom: 60px;
        text-align: center;
    }
    
    .article-header-content {
        display: contents;
    }
    
    .article-header-split .v2-title {
        order: 1;
        margin-bottom: 15px;
        text-align: center;
    }
    
    .article-header-split .v2-subtitle {
        order: 2;
        margin-bottom: 20px;
        text-align: center;
    }
    
    .article-header-split .v2-lead-text {
        order: 3;
        margin-bottom: 30px;
        text-align: center;
    }

    .article-header-visual {
        order: 4;
        justify-content: center;
        width: 100%;
        margin-bottom: 30px;
    }
    
    .article-header-split .article-meta {
        order: 5;
        margin-top: 0;
        justify-content: center;
    }
    
    .article-header-split .v2-title {
        font-size: clamp(40px, 8vw, 64px);
    }
    
    .article-header-split .v2-subtitle {
        font-size: clamp(24px, 5vw, 32px);
    }
    
    .sim-flex-row {
        flex-direction: column;
        align-items: center;
    }
    
    .dilemma-grid {
        grid-template-columns: 1fr;
    }
    
    .article-header-split .v2-title {
        font-size: clamp(40px, 8vw, 64px);
    }
    
    .article-header-split .v2-subtitle {
        font-size: clamp(24px, 5vw, 32px);
    }
}

@media (max-width: 768px) {
    .game-grid-v2 {
        gap: 10px;
    }
    .g-cell {
        width: 60px;
        height: 60px;
    }
    
    .section-card {
        padding: 20px;
        border-radius: 20px;
    }
    
    .tip-row-card {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
    }
    
    .dilemma-box {
        padding: 20px;
    }
    
    .sim-showcase {
        padding: 20px;
    }
    
    .sim-text-column {
        width: 100%;
        text-align: center;
    }
    
    .sim-text-column h4 {
        justify-content: center;
    }
}
