/*
 * ========================================
 * INDICE.CO.NZ - Social Casino
 * Project: site27-nz
 * Country: New Zealand
 * Date: November 2025
 * ========================================
 * 
 * CSS ARCHITECTURE: SMACSS (Scalable and Modular Architecture)
 * PALETTE: New Zealand Pride
 * EFFECT: Brutalism
 * TYPOGRAPHY: Classic Editorial (Merriweather + Source Sans Pro)
 * BUTTONS: Glitch Effect
 * HTML STRUCTURE: Semantic Style
 * JS NAMING: camelCase
 * 
 * ========================================
 */

/* ========================================
   BASE RULES - Element defaults
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@400;700;900&family=Source+Sans+Pro:wght@300;400;600;700&display=swap');

:root {
    /* NEW ZEALAND PRIDE PALETTE */
    --kiwi-green: #00a86b;
    --silver-fern: #c0c0c0;
    --maori-red: #cc0000;
    --pacific-blue: #003366;
    --southern-black: #1a1a1a;
    --pounamu-jade: #00755e;
    --auckland-sky: #87ceeb;
    --wellington-gray: #696969;
    
    /* Typography */
    --font-heading: 'Merriweather', serif;
    --font-body: 'Source Sans Pro', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    
    /* Header height */
    --header-height: 70px;
}

@media (max-width: 600px) {
    :root {
        --header-height: 60px;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    max-width: 100%;
}

html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--southern-black);
    background: #fafafa;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: var(--spacing-sm);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

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

/* ========================================
   LAYOUT RULES - Major page sections
   ======================================== */

.layout-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.layout-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: var(--southern-black);
    border-bottom: 5px solid var(--kiwi-green);
    z-index: 1000;
    box-shadow: 8px 8px 0 var(--maori-red);
}

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

.layout-footer {
    background: var(--southern-black);
    color: var(--silver-fern);
    padding: var(--spacing-xl) 0 var(--spacing-md);
    border-top: 5px solid var(--kiwi-green);
    margin-top: var(--spacing-xl);
}

.layout-grid {
    display: grid;
    gap: var(--spacing-md);
}

.layout-grid--2col {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.layout-grid--3col {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* ========================================
   MODULE RULES - Reusable components
   ======================================== */

/* Brand Module */
.module-brand {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.module-brand__logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--kiwi-green);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Navigation Module */
.module-navigation {
    display: none;
}

.module-navigation__list {
    list-style: none;
    display: flex;
    gap: var(--spacing-md);
}

.module-navigation__link {
    color: var(--silver-fern);
    font-weight: 600;
    padding: var(--spacing-xs) var(--spacing-sm);
    border: 2px solid transparent;
    transition: all 0.3s;
}

.module-navigation__link:hover,
.module-navigation__link.is-active {
    color: var(--kiwi-green);
    border: 2px solid var(--kiwi-green);
    box-shadow: 4px 4px 0 var(--maori-red);
    transform: translate(-2px, -2px);
}

@media (min-width: 769px) {
    .module-navigation {
        display: block;
    }
}

/* Mobile Menu Module */
.module-mobile-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--southern-black);
    border-bottom: 5px solid var(--kiwi-green);
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    z-index: 999;
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
}

.module-mobile-menu.is-active {
    transform: translateY(0);
}

.module-mobile-menu__list {
    list-style: none;
    padding: var(--spacing-md);
}

.module-mobile-menu__item {
    border-bottom: 2px solid var(--wellington-gray);
}

.module-mobile-menu__link {
    display: block;
    color: var(--silver-fern);
    padding: var(--spacing-sm);
    font-size: 1.1rem;
    font-weight: 600;
    border: 2px solid transparent;
}

.module-mobile-menu__link:hover,
.module-mobile-menu__link.is-active {
    color: var(--kiwi-green);
    background: rgba(0, 168, 107, 0.1);
    border-left: 5px solid var(--maori-red);
}

/* Burger Button Module */
.module-burger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
    z-index: 1001;
    margin-left: auto;
}

.module-burger__line {
    width: 30px;
    height: 3px;
    background: var(--kiwi-green);
    transition: all 0.3s ease;
    box-shadow: 2px 2px 0 var(--maori-red);
}

.module-burger.is-active .module-burger__line:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.module-burger.is-active .module-burger__line:nth-child(2) {
    opacity: 0;
}

.module-burger.is-active .module-burger__line:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

@media (min-width: 769px) {
    .module-burger {
        display: none;
    }
}

/* Hero Module - Brutalism style */
.module-hero {
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--pacific-blue);
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(0, 168, 107, 0.1) 35px, rgba(0, 168, 107, 0.1) 70px);
    padding-top: calc(var(--header-height) + var(--spacing-xl));
    padding-bottom: var(--spacing-xl);
    border-bottom: 10px solid var(--kiwi-green);
    box-shadow: inset 0 -20px 0 var(--maori-red);
    position: relative;
}

