/*
 * PROJECT: bronstor
 * DOMAIN: bronstor.com
 * GAME: Checkers Master
 *
 * DESIGN:
 * - CSS: BEM
 * - Palette: Classic Board / Strategic Wood
 * - Effect: Neumorphism (Soft UI)
 * - Fonts: Lexend (heading) + Red Hat Display (body)
 * - Buttons: 3D Effect
 *
 * Created: 2025
 */

@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@400;500;600;700;800&family=Red+Hat+Display:wght@400;500;600;700&display=swap');

/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
    /* Soft UI Base */
    --bg-base: #e0e5ec;
    --bg-card: #e8ecf3;
    --shadow-light: #ffffff;
    --shadow-dark: #a3b1c6;

    /* Board Game Palette */
    --board-dark: #5c3d2e;
    --board-medium: #8b6045;
    --board-light: #c8a47a;
    --board-cream: #f5e6cc;
    --piece-red: #c0392b;
    --piece-black: #2c3e50;
    --accent-gold: #d4a017;
    --accent-green: #27ae60;
    --accent-blue: #2980b9;

    /* Text */
    --text-dark: #2c3e50;
    --text-medium: #5a6a7a;
    --text-light: #8a9baa;
    --text-accent: #5c3d2e;

    /* Font Families */
    --font-heading: 'Lexend', sans-serif;
    --font-body: 'Red Hat Display', sans-serif;

    /* Neumorphic Shadows */
    --shadow-neu-flat: 6px 6px 12px var(--shadow-dark), -6px -6px 12px var(--shadow-light);
    --shadow-neu-pressed: inset 4px 4px 8px var(--shadow-dark), inset -4px -4px 8px var(--shadow-light);
    --shadow-neu-raised: 10px 10px 20px var(--shadow-dark), -10px -10px 20px var(--shadow-light);
    --shadow-neu-deep: 15px 15px 30px var(--shadow-dark), -15px -15px 30px var(--shadow-light);

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Header */
    --header-height: 70px;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    max-width: 100%;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

html, body {
    overflow-x: hidden !important;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-base);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-dark);
}

p {
    color: var(--text-medium);
    margin-bottom: var(--space-md);
}

p:last-child {
    margin-bottom: 0;
}

/* ===== MANDATORY RULES ===== */
.article-card__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.article-card,
.offer-card,
.card {
    position: relative;
}

.stars {
    color: #ffc107;
}

/* ===== LAYOUT ===== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.section {
    padding: var(--space-3xl) 0;
}

.section--alt {
    background: linear-gradient(135deg, #dde3ea 0%, #e5eaf0 100%);
}

/* ===== HEADER ===== */
.header {
    background: var(--bg-base);
    box-shadow: 0 4px 15px rgba(163, 177, 198, 0.5), 0 -2px 6px rgba(255, 255, 255, 0.8);
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-height);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-xl);
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.6rem;
    color: var(--board-dark);
    letter-spacing: -0.5px;
    transition: var(--transition-base);
    text-shadow: 1px 1px 2px rgba(255,255,255,0.8);
}

.logo span {
    color: var(--accent-gold);
}

.logo:hover {
    color: var(--board-medium);
}

.nav__list {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.nav__link {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-medium);
    transition: var(--transition-base);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-full);
}

.nav__link:hover,
.nav__link--active {
    color: var(--board-dark);
    background: var(--bg-base);
    box-shadow: var(--shadow-neu-flat);
}

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: var(--space-sm);
    border-radius: var(--radius-sm);
    background: var(--bg-base);
    box-shadow: var(--shadow-neu-flat);
    border: none;
}

.nav__toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--board-dark);
    border-radius: 2px;
    transition: var(--transition-base);
}

.nav__toggle.is-active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav__toggle.is-active span:nth-child(2) {
    opacity: 0;
}

.nav__toggle.is-active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: var(--transition-base);
    text-decoration: none;
    position: relative;
}

