/* ============================================
   genre.css — Training Genre Page
============================================ */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --primary:       #00599d;
    --primary-c:     #0072c6;
    --tertiary:      #8c4300;
    --on-surface:    #1a1c1c;
    --on-surf-var:   #414752;
    --surf-low:      #f3f3f3;
    --surf-lowest:   #ffffff;
    --surf-high:     #e8e8e8;
    --surf-highest:  #e2e2e2;
    --secondary-c:   #bcd6fd;
    --on-sec-c:      #435d7e;
    --outline-var:   #c0c7d3;
}

/* =====================
   BASE
===================== */
.genre-main {
    font-family: 'Manrope', sans-serif;
    color: var(--on-surface);
}

/* =====================
   HERO
===================== */
.genre-hero {
    text-align: center;
    padding: 100px 48px 72px;
    max-width: 1280px;
    margin: 0 auto;
}

.genre-badge {
    display: inline-block;
    padding: 6px 18px;
    margin-bottom: 24px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    background: var(--secondary-c);
    color: var(--on-sec-c);
    border-radius: 999px;
}

.genre-hero h1 {
    font-size: clamp(3.5rem, 9vw, 6.5rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1.05;
    margin-bottom: 24px;
    white-space: nowrap;
}

.text-primary-g { color: var(--primary); }
.italic { font-style: italic; }

.genre-hero p {
    font-size: 1.2rem;
    color: var(--on-surf-var);
    line-height: 1.75;
    max-width: 640px;
    margin: 0 auto;
}

/* =====================
   SECTIONS
===================== */
.genre-section {
    padding: 96px 48px;
}

.bg-low   { background: var(--surf-low); }
.bg-white { background: var(--surf-lowest); }

.genre-container {
    max-width: 1200px;
    margin: 0 auto;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

/* Alternating order */
/* Alternating order: order-2 = pull left (first), order-1 = push right (second) */
@media (min-width: 1025px) {
    .order-1 { order: 2; }
    .order-2 { order: 1; }
}

/* =====================
   TYPOGRAPHY IN SECTIONS
===================== */
.genre-icon {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 20px;
    display: block;
}

.genre-section h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
    line-height: 1.2;
}

.genre-body {
    font-size: 1.075rem;
    color: var(--on-surf-var);
    line-height: 1.75;
    margin-bottom: 32px;
}

/* =====================
   IMAGES
===================== */
.genre-img-box {
    aspect-ratio: 1 / 1;
    border-radius: 24px;
    overflow: hidden;
    background: var(--surf-highest);
    box-shadow: 0 25px 60px rgba(15,23,42,0.12);
}

.genre-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.grayscale-img {
    filter: grayscale(1) contrast(1.25);
    mix-blend-mode: multiply;
    opacity: 0.8;
}

.genre-img-rounded {
    width: 100%;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(15,23,42,0.12);
    display: block;
    max-height: 420px;
    object-fit: cover;
}

/* =====================
   CARD STACK
===================== */
.card-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stack-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 14px;
    background: var(--surf-lowest);
    box-shadow: 0 2px 8px rgba(15,23,42,0.06);
}

.stack-card.border-primary { border-left: 4px solid var(--primary); }
.stack-card.border-tertiary { border-left: 4px solid var(--tertiary); }

.stack-card h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
}

.stack-card p {
    font-size: 13px;
    color: var(--on-surf-var);
    margin: 0;
}

.stack-label {
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
}

/* =====================
   BULLET LIST
===================== */
.bullet-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.bullet-list li {
    display: flex;
    align-items: center;
    gap: 16px;
    font-weight: 500;
}

.bullet-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    flex-shrink: 0;
}

/* =====================
   ICON QUAD GRID
===================== */
.icon-quad-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.icon-quad-card {
    aspect-ratio: 1 / 1;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(15,23,42,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
}

.bg-primary-c { background: var(--primary-c); }
.bg-gray       { background: var(--surf-highest); }

/* =====================
   INFO BOX
===================== */
.info-box {
    background: var(--surf-low);
    padding: 32px;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.info-row {
    display: flex;
    gap: 16px;
    align-items: center;
}

.info-row span:last-child { color: var(--on-surf-var); }

/* =====================
   TAG CLOUD
===================== */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 10px; }

.genre-tag {
    padding: 8px 18px;
    background: var(--secondary-c);
    color: var(--on-sec-c);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
}

/* =====================
   BOARD GAME GRID
===================== */
.board-grid-box {
    padding: 48px;
    background: var(--surf-lowest);
    border-radius: 24px;
    box-shadow: 0 2px 10px rgba(15,23,42,0.05);
    border: 1px solid rgba(192,199,211,0.15);
}

.mini-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.mini-cell {
    height: 64px;
    background: var(--surf-high);
    border-radius: 8px;
}

.primary-tint  { background: rgba(0, 89, 157, 0.15); }
.tertiary-tint { background: rgba(140, 67, 0, 0.15); }

/* =====================
   ICON TEXT ROWS
===================== */
.icon-text-rows { display: flex; flex-direction: column; gap: 16px; }

.icon-text-row {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 15px;
    font-weight: 600;
}

.font-semibold { font-weight: 600; }

/* =====================
   LEADERBOARD
===================== */
.leaderboard-box {
    background: var(--surf-lowest);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(15,23,42,0.06);
}

.lb-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(192,199,211,0.15);
    font-size: 14px;
}