.module-hero__content {
    text-align: center;
    background: #fff;
    padding: var(--spacing-xl);
    border: 5px solid var(--southern-black);
    box-shadow: 15px 15px 0 var(--kiwi-green);
    max-width: 700px;
    transform: rotate(-1deg);
}

.module-hero__title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--southern-black);
    margin-bottom: var(--spacing-md);
    text-transform: uppercase;
    letter-spacing: 3px;
}

.module-hero__subtitle {
    font-size: clamp(1rem, 3vw, 1.5rem);
    color: var(--wellington-gray);
    margin-bottom: var(--spacing-lg);
}

.module-hero__badges {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--spacing-lg);
}

.module-hero__badge {
    background: var(--maori-red);
    color: #fff;
    padding: var(--spacing-xs) var(--spacing-sm);
    font-weight: 700;
    border: 3px solid var(--southern-black);
    box-shadow: 4px 4px 0 var(--kiwi-green);
    transform: rotate(2deg);
}

.module-hero__cta {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
}

/* Card Module - Brutalism style */
.module-card {
    background: #fff;
    border: 5px solid var(--southern-black);
    padding: var(--spacing-lg);
    transition: all 0.3s ease;
    position: relative;
}

.module-card:hover {
    box-shadow: 10px 10px 0 var(--kiwi-green);
    transform: translate(-5px, -5px);
}

.module-card__icon {
    font-size: 3rem;
    color: var(--kiwi-green);
    margin-bottom: var(--spacing-sm);
    text-shadow: 3px 3px 0 var(--maori-red);
}

.module-card__title {
    color: var(--southern-black);
    margin-bottom: var(--spacing-sm);
    text-transform: uppercase;
}

.module-card__description {
    color: var(--wellington-gray);
}

/* Game Card Module */
.module-game-card {
    background: #fff;
    border: 5px solid var(--southern-black);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.module-game-card:hover {
    box-shadow: 12px 12px 0 var(--maori-red);
    transform: translate(-6px, -6px);
}

.module-game-card__image-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
    border-bottom: 5px solid var(--southern-black);
}

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

.module-game-card__badge {
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    background: var(--kiwi-green);
    color: #fff;
    padding: var(--spacing-xs) var(--spacing-sm);
    font-weight: 700;
    border: 3px solid var(--southern-black);
    box-shadow: 4px 4px 0 var(--maori-red);
    font-size: 0.9rem;
}

.module-game-card__content {
    padding: var(--spacing-md);
}

.module-game-card__title {
    color: var(--southern-black);
    margin-bottom: var(--spacing-xs);
    text-transform: uppercase;
}

.module-game-card__category {
    color: var(--wellington-gray);
    font-size: 0.9rem;
    margin-bottom: var(--spacing-sm);
}

.module-game-card__description {
    color: var(--wellington-gray);
    font-size: 0.95rem;
    margin-bottom: var(--spacing-md);
}

/* Button Module - Glitch Effect */
.module-button {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-lg);
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border: 4px solid var(--southern-black);
    background: var(--kiwi-green);
    color: #fff;
    position: relative;
    transition: all 0.3s ease;
    font-size: 1rem;
    box-shadow: 5px 5px 0 var(--maori-red);
}

.module-button:hover {
    box-shadow: 8px 8px 0 var(--pacific-blue);
    transform: translate(-3px, -3px);
}

.module-button:active {
    box-shadow: 2px 2px 0 var(--maori-red);
    transform: translate(0, 0);
}

.module-button--primary {
    background: var(--kiwi-green);
    color: #fff;
}

.module-button--secondary {
    background: #fff;
    color: var(--southern-black);
}

.module-button--danger {
    background: var(--maori-red);
    color: #fff;
}

.module-button--large {
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: 1.2rem;
}

.module-button--small {
    padding: var(--spacing-xs) var(--spacing-md);
    font-size: 0.9rem;
}

/* Section Module */
.module-section {
    padding: var(--spacing-xl) 0;
}

.module-section__header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.module-section__title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    color: var(--southern-black);
    margin-bottom: var(--spacing-sm);
    text-transform: uppercase;
    border-bottom: 5px solid var(--kiwi-green);
    display: inline-block;
    padding-bottom: var(--spacing-xs);
    box-shadow: 0 8px 0 var(--maori-red);
}

.module-section__subtitle {
    color: var(--wellington-gray);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* FAQ Module - Accordion */
.module-faq {
    max-width: 800px;
    margin: 0 auto;
}

.module-faq__item {
    background: #fff;
    border: 5px solid var(--southern-black);
    margin-bottom: var(--spacing-md);
}

.module-faq__question {
    width: 100%;
    padding: var(--spacing-md);
    background: transparent;
    border: none;
    text-align: left;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--southern-black);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
}

