/* =========================================================
   Chamber War – Content Sections (Norisk Pixel Style)
   ========================================================= */

.section {
    padding: 96px 0;
    position: relative;
    border-bottom: 1px solid var(--border);
}

.section--alt {
    background: linear-gradient(to bottom, var(--stone-dark), var(--stone-light), var(--stone-dark));
}

.section--page {
    padding-top: 120px;
    min-height: 60vh;
}

.section-actions {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

/* ---------- Section Dividers ---------- */
.section-divider {
    display: none; /* Hide dividers for cleaner pixel layout */
}

/* ---------- Section Headers ---------- */
.section-head,
.subsection-head {
    margin-bottom: 48px;
    max-width: 720px;
    margin-inline: auto;
    text-align: center;
}

.section-kicker {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    color: #8fb2ff;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.section-title {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    color: #90b5ff;
    text-shadow: 0 0 30px rgba(77, 124, 255, 0.5);
    margin-bottom: 16px;
    text-transform: uppercase;
}

.section-intro {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.subsection-title {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    color: #fff;
}

/* ---------- Pixel Frames (Global Card Style) ---------- */
.pixel-frame {
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    padding: 24px;
    transition: all 0.3s ease;
    /* Simulate a slight chunky border or just keep it minimal like Norisk */
}

.pixel-frame:hover {
    border-color: rgba(77, 124, 255, 0.4);
    background: rgba(255, 255, 255, 0.04);
}

/* ---------- Image Placeholder ---------- */
.image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border);
    color: var(--text-muted);
    aspect-ratio: 16 / 10;
    width: 100%;
    margin-bottom: 20px;
}

.image-placeholder__icon {
    display: inline-flex;
    width: 30px;
    height: 30px;
    color: var(--teal);
}

.image-placeholder__icon .icon { width: 100%; height: 100%; }
.image-placeholder__label { font-family: var(--font-heading); font-size: 0.85rem; }

/* ---------- Goals Grid ---------- */
.goals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 80px;
}

.goal-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    padding: 32px 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.goal-card:hover {
    border-color: var(--border-bright);
    box-shadow: 0 8px 30px rgba(0,0,0,0.5), inset 0 0 20px rgba(77, 124, 255, 0.05);
}

.goal-card .icon-badge { margin: 0 auto 20px; }
.goal-card h3 { font-size: 1.1rem; color: #fff; margin-bottom: 12px; }
.goal-card p { font-size: 0.95rem; margin: 0; }

/* ---------- Timeline ---------- */
.timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 28px;
}

.timeline-step {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    padding: 24px;
    position: relative;
    transition: border-color 0.3s ease;
}

.timeline-step:hover { border-color: var(--copper); }

.timeline-step__marker {
    position: absolute;
    top: -16px;
    left: 20px;
    width: 32px;
    height: 32px;
    background: var(--copper);
    border: 2px solid var(--stone-dark);
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-step__marker span {
    font-family: var(--font-heading);
    color: var(--stone-dark);
    font-size: 0.9rem;
}

.timeline-step h4 {
    font-size: 1.1rem;
    color: var(--teal);
    margin-bottom: 8px;
}

/* ---------- Features Grid ---------- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    padding: 28px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: var(--teal);
    box-shadow: inset 0 0 30px rgba(77,124,255,0.05);
}

.feature-card__header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin: 0;
    color: #fff;
}

.feature-card li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.feature-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 6px;
    height: 6px;
    background: var(--ominous);
}

/* ---------- CTA Band ---------- */
.cta-band {
    padding: 100px 0;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(to bottom, var(--stone-dark), #0a0f1f, var(--stone-dark));
}

.cta-band__inner {
    text-align: center;
}

.cta-band h2 {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    color: #fff;
    margin-bottom: 16px;
}

.cta-band p {
    max-width: 50ch;
    margin: 0 auto 32px;
    font-size: 1rem;
}

/* ---------- Roadmap ---------- */
.roadmap-timeline {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 800px;
    margin: 0 auto;
}

.roadmap-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    padding: 24px;
    display: flex;
    gap: 20px;
    transition: border-color 0.3s ease;
}

.roadmap-item:hover { border-color: rgba(255, 255, 255, 0.15); }
.roadmap-item--done { border-color: rgba(110, 230, 110, 0.3); }
.roadmap-item--in_progress { border-color: rgba(255, 226, 122, 0.3); }

.roadmap-item__track { display: none; }
.roadmap-item__body { flex: 1; }
.roadmap-item__header { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; }

.roadmap-status {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}
.roadmap-status--done { color: var(--ominous); background: rgba(110, 230, 110, 0.1); }
.roadmap-status--in_progress { color: var(--copper); background: rgba(255, 226, 122, 0.1); }

.roadmap-item h3 { font-size: 1.25rem; margin: 0; color: #fff; }
.roadmap-item p { font-size: 0.95rem; margin: 0; }

/* ---------- News ---------- */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 960px;
    margin: 0 auto;
}

.news-list--teaser {
    max-width: 900px;
}

.news-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: inherit;
}

.news-card:hover {
    border-color: rgba(45, 212, 191, 0.35);
    background: rgba(255, 255, 255, 0.03);
}

.news-card--compact {
    padding: 14px 16px;
}

.news-card__body {
    flex: 1;
    min-width: 0;
}

.news-card__head {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.news-card h2 {
    margin: 0 0 4px;
    font-size: 1.05rem;
    color: #fff;
    line-height: 1.35;
}

.news-card--compact h2 {
    font-size: 0.98rem;
    margin-bottom: 2px;
}

.news-card--compact .text-muted {
    display: none;
}

.news-card__meta {
    margin: 0;
    font-size: 0.82rem;
}

.news-card__arrow {
    flex-shrink: 0;
    opacity: 0.45;
    font-size: 1.1rem;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.news-card:hover .news-card__arrow {
    opacity: 1;
    transform: translateX(3px);
}

.news-avatar {
    border-radius: 6px;
    image-rendering: pixelated;
    flex-shrink: 0;
}

.news-avatar--sm {
    width: 32px;
    height: 32px;
}

.news-tag {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.news-tag--news {
    background: rgba(45, 212, 191, 0.15);
    color: #5eead4;
}

.news-tag--changelog {
    background: rgba(217, 119, 87, 0.15);
    color: #f0a080;
}

.news-page-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 28px;
}

.news-page-tabs__link {
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.news-page-tabs__link:hover {
    border-color: rgba(61, 214, 200, 0.35);
    color: #fff;
}

.news-page-tabs__link--active {
    border-color: rgba(61, 214, 200, 0.45);
    background: rgba(61, 214, 200, 0.08);
    color: var(--teal);
}

.news-empty,
.news-page-back {
    text-align: center;
    margin-top: 8px;
}

.news-page-back a {
    color: var(--teal);
    text-decoration: none;
    font-size: 0.9rem;
}

.news-page-back a:hover {
    text-decoration: underline;
}

/* ---------- Legal Pages ---------- */
.legal-section { padding: 120px 0 80px; }
.legal-page { max-width: 800px; margin: 0 auto; }
.legal-page h1 { font-size: 2rem; margin-bottom: 12px; color: #fff; }
.legal-page h2 { font-size: 1.25rem; color: var(--teal); margin: 28px 0 12px; }
.legal-page h3 { font-size: 1.1rem; color: #fff; margin: 20px 0 10px; }
.legal-page p, .legal-page li { color: var(--text-muted); font-size: 0.95rem; }
.legal-page a { color: var(--teal); }