.btn-play {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    padding: 1rem 2.5rem;
    border-radius: var(--radius-lg);
    border: none;
    cursor: pointer;
    transition: var(--transition-base);
    text-decoration: none;
    background: linear-gradient(135deg, var(--board-dark) 0%, var(--board-medium) 100%);
    color: var(--board-cream);
    box-shadow: 6px 6px 0px #3a2519, var(--shadow-neu-flat);
    letter-spacing: 0.5px;
}

.btn-play:hover {
    transform: translateY(-2px);
    box-shadow: 8px 8px 0px #3a2519, var(--shadow-neu-raised);
    color: var(--board-cream);
}

.btn-play:active {
    transform: translateY(2px);
    box-shadow: 2px 2px 0px #3a2519, var(--shadow-neu-pressed);
}

.btn--primary {
    background: linear-gradient(135deg, var(--board-dark) 0%, var(--board-medium) 100%);
    color: var(--board-cream);
    box-shadow: 5px 5px 0px #3a2519, var(--shadow-neu-flat);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 7px 7px 0px #3a2519, var(--shadow-neu-raised);
    color: var(--board-cream);
}

.btn--primary:active {
    transform: translateY(2px);
    box-shadow: 2px 2px 0px #3a2519;
}

.btn--secondary {
    background: var(--bg-base);
    color: var(--board-dark);
    box-shadow: var(--shadow-neu-flat);
}

.btn--secondary:hover {
    box-shadow: var(--shadow-neu-raised);
    color: var(--board-dark);
}

.btn--secondary:active {
    box-shadow: var(--shadow-neu-pressed);
}

.btn--gold {
    background: linear-gradient(135deg, var(--accent-gold) 0%, #e8b520 100%);
    color: #fff;
    box-shadow: 5px 5px 0px #a07800, var(--shadow-neu-flat);
}

.btn--gold:hover {
    transform: translateY(-2px);
    box-shadow: 7px 7px 0px #a07800, var(--shadow-neu-raised);
    color: #fff;
}

/* ===== HERO SECTION ===== */
.hero {
    padding: var(--space-3xl) 0;
    padding-top: calc(var(--space-3xl) + 20px);
    overflow: hidden;
}

.hero__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    background: var(--bg-base);
    box-shadow: var(--shadow-neu-flat);
    border-radius: var(--radius-full);
    padding: var(--space-sm) var(--space-lg);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--board-medium);
    margin-bottom: var(--space-lg);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.hero__badge-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-green);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.2); }
}

.hero__title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: var(--space-lg);
    line-height: 1.15;
}

.hero__title span {
    color: var(--board-medium);
    display: block;
}

.hero__description {
    font-size: 1.1rem;
    color: var(--text-medium);
    margin-bottom: var(--space-xl);
    line-height: 1.7;
}

.hero__actions {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    flex-wrap: wrap;
    margin-bottom: var(--space-2xl);
}

.hero__stats {
    display: flex;
    gap: var(--space-xl);
}

.hero__stat {
    text-align: center;
}

.hero__stat-value {
    display: block;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--board-dark);
}

.hero__stat-label {
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero__visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero__game-preview {
    background: var(--bg-base);
    box-shadow: var(--shadow-neu-deep);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    width: 100%;
    max-width: 420px;
}

.hero__game-icon-wrapper {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-neu-flat);
    margin-bottom: var(--space-md);
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--board-dark), var(--board-medium));
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero__game-icon-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

.hero__game-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-sm) 0;
}

.hero__game-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-dark);
}

.hero__game-rating {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.85rem;
}

.hero__game-rating .stars {
    font-size: 0.9rem;
}

/* ===== CHECKERBOARD DECORATION ===== */
.checkerboard {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 2px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: var(--space-md);
    box-shadow: var(--shadow-neu-flat);
}

.checkerboard__cell {
    aspect-ratio: 1;
    min-width: 30px;
}

