/* What is Dual N-Back 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.7);
    --success: #00ff88;
    --success-glow: rgba(0, 255, 136, 0.2);
}

* {
    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;
}

.page-container {
    padding-bottom: 80px;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Hero Section */
.article-header {
    margin-bottom: 50px;
    margin-top: 40px;
}

.v2-title {
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 25px;
    letter-spacing: -1px;
}

.v2-title .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);
    line-height: 1.7;
    max-width: 800px;
}

/* Section Cards */
.article-section {
    margin-bottom: 50px;
}

.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: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 15px;
}

.section-card p {
    color: var(--text-dim);
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.8;
}

.section-card p strong {
    color: #fff;
}

.section-card ul {
    list-style: none;
    margin-bottom: 25px;
}

.section-card ul li {
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
    color: var(--text-dim);
    line-height: 1.7;
}

.section-card ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 12px;
    height: 12px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-glow);
}

.article-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
    padding: 10px 20px;
    background: rgba(255, 205, 48, 0.05);
    border: 1px solid rgba(255, 205, 48, 0.2);
    border-radius: 12px;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.article-link:hover {
    background: var(--accent);
    color: #000;
    box-shadow: 0 0 20px var(--accent-glow);
    transform: translateY(-2px);
}

/* Call to Action */
.cta-section {
    text-align: center;
    padding: 40px 0;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.btn-primary {
    display: inline-block;
    background: var(--accent);
    color: #000;
    text-decoration: none;
    font-weight: 900;
    font-size: 16px;
    padding: 16px 40px;
    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);
}

/* Isometric Hero Visual */
.hero-visual-isometric {
    width: 100%;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    perspective: 1000px;
}
.isometric-grid-wrapper {
    position: relative;
    transform: rotateX(60deg) rotateZ(-45deg);
    transform-style: preserve-3d;
    animation: floatGrid 6s ease-in-out infinite;
}
@keyframes floatGrid {
    0%, 100% { transform: rotateX(60deg) rotateZ(-45deg) translateZ(0px); }
    50% { transform: rotateX(60deg) rotateZ(-45deg) translateZ(15px); }
}
.isometric-glass-base {
    position: absolute;
    width: 260px;
    height: 260px;
    top: -10px;
    left: -10px;
    background: linear-gradient(135deg, rgba(255,205,48,0.1), rgba(0,153,255,0.05));
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.8);
    transform: translateZ(-20px);
}
.isometric-grid {
    display: grid;
    grid-template-columns: repeat(3, 80px);
    grid-template-rows: repeat(3, 80px);
    gap: 6px;
    background: rgba(26,26,46,0.6);
    padding: 6px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
}
.iso-cell {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 6px;
    transition: all 0.3s;
}
.active-cell {
    animation: flashCell 1.5s ease-out forwards;
}
@keyframes flashCell {
    0% { background: rgba(255,255,255,0.03); box-shadow: none; border-color: rgba(255,255,255,0.08); }
    15%, 40% { background: var(--accent); box-shadow: 0 0 20px var(--accent), 0 0 40px rgba(255,205,48,0.5); border-color: #fff; }
    100% { background: rgba(255,255,255,0.03); box-shadow: none; border-color: rgba(255,255,255,0.08); }
}
.audio-waves {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotateZ(45deg) rotateX(-60deg) translateZ(80px);
    display: flex;
    align-items: center;
    gap: 6px;
    filter: drop-shadow(0 0 10px var(--accent-glow));
}
.audio-waves span {
    display: block;
    width: 6px;
    background: var(--accent);
    border-radius: 3px;
    transform: scaleY(0.1);
    opacity: 0;
}
.audio-waves span:nth-child(1), .audio-waves span:nth-child(5) { height: 15px; }
.audio-waves span:nth-child(2), .audio-waves span:nth-child(4) { height: 25px; }
.audio-waves span:nth-child(3) { height: 40px; }

.audio-waves.play-wave span {
    animation: soundWave 1.5s ease-out forwards;
}
.audio-waves.play-wave span:nth-child(1) { animation-delay: 0s; }
.audio-waves.play-wave span:nth-child(2) { animation-delay: 0.1s; }
.audio-waves.play-wave span:nth-child(3) { animation-delay: 0.2s; }
.audio-waves.play-wave span:nth-child(4) { animation-delay: 0.1s; }
.audio-waves.play-wave span:nth-child(5) { animation-delay: 0s; }

@keyframes soundWave {
    0% { transform: scaleY(0.1); opacity: 0; }
    15%, 40% { transform: scaleY(1); opacity: 1; }
    100% { transform: scaleY(0.1); opacity: 0; }
}


/* Layout enhancements */
.article-header-split {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-bottom: 60px;
    margin-top: 20px;
}
.article-header-content {
    flex: 1;
    min-width: 300px;
}
.article-header-visual {
    flex: 1;
    min-width: 300px;
}
.category-tag-link {
    text-decoration: none;
}
.category-tag {
    background: rgba(255, 205, 48, 0.1);
    color: var(--accent);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(255, 205, 48, 0.3);
}
.article-meta {
    display: flex;
    gap: 20px;
    margin-top: 25px;
    color: var(--text-dim);
    font-size: 14px;
}
.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}
.meta-item svg {
    width: 16px;
    height: 16px;
    color: var(--accent);
}

