/* Global Design System & Stylesheet - legaliskaszino.hu */
/* Színvilág és stílusok az aszfgenerator.hu alapján */

/* 1. CSS Változók (Design Tokens) */
:root {
    /* Színpaletta */
    --bg-dark: #0f172a;        /* Slate-900: Mély sötétkék háttér */
    --bg-surface: #111827;     /* Gray-900: Kártyák, dobozok háttere */
    --bg-surface-alt: rgba(255, 255, 255, 0.04); /* Hover felületek */
    --text-main: #ffffff;      /* Fehér főszöveg */
    --text-muted: #cbd5e1;     /* Slate-300: Másodlagos szövegek */
    --text-tertiary: #94a3b8;  /* Slate-400: Finomabb leírások, metaadatok */
    
    --color-primary: #2563eb;      /* Royal Blue: Fő CTA-k, linkek, badge-ek */
    --color-primary-hover: #1d4ed8;/* Mélyebb kék hoverhez */
    --color-secondary: rgba(255, 255, 255, 0.12); /* Keretes elemek háttere */
    --color-accent: #eab308;       /* Arany: Értékelések, csillagok (a kaszinó témához) */
    --color-border: rgba(255, 255, 255, 0.06); /* Ultrafinom, átlátszó szegélyek */
    --color-danger: #ef4444;       /* Piros: Kockázatok, figyelmeztetések */

    /* Tipográfia */
    --font-display: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Lekerekítések */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --radius-xl: 26px;
    --radius-xxl: 32px;
    
    --container-width: 1200px;
    --transition-fast: 0.3s ease;
}

/* 2. CSS Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: #3b82f6;
}

/* Fókusz állapotok az akadálymentességért */
a:focus-visible, 
button:focus-visible, 
.btn:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
}

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

/* 3. Fejlécek és Tipográfia */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 800; /* Extra bold az aszfgenerator mintájára */
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    text-transform: none; /* Megszüntetjük a csupa nagybetűs sportfogadás-stílust */
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2rem; margin-top: 2.5rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }

p {
    margin-bottom: 1.25rem;
    color: var(--text-muted);
    font-size: 1.05rem; /* Kicsit nagyobb, modernebb betűméret */
}

strong {
    color: var(--text-main);
    font-weight: 700;
}

/* 4. Layout és Grid Rendszer */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0; /* Nagyobb térközök a modern hatásért */
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr 1fr;
    }
    h1 { font-size: 3.5rem; }
    h2 { font-size: 2.5rem; }
}

/* 5. Header és Navigáció */
.site-header {
    background-color: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
    height: 82px; /* aszfgenerator magasság */
    display: flex;
    align-items: center;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo-link {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.03em;
}

.logo-link span {
    color: var(--color-primary);
}

.nav-menu {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 82px;
    left: 0;
    width: 100%;
    background-color: var(--bg-dark);
    border-bottom: 1px solid var(--color-border);
    padding: 1.5rem 0;
    gap: 1.25rem;
    align-items: center;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
    
    /* Smooth Transition Setup */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--text-muted);
    font-size: 1rem;
    padding: 0.5rem 1rem;
    transition: var(--transition-fast);
}

.nav-item:hover, .nav-item.active {
    color: var(--text-main);
}

/* Hamburger Menü Gomb */
.menu-toggle {
    display: block;
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

/* Desktop Navigáció */
@media (min-width: 1024px) {
    .menu-toggle {
        display: none;
    }
    .nav-menu {
        display: flex;
        flex-direction: row;
        position: static;
        width: auto;
        background-color: transparent;
        border-bottom: none;
        padding: 0;
        gap: 2rem; /* aszfgenerator stílusú szellős navigáció */
        align-items: center;
        box-shadow: none;
        
        /* Reset transition states for desktop */
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: none;
    }
    .nav-item {
        padding: 0.25rem 0.5rem; /* csökkentett belső margó asztali nézetben */
    }
}

/* Mobil Menü Nyitott Állapot */
.nav-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* 6. Lábléc (Footer) */
.site-footer {
    background-color: var(--bg-dark);
    border-top: 1px solid var(--color-border);
    padding: 80px 0 40px 0;
    margin-top: 6rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr 1fr;
    }
}

.site-footer h4, .footer-title {
    display: block;
    font-size: 1.2rem;
    font-weight: 800; /* extra bold aszfgenerator stílus */
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.footer-brand h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
}

.footer-brand h3 span {
    color: var(--color-primary);
}

.footer-brand p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-tertiary);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.footer-links a {
    color: var(--text-tertiary);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--text-main);
    padding-left: 2px;
}

/* Jogi nyilatkozatok és 18+ rész */
.footer-legal {
    border-top: 1px solid var(--color-border);
    padding-top: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-legal {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.legal-text {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    max-width: 900px;
    line-height: 1.6;
}

.legal-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-danger);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    border: 3px solid #fff;
    flex-shrink: 0;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
}