.checkerboard__cell--dark {
    background: var(--board-dark);
}

.checkerboard__cell--light {
    background: var(--board-light);
}

.checkerboard__cell--piece-red {
    background: var(--board-dark);
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkerboard__cell--piece-red::after {
    content: '';
    width: 70%;
    height: 70%;
    background: var(--piece-red);
    border-radius: 50%;
    box-shadow: inset 2px 2px 4px rgba(255,255,255,0.3), inset -1px -1px 3px rgba(0,0,0,0.4);
}

.checkerboard__cell--piece-black {
    background: var(--board-dark);
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkerboard__cell--piece-black::after {
    content: '';
    width: 70%;
    height: 70%;
    background: var(--piece-black);
    border-radius: 50%;
    box-shadow: inset 2px 2px 4px rgba(255,255,255,0.2), inset -1px -1px 3px rgba(0,0,0,0.5);
}

/* ===== FEATURES SECTION ===== */
.features__header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section__title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: var(--space-md);
}

.section__subtitle {
    font-size: 1.05rem;
    color: var(--text-medium);
    max-width: 600px;
    margin: 0 auto;
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.feature-card {
    background: var(--bg-base);
    box-shadow: var(--shadow-neu-raised);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    transition: var(--transition-base);
    position: relative;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-neu-deep);
}

.feature-card__icon {
    width: 60px;
    height: 60px;
    background: var(--bg-base);
    box-shadow: var(--shadow-neu-flat);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: var(--space-lg);
}

.feature-card__title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: var(--space-sm);
}

.feature-card__text {
    font-size: 0.95rem;
    color: var(--text-medium);
    line-height: 1.6;
    margin: 0;
}

/* ===== GAME SECTION ===== */
.game-section {
    padding: var(--space-3xl) 0;
}

.game-section__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.game-section__tag {
    display: inline-block;
    background: var(--bg-base);
    box-shadow: var(--shadow-neu-flat);
    border-radius: var(--radius-full);
    padding: var(--space-xs) var(--space-lg);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--board-medium);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--space-lg);
}

.game-section__title {
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    font-weight: 800;
    margin-bottom: var(--space-lg);
    color: var(--text-dark);
}

.game-section__list {
    margin: var(--space-lg) 0 var(--space-xl);
}

.game-section__list li {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-sm) 0;
    font-size: 0.95rem;
    color: var(--text-medium);
    font-weight: 500;
}

.game-section__list li::before {
    content: '';
    width: 10px;
    height: 10px;
    background: var(--board-medium);
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 0 3px rgba(139, 96, 69, 0.2);
}

.game-section__visual {
    position: relative;
}

.game-card {
    background: var(--bg-base);
    box-shadow: var(--shadow-neu-deep);
    border-radius: var(--radius-xl);
    overflow: hidden;
    position: relative;
}

.game-card__image {
    width: 100%;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--board-dark) 0%, var(--board-medium) 50%, var(--board-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.game-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-card__overlay-btn {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(44, 62, 80, 0.5);
    opacity: 0;
    transition: var(--transition-base);
    z-index: 2;
}

.game-card:hover .game-card__overlay-btn {
    opacity: 1;
}

.game-card__info {
    padding: var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.game-card__name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.game-card__category {
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 500;
}

.game-card__badge {
    background: var(--bg-base);
    box-shadow: var(--shadow-neu-flat);
    border-radius: var(--radius-full);
    padding: var(--space-xs) var(--space-md);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-green);
}

/* ===== HOW TO PLAY PREVIEW ===== */
.howto-preview {
    background: var(--bg-base);
    box-shadow: var(--shadow-neu-deep);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
}

.howto-preview__title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: var(--space-xl);
    text-align: center;
}