.section-heading {
    text-align: center;
    margin-bottom: 40px;
}
.section-heading h3 {
    font-size: 32px;
    margin-bottom: 15px;
    color: #fff;
    font-weight: 800;
    line-height: 1.2;
}
.section-heading p {
    color: var(--text-dim);
    max-width: 700px;
    margin: 0 auto;
    font-size: 16px;
}

/* Channel Grid */
.channel-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 30px;
}
.channel-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    transition: transform 0.3s;
}
.channel-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255,255,255,0.1);
}
.channel-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
}
.visual-icon {
    background: rgba(0, 153, 255, 0.1);
    border: 1px solid rgba(0, 153, 255, 0.3);
}
.audio-icon {
    background: rgba(255, 205, 48, 0.1);
    border: 1px solid rgba(255, 205, 48, 0.3);
    color: var(--accent);
}
.audio-icon svg { width: 30px; height: 30px; }
.grid-3x3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    width: 30px;
    height: 30px;
}
.grid-3x3 div {
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
}
.grid-3x3 div.active {
    background: #0099ff;
    box-shadow: 0 0 10px #0099ff;
}
.channel-card h4 {
    margin-bottom: 10px;
    font-size: 20px;
    color: #fff;
}
.channel-card p {
    color: var(--text-dim);
    font-size: 15px;
}

.centered-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px;
    color: var(--text-dim);
}

/* N Levels Grid */
.n-levels-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}
.n-level-card {
    background: rgba(26, 26, 46, 0.3);
    border: 1px solid var(--glass-border);
    padding: 25px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}
.n-level-card.active-level {
    background: rgba(255, 205, 48, 0.05);
    border-color: rgba(255, 205, 48, 0.2);
}
.level-badge {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.level-badge .tag {
    font-size: 12px;
    background: var(--accent);
    color: #000;
    padding: 3px 8px;
    border-radius: 10px;
    font-weight: 700;
    text-transform: uppercase;
}
.n-level-card p {
    color: var(--text-dim);
    font-size: 14px;
    line-height: 1.6;
}

/* Info Alert */
.info-alert {
    display: flex;
    gap: 15px;
    background: rgba(255, 205, 48, 0.05);
    border: 1px solid rgba(255, 205, 48, 0.3);
    padding: 20px;
    border-radius: 15px;
    align-items: center;
}
.info-alert svg {
    width: 24px;
    height: 24px;
    color: var(--accent);
    flex-shrink: 0;
}
.info-alert p {
    margin: 0;
    color: rgba(255,255,255,0.9);
    font-size: 15px;
}
.info-alert a {
    color: var(--accent);
    font-weight: 700;
    text-decoration: underline;
}

/* Premium Card (for Impact & Contrast grids) */
.premium-card {
    background: linear-gradient(180deg, rgba(26,26,46,0.6) 0%, rgba(18,18,33,0.9) 100%);
    border: 1px solid rgba(255, 205, 48, 0.15);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255, 205, 48, 0.1);
    position: relative;
    overflow: hidden;
}
.premium-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.6;
}

/* Impact Card */
.impact-card {
    padding: 40px;
    border-radius: 20px;
    margin-bottom: 50px;
}
.impact-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}
.impact-year {
    background: var(--accent);
    color: #000;
    font-weight: 900;
    font-size: 18px;
    padding: 5px 12px;
    border-radius: 8px;
}
.impact-header h4 {
    font-size: 24px;
    color: #fff;
}
.impact-card > p {
    font-size: 18px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 30px;
    line-height: 1.6;
}
.impact-results {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
}
.result-item h5 {
    color: var(--accent);
    font-size: 16px;
    margin-bottom: 10px;
}
.result-item p {
    color: var(--text-dim);
    font-size: 14px;
}