.lb-row:last-child { border-bottom: none; }
.score   { font-weight: 900; color: var(--primary); }
.running { color: var(--on-surf-var); }
.font-bold { font-weight: 700; }

/* =====================
   SCENARIO BOX
===================== */
.scenario-box {
    aspect-ratio: 16 / 9;
    background: var(--surf-high);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
}

.scenario-inner {
    width: 100%;
    height: 100%;
    border: 2px dashed var(--outline-var);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scenario-label {
    font-weight: 700;
    color: #717783;
}

/* =====================
   CHIP ROW
===================== */
.eco-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 16px;
}

.chip-row { display: flex; gap: 12px; flex-wrap: wrap; }

.chip {
    padding: 8px 16px;
    background: var(--surf-highest);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
}

/* =====================
   RISK DUO
===================== */
.risk-duo { display: flex; gap: 40px; }

.risk-item { text-align: center; }

.risk-name {
    font-size: 1.75rem;
    font-weight: 900;
}

.risk-sub {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-top: 4px;
}

.primary-text  { color: var(--primary); }
.tertiary-text { color: var(--tertiary); }

/* =====================
   HIGHLIGHT CARD
===================== */
.highlight-card {
    padding: 24px;
    background: var(--surf-low);
    border-radius: 16px;
    border-left: 4px solid var(--primary);
}

.highlight-card p.font-bold { font-weight: 700; margin-bottom: 8px; }
.highlight-sub { font-size: 13px; color: var(--on-surf-var); font-style: italic; }

/* =====================
   MINI CARD GRID
===================== */
.mini-card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.mini-card {
    background: var(--surf-lowest);
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(15,23,42,0.06);
}

.mini-title { font-weight: 700; font-size: 13px; margin-bottom: 4px; }
.mini-sub   { font-size: 12px; color: var(--on-surf-var); }

/* =====================
   GLOW WRAP (Ice-Breakers)
===================== */
.glow-wrap { position: relative; }

.glow-blob {
    position: absolute;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    filter: blur(30px);
}

.glow-1 { top: -16px; left: -16px; background: rgba(140,67,0,0.12); }
.glow-2 { bottom: -16px; right: -16px; background: rgba(0,89,157,0.10); }
.glow-img { position: relative; z-index: 1; }

/* =====================
   CTA
===================== */
.genre-cta {
    background: var(--surf-lowest);
    text-align: center;
    padding: 100px 48px;
}

.cta-inner { max-width: 700px; margin: 0 auto; }

.genre-cta h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    color: var(--on-surface);
    margin-bottom: 36px;
}

.cta-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.cta-btn {
    padding: 18px 40px;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.cta-btn.primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 12px 32px rgba(0,89,157,0.25);
}

.cta-btn.primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(0,89,157,0.3); }

.cta-btn.secondary {
    background: var(--surf-high);
    color: var(--on-surface);
}

.cta-btn.secondary:hover { background: var(--surf-highest); }

/* =====================
   RESPONSIVE
===================== */
@media (max-width: 1024px) {
    .grid-2 { grid-template-columns: 1fr; gap: 40px; }
    .order-1, .order-2 { order: unset; }
    .genre-section { padding: 64px 28px; }
    .genre-hero { padding: 72px 28px 48px; }
}

@media (max-width: 600px) {
    .genre-hero h1 { font-size: 2.4rem; white-space: normal; }
    .genre-section { padding: 48px 20px; }
    .genre-hero { padding: 56px 20px 36px; }
    .board-grid-box { padding: 24px; }
    .risk-duo { gap: 24px; }
    .cta-btn { padding: 14px 28px; font-size: 0.95rem; }
    .icon-quad-grid { gap: 10px; }
    .mini-card-grid { grid-template-columns: 1fr; }
}