.howto-preview__steps {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.howto-step {
    display: flex;
    align-items: flex-start;
    gap: var(--space-lg);
    padding: var(--space-md);
    background: var(--bg-base);
    box-shadow: var(--shadow-neu-flat);
    border-radius: var(--radius-lg);
    transition: var(--transition-base);
}

.howto-step:hover {
    box-shadow: var(--shadow-neu-raised);
}

.howto-step__number {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--board-dark), var(--board-medium));
    color: var(--board-cream);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1rem;
    box-shadow: 3px 3px 0px #3a2519;
}

.howto-step__title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.howto-step__text {
    font-size: 0.85rem;
    color: var(--text-medium);
    margin: 0;
    line-height: 1.5;
}

/* ===== ARTICLE CARDS ===== */
.articles__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.article-card {
    background: var(--bg-base);
    box-shadow: var(--shadow-neu-raised);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: var(--transition-base);
    position: relative;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-neu-deep);
}

.article-card__image {
    width: 100%;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, var(--board-dark) 0%, var(--board-medium) 100%);
    overflow: hidden;
    position: relative;
}

.article-card__image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    background: linear-gradient(135deg, var(--board-dark), var(--board-medium));
}

.article-card__content {
    padding: var(--space-lg);
    position: relative;
    z-index: 2;
}

.article-card__tag {
    display: inline-block;
    background: var(--bg-base);
    box-shadow: var(--shadow-neu-flat);
    border-radius: var(--radius-full);
    padding: 2px var(--space-md);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--board-medium);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--space-sm);
}

.article-card__title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-dark);
    margin-bottom: var(--space-sm);
    line-height: 1.4;
    transition: var(--transition-fast);
}

.article-card__excerpt {
    font-size: 0.9rem;
    color: var(--text-medium);
    line-height: 1.6;
    margin-bottom: var(--space-md);
}

.article-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-light);
}

.article-card__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.article-card:hover .article-card__title {
    color: var(--board-medium);
}

/* ===== FAQ ===== */
.faq__list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    max-width: 800px;
    margin: 0 auto;
}

.faq__item {
    background: var(--bg-base);
    box-shadow: var(--shadow-neu-flat);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-base);
}

.faq__item.is-open {
    box-shadow: var(--shadow-neu-raised);
}

.faq__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg) var(--space-xl);
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-dark);
    gap: var(--space-md);
    user-select: none;
}

.faq__icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    background: var(--bg-base);
    box-shadow: var(--shadow-neu-flat);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--board-medium);
    transition: var(--transition-base);
}

.faq__item.is-open .faq__icon {
    box-shadow: var(--shadow-neu-pressed);
    transform: rotate(45deg);
}

.faq__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-slow);
}

.faq__answer-inner {
    padding: 0 var(--space-xl) var(--space-lg);
    font-size: 0.95rem;
    color: var(--text-medium);
    line-height: 1.7;
}

/* ===== CTA SECTION ===== */
.cta {
    padding: var(--space-3xl) 0;
}

.cta__box {
    background: var(--bg-base);
    box-shadow: var(--shadow-neu-deep);
    border-radius: var(--radius-xl);
    padding: var(--space-3xl) var(--space-xl);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta__box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(139, 96, 69, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.cta__title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: var(--space-md);
    color: var(--text-dark);
}

.cta__text {
    font-size: 1.05rem;
    color: var(--text-medium);
    max-width: 500px;
    margin: 0 auto var(--space-xl);
}

.cta__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

/* ===== BREADCRUMBS ===== */
.breadcrumbs {
    padding: var(--space-lg) 0;
}

.breadcrumbs__list {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.85rem;
}

.breadcrumbs__item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--text-light);
}

.breadcrumbs__item a {
    color: var(--text-light);
    transition: var(--transition-fast);
}

.breadcrumbs__item a:hover {
    color: var(--board-medium);
}

.breadcrumbs__item--current {
    color: var(--board-dark);
    font-weight: 600;
}

.breadcrumbs__sep {
    color: var(--text-light);
}