.module-faq__question:hover {
    background: rgba(0, 168, 107, 0.1);
}

.module-faq__icon {
    font-size: 1.5rem;
    color: var(--kiwi-green);
    transition: transform 0.3s;
}

.module-faq__question.is-active .module-faq__icon {
    transform: rotate(180deg);
}

.module-faq__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.module-faq__answer.is-active {
    max-height: 500px;
}

.module-faq__answer-content {
    padding: var(--spacing-md);
    border-top: 3px solid var(--kiwi-green);
    color: var(--wellington-gray);
}

/* Footer Module */
.module-footer__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.module-footer__section {
    border-left: 5px solid var(--kiwi-green);
    padding-left: var(--spacing-md);
}

.module-footer__heading {
    color: var(--kiwi-green);
    font-size: 1.3rem;
    margin-bottom: var(--spacing-md);
    text-transform: uppercase;
}

.module-footer__links {
    list-style: none;
}

.module-footer__link {
    color: var(--silver-fern);
    padding: var(--spacing-xs) 0;
    display: inline-block;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

.module-footer__link:hover {
    color: var(--kiwi-green);
    border-bottom: 2px solid var(--kiwi-green);
}

.module-footer__compliance {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.module-footer__compliance-logo {
    height: 40px;
    width: auto;
    background: #fff;
    padding: var(--spacing-xs);
    border: 3px solid var(--southern-black);
    transition: all 0.3s;
}

.module-footer__compliance-logo:hover {
    box-shadow: 5px 5px 0 var(--kiwi-green);
    transform: translate(-2px, -2px);
}

.module-footer__bottom {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 3px solid var(--wellington-gray);
    color: var(--silver-fern);
}

.module-footer__age-badge {
    display: inline-block;
    background: var(--maori-red);
    color: #fff;
    padding: var(--spacing-xs) var(--spacing-sm);
    font-weight: 700;
    font-size: 1.2rem;
    border: 3px solid #fff;
    margin: var(--spacing-sm) 0;
}

/* ========================================
   STATE RULES - State changes
   ======================================== */

.is-active {
    /* Active state - defined per module */
}

.is-hidden {
    display: none !important;
}

.is-visible {
    display: block !important;
}

.is-loading {
    opacity: 0.6;
    pointer-events: none;
}

/* ========================================
   THEME RULES - Colors and appearance
   ======================================== */

.theme-dark {
    background: var(--southern-black);
    color: var(--silver-fern);
}

.theme-light {
    background: #fafafa;
    color: var(--southern-black);
}

/* ========================================
   MODAL MODULES
   ======================================== */

.module-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: var(--spacing-md);
}

.module-modal.is-hidden {
    display: none;
}

.module-modal__content {
    background: #fff;
    border: 5px solid var(--southern-black);
    box-shadow: 15px 15px 0 var(--kiwi-green);
    max-width: 500px;
    width: 100%;
    padding: var(--spacing-xl);
    position: relative;
}

.module-modal__header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.module-modal__title {
    font-size: 1.8rem;
    color: var(--southern-black);
    margin-bottom: var(--spacing-sm);
    text-transform: uppercase;
}

.module-modal__body {
    color: var(--wellington-gray);
    text-align: center;
}

.module-modal__buttons {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    margin-top: var(--spacing-lg);
    flex-wrap: wrap;
}

.module-modal__warning {
    margin-top: var(--spacing-md);
    padding: var(--spacing-sm);
    background: rgba(204, 0, 0, 0.1);
    border: 3px solid var(--maori-red);
    font-size: 0.9rem;
    font-weight: 600;
}

/* Cookie Consent Banner */
.module-cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--southern-black);
    border-top: 5px solid var(--kiwi-green);
    box-shadow: 0 -8px 0 var(--maori-red);
    padding: var(--spacing-md);
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.module-cookie-banner.is-visible {
    transform: translateY(0);
}

.module-cookie-banner__content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.module-cookie-banner__text {
    color: var(--silver-fern);
    flex: 1;
    min-width: 250px;
}

.module-cookie-banner__buttons {
    display: flex;
    gap: var(--spacing-sm);
}

/* ========================================
   RESPONSIVE UTILITIES
   ======================================== */

@media (max-width: 768px) {
    .module-hero__content {
        transform: rotate(0deg);
    }
    
    .module-section {
        padding: var(--spacing-lg) 0;
    }
    
    .module-footer__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    
    .module-button {
        width: 100%;
        text-align: center;
    }
    
    .module-cookie-banner__content {
        flex-direction: column;
        text-align: center;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    .layout-header,
    .module-navigation,
    .module-burger,
    .module-mobile-menu,
    .module-cookie-banner,
    .module-modal {
        display: none !important;
    }
}