/* Reversed Impact Card for Checkerboard */
.impact-card.reversed {
    text-align: right;
}
.impact-card.reversed .impact-header {
    flex-direction: row-reverse;
}
.impact-card.reversed .impact-results {
    direction: rtl;
}
.impact-card.reversed .result-item {
    direction: ltr;
}

.centered-subtitle {
    text-align: center;
    font-size: 24px;
    color: #fff;
    margin-bottom: 30px;
}

/* Contrast Grid */
.contrast-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}
.contrast-card {
    padding: 35px;
    border-radius: 20px;
}
.contrast-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 20px;
    color: var(--accent);
}
.contrast-icon svg {
    width: 100%;
    height: 100%;
}
.contrast-card h4 {
    color: #fff;
    font-size: 20px;
    margin-bottom: 15px;
}
.contrast-card p {
    color: var(--text-dim);
    font-size: 15px;
    line-height: 1.7;
}

/* Brain Features */
.brain-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}
.b-feature {
    background: rgba(26,26,46,0.4);
    border: 1px solid var(--glass-border);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
}
.b-feature:hover {
    background: rgba(26,26,46,0.8);
    transform: translateY(-5px);
    border-color: rgba(255, 205, 48, 0.5);
    box-shadow: 0 10px 30px rgba(255, 205, 48, 0.1);
}
.b-feature:hover .b-icon {
    color: var(--accent);
    border-color: rgba(255, 205, 48, 0.5);
    box-shadow: 0 0 15px rgba(255, 205, 48, 0.2);
}
.b-icon {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.05);
    border-radius: 15px;
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #fff;
    transition: all 0.3s ease;
}
.b-icon svg { width: 24px; height: 24px; }
.b-feature h4 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 12px;
}
.b-feature p {
    color: var(--text-dim);
    font-size: 14px;
}

/* Rules List */
.rules-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}
.rule-card {
    display: flex;
    align-items: center;
    gap: 30px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 30px 40px;
    border-radius: 20px;
}
.rule-card:nth-child(even) {
    flex-direction: row-reverse;
    text-align: right;
    background: linear-gradient(90deg, rgba(26,26,46,0.2), rgba(26,26,46,0.6));
}
.rule-card:nth-child(odd) {
    background: linear-gradient(270deg, rgba(26,26,46,0.2), rgba(26,26,46,0.6));
}
.rule-num {
    font-size: 56px;
    font-weight: 900;
    color: var(--accent);
    line-height: 1;
    text-shadow: 0 0 20px var(--accent-glow);
}
.rule-content h4 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 8px;
}
.rule-content p {
    color: var(--text-dim);
    font-size: 15px;
    margin: 0;
}

.explore-more-card {
    background: rgba(255, 205, 48, 0.05);
    border: 1px dashed rgba(255, 205, 48, 0.3);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
}
.explore-more-card p {
    color: rgba(255,255,255,0.9);
    margin-bottom: 15px;
    font-size: 16px;
}
.btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border: 1px solid var(--accent);
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
    border-radius: 30px;
    transition: all 0.3s;
}
.btn-secondary:hover {
    background: var(--accent);
    color: #000;
}

/* Responsive adjustments */
@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-lead-text {
        order: 2;
        margin-bottom: 30px;
        text-align: center;
        max-width: 100%;
    }

    .article-header-visual {
        order: 3;
        justify-content: center;
        width: 100%;
        margin-bottom: 30px;
    }
    
    .article-header-split .article-meta {
        order: 4;
        margin-top: 0;
        justify-content: center;
    }
    
    .article-header-split .v2-title {
        font-size: clamp(40px, 8vw, 64px);
    }
}

@media (max-width: 900px) {
    .n-levels-grid { grid-template-columns: 1fr; }
    .brain-features { grid-template-columns: 1fr; }
    .impact-results { grid-template-columns: 1fr; }
    
    .impact-card.reversed {
        text-align: left;
    }
    .impact-card.reversed .impact-header {
        flex-direction: row;
    }
    .impact-card.reversed .impact-results {
        direction: ltr;
    }
    .impact-card.reversed .result-item {
        direction: ltr;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    .v2-title {
        font-size: 32px;
    }
    .section-card {
        padding: 30px 20px;
    }
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    .cta-buttons .btn-primary {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .channel-grid { grid-template-columns: 1fr; }
    .contrast-grid { grid-template-columns: 1fr; }
    
    .rule-card, 
    .rule-card:nth-child(even) { 
        flex-direction: column; 
        text-align: center; 
        gap: 15px; 
        background: var(--glass);
    }
}