/* ===== PAGE HERO ===== */
.page-hero {
    padding: var(--space-2xl) 0;
    text-align: center;
}

.page-hero__title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: var(--space-md);
}

.page-hero__subtitle {
    font-size: 1.1rem;
    color: var(--text-medium);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== ABOUT PAGE ===== */
.about-story {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
    margin-bottom: var(--space-3xl);
}

.about-story__visual {
    background: var(--bg-base);
    box-shadow: var(--shadow-neu-deep);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
}

.about-values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.value-card {
    background: var(--bg-base);
    box-shadow: var(--shadow-neu-raised);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    text-align: center;
    transition: var(--transition-base);
    position: relative;
}

.value-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-neu-deep);
}

.value-card__icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
    display: block;
}

.value-card__title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: var(--space-sm);
}

.value-card__text {
    font-size: 0.9rem;
    color: var(--text-medium);
    line-height: 1.6;
    margin: 0;
}

/* ===== HOW TO PLAY PAGE ===== */
.htp-steps {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
    margin-bottom: var(--space-3xl);
}

.htp-step {
    background: var(--bg-base);
    box-shadow: var(--shadow-neu-raised);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--space-xl);
    align-items: start;
    transition: var(--transition-base);
    position: relative;
}

.htp-step:hover {
    box-shadow: var(--shadow-neu-deep);
    transform: translateX(4px);
}

.htp-step__num {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--board-dark), var(--board-medium));
    color: var(--board-cream);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    box-shadow: 4px 4px 0px #3a2519;
    flex-shrink: 0;
}

.htp-step__title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: var(--space-sm);
}

.htp-step__text {
    font-size: 0.95rem;
    color: var(--text-medium);
    line-height: 1.7;
    margin: 0;
}

.htp-tips {
    background: var(--bg-base);
    box-shadow: var(--shadow-neu-deep);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
}

.htp-tips__title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: var(--space-xl);
}

.htp-tips__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

.htp-tip {
    background: var(--bg-base);
    box-shadow: var(--shadow-neu-flat);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    transition: var(--transition-base);
    position: relative;
}

.htp-tip:hover {
    box-shadow: var(--shadow-neu-raised);
}

.htp-tip__icon {
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
    display: block;
}

.htp-tip__title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark);
    margin-bottom: var(--space-xs);
}

.htp-tip__text {
    font-size: 0.88rem;
    color: var(--text-medium);
    margin: 0;
    line-height: 1.5;
}

/* ===== BLOG PAGE ===== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

/* ===== CONTACT PAGE ===== */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-3xl);
    align-items: start;
}

.contact-card {
    background: var(--bg-base);
    box-shadow: var(--shadow-neu-raised);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    margin-bottom: var(--space-lg);
    display: flex;
    align-items: flex-start;
    gap: var(--space-lg);
    transition: var(--transition-base);
    position: relative;
}

.contact-card:hover {
    box-shadow: var(--shadow-neu-deep);
}

.contact-card__icon {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    background: var(--bg-base);
    box-shadow: var(--shadow-neu-flat);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.contact-card__title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: var(--space-xs);
}

.contact-card__text {
    font-size: 0.9rem;
    color: var(--text-medium);
    margin: 0;
}

.contact-form-wrap {
    background: var(--bg-base);
    box-shadow: var(--shadow-neu-deep);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
}

.contact-form-wrap__title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: var(--space-xl);
}

.form__group {
    margin-bottom: var(--space-lg);
}

.form__label {
    display: block;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-dark);
    margin-bottom: var(--space-sm);
}

.form__input,
.form__textarea,
.form__select {
    width: 100%;
    background: var(--bg-base);
    box-shadow: var(--shadow-neu-pressed);
    border: none;
    border-radius: var(--radius-md);
    padding: 0.875rem var(--space-lg);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-dark);
    outline: none;
    transition: var(--transition-base);
}

.form__input:focus,
.form__textarea:focus,
.form__select:focus {
    box-shadow: var(--shadow-neu-pressed), 0 0 0 2px rgba(139, 96, 69, 0.3);
}

.form__input::placeholder,
.form__textarea::placeholder {
    color: var(--text-light);
}

.form__textarea {
    resize: vertical;
    min-height: 120px;
}

/* ===== ARTICLE PAGE ===== */
.article-page {
    padding: var(--space-2xl) 0 var(--space-3xl);
}

.article-page__layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: var(--space-2xl);
    align-items: start;
}

.article-page__content {
    background: var(--bg-base);
    box-shadow: var(--shadow-neu-deep);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
}

.article-page__header {
    margin-bottom: var(--space-xl);
}

.article-page__tag {
    display: inline-block;
    background: var(--bg-base);
    box-shadow: var(--shadow-neu-flat);
    border-radius: var(--radius-full);
    padding: var(--space-xs) var(--space-lg);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--board-medium);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--space-md);
}

.article-page__title {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: var(--space-md);
    line-height: 1.3;
}

.article-page__meta {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    font-size: 0.85rem;
    color: var(--text-light);
    flex-wrap: wrap;
}

.article-page__body {
    font-size: 1rem;
    color: var(--text-medium);
    line-height: 1.8;
}

.article-page__body h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: var(--space-xl) 0 var(--space-md);
}

.article-page__body h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: var(--space-lg) 0 var(--space-sm);
}

.article-page__body p {
    margin-bottom: var(--space-lg);
}

.article-page__body ul,
.article-page__body ol {
    margin: var(--space-md) 0 var(--space-lg) var(--space-xl);
    list-style: disc;
}

.article-page__body ol {
    list-style: decimal;
}

.article-page__body li {
    margin-bottom: var(--space-sm);
    color: var(--text-medium);
}

.article-page__body strong {
    color: var(--text-dark);
    font-weight: 600;
}

.article-page__sidebar {}

.sidebar-card {
    background: var(--bg-base);
    box-shadow: var(--shadow-neu-raised);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    margin-bottom: var(--space-lg);
    position: relative;
}

.sidebar-card__title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 2px solid rgba(139, 96, 69, 0.15);
}

.sidebar-recent__item {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-sm) 0;
    border-bottom: 1px solid rgba(163, 177, 198, 0.3);
    text-decoration: none;
    transition: var(--transition-fast);
    position: relative;
    z-index: 1;
}

.sidebar-recent__item:last-child {
    border-bottom: none;
}

.sidebar-recent__item:hover .sidebar-recent__title {
    color: var(--board-medium);
}

.sidebar-recent__title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--text-dark);
    line-height: 1.4;
    transition: var(--transition-fast);
}

.sidebar-recent__date {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 2px;
}

/* ===== LEGAL PAGES ===== */
.legal-content {
    background: var(--bg-base);
    box-shadow: var(--shadow-neu-deep);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: var(--space-xl) 0 var(--space-md);
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: var(--space-lg) 0 var(--space-sm);
}

.legal-content p {
    font-size: 0.95rem;
    color: var(--text-medium);
    line-height: 1.7;
    margin-bottom: var(--space-md);
}

.legal-content ul {
    margin: var(--space-sm) 0 var(--space-md) var(--space-xl);
    list-style: disc;
}

.legal-content li {
    font-size: 0.95rem;
    color: var(--text-medium);
    margin-bottom: var(--space-sm);
}

/* ===== COOKIE CONSENT ===== */
.cookie-consent {
    position: fixed;
    bottom: var(--space-xl);
    right: var(--space-xl);
    z-index: 9999;
    max-width: 400px;
    width: calc(100% - var(--space-3xl));
}

.cookie-consent__inner {
    background: var(--bg-base);
    box-shadow: var(--shadow-neu-deep);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.cookie-consent__text {
    font-size: 0.88rem;
    color: var(--text-medium);
    line-height: 1.5;
    margin: 0;
}

.cookie-consent__text a {
    color: var(--board-medium);
    font-weight: 600;
    text-decoration: underline;
}

.cookie-consent__btn {
    align-self: flex-end;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-base);
    box-shadow: 0 -4px 15px rgba(163, 177, 198, 0.4), 0 2px 6px rgba(255, 255, 255, 0.8);
    padding: var(--space-3xl) 0 var(--space-xl);
    margin-top: var(--space-3xl);
}

.footer__inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.footer__brand {}

.footer__logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--board-dark);
    display: block;
    margin-bottom: var(--space-md);
    text-shadow: 1px 1px 2px rgba(255,255,255,0.8);
}

.footer__logo span {
    color: var(--accent-gold);
}

.footer__tagline {
    font-size: 0.9rem;
    color: var(--text-medium);
    margin-bottom: var(--space-lg);
    line-height: 1.6;
}

.footer__col-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-dark);
    margin-bottom: var(--space-lg);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer__link {
    font-size: 0.9rem;
    color: var(--text-medium);
    transition: var(--transition-fast);
    padding: 2px 0;
}

.footer__link:hover {
    color: var(--board-dark);
}

.footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--space-xl);
    border-top: 2px solid rgba(163, 177, 198, 0.3);
    flex-wrap: wrap;
    gap: var(--space-md);
}

.footer__copy {
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 0;
}

.footer__bottom-links {
    display: flex;
    gap: var(--space-lg);
}

.footer__bottom-link {
    font-size: 0.85rem;
    color: var(--text-light);
    transition: var(--transition-fast);
}

.footer__bottom-link:hover {
    color: var(--board-dark);
}

/* ===== FORM SUCCESS ===== */
.form-success {
    text-align: center;
}

/* ===== UTILITY CLASSES ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }
.mt-md { margin-top: var(--space-md); }
.mt-xl { margin-top: var(--space-xl); }

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero__inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero__actions {
        justify-content: center;
    }

    .hero__stats {
        justify-content: center;
    }

    .hero__visual {
        order: -1;
    }

    .hero__game-preview {
        max-width: 340px;
    }

    .features__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .game-section__inner {
        grid-template-columns: 1fr;
    }

    .about-story {
        grid-template-columns: 1fr;
    }

    .footer__inner {
        grid-template-columns: 1fr 1fr;
    }

    .article-page__layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--space-lg);
    }

    .header__inner {
        padding: var(--space-md) var(--space-lg);
    }

    .nav {
        display: none;
        position: absolute;
        top: calc(var(--header-height) - 1px);
        left: 0;
        right: 0;
        background: var(--bg-base);
        box-shadow: 0 10px 30px rgba(163, 177, 198, 0.5);
        padding: var(--space-lg);
        z-index: 200;
    }

    .nav.is-open {
        display: block;
    }

    .nav__list {
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-sm);
    }

    .nav__link {
        display: block;
        padding: var(--space-md);
    }

    .nav__toggle {
        display: flex;
    }

    .features__grid {
        grid-template-columns: 1fr;
    }

    .articles__grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .about-values {
        grid-template-columns: 1fr;
    }

    .htp-tips__grid {
        grid-template-columns: 1fr;
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }

    .footer__inner {
        grid-template-columns: 1fr;
    }

    .footer__bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .htp-step {
        grid-template-columns: 1fr;
    }

    .checkerboard__cell {
        min-width: 20px;
    }

    .cookie-consent {
        right: var(--space-md);
        bottom: var(--space-md);
        max-width: calc(100% - var(--space-xl));
    }
}

@media (max-width: 480px) {
    .hero__actions {
        flex-direction: column;
        align-items: center;
    }

    .btn-play {
        width: 100%;
        max-width: 300px;
    }

    .cta__actions {
        flex-direction: column;
        align-items: center;
    }

    .hero__stats {
        flex-wrap: wrap;
        gap: var(--space-lg);
    }
}