/* ============================================================
   PROJECT: TheLazyGecko.com (site35-de)
   CSS ARCHITECTURE: SMACSS (Layout + Module + State)
   PALETTE: Gecko Theme (gecko-green, lizard-lime, stone-gray, leaf-dark, sand-cream, accent-gold)
   EFFECT: Glassmorphism
   TYPOGRAPHY: Raleway + Open Sans
   BUTTON STYLE: 3D Effect
   HTML NAMESPACE: tlg-* (The Lazy Gecko)
   ============================================================ */

:root {
    --gecko-green: #2d5a27;
    --lizard-lime: #7cb342;
    --stone-gray: #5c6bc0;
    --leaf-dark: #1b2e1a;
    --sand-cream: #f5f0e6;
    --accent-gold: #c9a227;
    --tlg-text: #2d2d2a;
    --tlg-muted: #5a5a5e;
    --tlg-border: rgba(45, 90, 39, 0.25);
    --tlg-shadow: rgba(27, 46, 26, 0.15);
    --header-height: 78px;
    font-size: clamp(15px, 1.05vw, 17px);
}

*, *::before, *::after {
    box-sizing: border-box;
    max-width: 100%;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100% !important;
    overflow-x: hidden !important;
    background: var(--sand-cream);
    color: var(--tlg-text);
    font-family: 'Open Sans', sans-serif;
    scroll-behavior: smooth;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

/* Layout */
.l-tlg-wrap {
    width: min(1140px, 92vw);
    margin: 0 auto;
}

/* Module: Header */
.tlg-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(245, 240, 230, 0.97);
    border-bottom: 1px solid var(--tlg-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem min(4vw, 2rem);
    height: var(--header-height);
}

.tlg-header__brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.tlg-header__home {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Raleway', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gecko-green);
}

.tlg-badge {
    display: inline-flex;
    padding: 0.25rem 0.6rem;
    border-radius: 8px;
    background: rgba(45, 90, 39, 0.2);
    color: var(--gecko-green);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.tlg-burger {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--tlg-border);
    border-radius: 8px;
    background: var(--sand-cream);
    color: var(--gecko-green);
    position: relative;
    cursor: pointer;
}

.tlg-burger span {
    position: absolute;
    left: 10px;
    right: 10px;
    height: 2px;
    background: var(--gecko-green);
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.tlg-burger span:nth-child(1) { top: 14px; }
.tlg-burger span:nth-child(2) { top: 21px; }
.tlg-burger span:nth-child(3) { top: 28px; }

.tlg-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.tlg-burger.is-open span:nth-child(2) { opacity: 0; }
.tlg-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.tlg-nav {
    display: flex;
    align-items: center;
}

.tlg-nav__list {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.tlg-nav__link {
    padding: 0.25rem 0;
    font-weight: 500;
    color: var(--tlg-text);
    transition: color 0.2s ease;
}

.tlg-nav__link:hover { color: var(--gecko-green); }

main { padding-top: var(--header-height); }

/* Hero - Glassmorphism */
.tlg-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(100px, 18vw, 160px) 0 clamp(60px, 12vw, 100px);
    background: linear-gradient(160deg, var(--sand-cream) 0%, rgba(124, 179, 66, 0.08) 50%, var(--sand-cream) 100%);
}

.tlg-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 30%, rgba(124, 179, 66, 0.12) 0%, transparent 45%),
                radial-gradient(circle at 80% 70%, rgba(201, 162, 39, 0.08) 0%, transparent 45%);
    pointer-events: none;
}

.tlg-hero__content {
    position: relative;
    z-index: 2;
    max-width: 640px;
}

.tlg-hero__title {
    font-family: 'Raleway', sans-serif;
    font-size: clamp(1.9rem, 4.5vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--tlg-text);
    line-height: 1.25;
}

.tlg-hero__subtitle {
    color: var(--tlg-muted);
    font-size: 1.05rem;
    line-height: 1.75;
    margin-bottom: 1.5rem;
}

.tlg-hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.tlg-hero__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tlg-title {
    font-family: 'Raleway', sans-serif;
    font-size: clamp(1.65rem, 3.5vw, 2.2rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--tlg-text);
}

.tlg-lead {
    margin: 0 0 2rem;
    color: var(--tlg-muted);
    line-height: 1.7;
}

.tlg-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: rgba(45, 90, 39, 0.12);
    color: var(--tlg-text);
    font-size: 0.85rem;
}

/* 3D Button */
.tlg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    border: none;
    background: var(--gecko-green);
    color: white;
    font-weight: 600;
    font-family: 'Open Sans', sans-serif;
    box-shadow: 0 4px 0 var(--leaf-dark);
    transform: translateY(-1px);
    transition: transform 0.1s ease, box-shadow 0.1s ease;
    cursor: pointer;
}

.tlg-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 var(--leaf-dark);
}

.tlg-btn:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 var(--leaf-dark);
}

.tlg-btn--primary {
    background: var(--gecko-green);
    box-shadow: 0 4px 0 var(--leaf-dark);
}

.tlg-btn--secondary {
    background: var(--accent-gold);
    box-shadow: 0 4px 0 #9a7b1a;
}

.tlg-btn--secondary:hover { box-shadow: 0 6px 0 #9a7b1a; }
.tlg-btn--secondary:active { box-shadow: 0 2px 0 #9a7b1a; }

/* Age gate & Cookie */
.tlg-age {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(27, 46, 26, 0.88);
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.tlg-age.state-visible {
    opacity: 1;
    visibility: visible;
}

.tlg-age__window {
    background: var(--sand-cream);
    border-radius: 16px;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
    border: 1px solid var(--tlg-border);
}

.tlg-age__header {
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid var(--tlg-border);
}

.tlg-age__title {
    font-family: 'Raleway', sans-serif;
    font-size: 1.25rem;
    margin: 0;
    color: var(--tlg-text);
}

.tlg-age__content { padding: 1.5rem; }
.tlg-age__content p { margin: 0 0 0.8rem; color: var(--tlg-text); line-height: 1.6; }
.tlg-age__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.2rem; }
.tlg-age__notice { font-size: 0.9rem; color: var(--tlg-muted); margin-top: 1rem !important; }

.tlg-cookie {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1999;
    max-width: 340px;
    padding: 1.2rem;
    background: rgba(245, 240, 230, 0.98);
    border: 2px solid var(--gecko-green);
    border-radius: 14px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.tlg-cookie.state-visible {
    opacity: 1;
    visibility: visible;
}

.tlg-cookie p { margin: 0 0 0.8rem; font-size: 0.95rem; line-height: 1.5; }
.tlg-cookie__actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }

/* Benefits - Glassmorphism cards */
.tlg-benefits {
    padding: clamp(3rem, 6vw, 4.5rem) 0;
}

.tlg-benefits__grid {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(1.2rem, 3vw, 2rem);
    justify-content: center;
    align-items: stretch;
}

.tlg-benefit-card {
    flex: 1 1 280px;
    max-width: 360px;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

.tlg-benefit-card__title {
    font-family: 'Raleway', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 0.6rem;
    color: var(--gecko-green);
}

.tlg-benefit-card p { margin: 0; color: var(--tlg-text); line-height: 1.6; font-size: 0.95rem; }

/* Games grid */
.tlg-games {
    padding: clamp(3rem, 6vw, 4.5rem) 0;
    background: linear-gradient(180deg, transparent 0%, rgba(124, 179, 66, 0.04) 100%);
}

.tlg-games__grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    max-width: 1200px;
    margin: 0 auto;
}

.tlg-game-card {
    flex: 0 0 auto;
    width: clamp(280px, 28vw, 340px);
    max-width: 340px;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 16px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.07);
    overflow: hidden;
}

.tlg-game-card__thumb {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.tlg-game-card__body { padding: 1.25rem; }
.tlg-game-card__title {
    font-family: 'Raleway', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    color: var(--tlg-text);
}

.tlg-game-card__text { margin: 0 0 0.8rem; color: var(--tlg-muted); line-height: 1.55; font-size: 0.95rem; }
.tlg-game-card__meta { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1rem; }

/* FAQ */
.tlg-faq {
    padding: clamp(3rem, 6vw, 4.5rem) 0;
}

.tlg-faq__item {
    margin-bottom: 0.8rem;
    border: 1px solid var(--tlg-border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.5);
    overflow: hidden;
}

.tlg-faq__item summary {
    padding: 1rem 1.2rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--tlg-text);
}

.tlg-faq__item p {
    margin: 0;
    padding: 0 1.2rem 1rem;
    color: var(--tlg-muted);
    line-height: 1.65;
}

/* Disclaimer */
.tlg-disclaimer {
    padding: clamp(2rem, 4vw, 3rem) 0;
    background: linear-gradient(135deg, #c62828 0%, #8e0000 100%);
    color: #fff;
}

.tlg-disclaimer__title {
    font-family: 'Raleway', sans-serif;
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    margin: 0 0 1rem;
}

.tlg-disclaimer p {
    margin: 0 0 0.8rem;
    line-height: 1.7;
    font-size: 0.95rem;
}

.tlg-disclaimer a { color: #ffcc80; text-decoration: underline; }
.tlg-disclaimer__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.2rem;
}

.tlg-disclaimer__badges .tlg-tag {
    background: rgba(255,255,255,0.25);
    color: #fff;
}

/* Footer */
.tlg-footer {
    padding: clamp(2rem, 4vw, 3rem) 0 1.5rem;
    background: var(--leaf-dark);
    color: var(--sand-cream);
}

.tlg-footer__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.tlg-footer__heading {
    font-family: 'Raleway', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.8rem;
    color: var(--lizard-lime);
}

.tlg-footer__link {
    display: block;
    padding: 0.25rem 0;
    color: rgba(245, 240, 230, 0.85);
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.tlg-footer__link:hover { color: var(--sand-cream); }

.tlg-footer__section p {
    margin: 0 0 0.4rem;
    font-size: 0.9rem;
    color: rgba(245, 240, 230, 0.9);
}

.tlg-footer__logos-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.15);
}

.tlg-footer__logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

.tlg-footer__logo {
    height: 35px !important;
    width: auto !important;
    max-width: 120px;
    background: rgba(255,255,255,0.95);
    padding: 6px 10px;
    border-radius: 8px;
    object-fit: contain;
}

.tlg-footer__age {
    height: 35px;
    width: auto;
}

.tlg-footer__legal {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(245, 240, 230, 0.8);
}

/* Page content (inner pages) */
.tlg-page .tlg-hero { padding-top: 120px; padding-bottom: 2rem; }
.tlg-content {
    padding: 2rem 0 3rem;
}
.tlg-content h2 { font-family: 'Raleway', sans-serif; margin: 1.8rem 0 0.6rem; color: var(--gecko-green); }
.tlg-content h3 { font-family: 'Raleway', sans-serif; margin: 1.4rem 0 0.5rem; color: var(--tlg-text); }
.tlg-content p { margin: 0 0 1rem; line-height: 1.75; }
.tlg-content ul, .tlg-content ol { margin: 0 0 1rem; padding-left: 1.5rem; }

/* Blog/guides/reviews grids */
.tlg-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.tlg-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid var(--tlg-border);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.tlg-card__body { padding: 1.2rem; }
.tlg-card__title {
    font-family: 'Raleway', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
}

.tlg-card__meta { font-size: 0.85rem; color: var(--tlg-muted); margin-bottom: 0.6rem; }
.tlg-card p { margin: 0 0 0.8rem; font-size: 0.95rem; line-height: 1.55; }

/* Media */
@media (max-width: 960px) {
    :root { --header-height: 62px; }
    .tlg-burger { display: flex; align-items: center; justify-content: center; }
    .tlg-nav {
        position: fixed;
        top: calc(var(--header-height) - 1px);
        left: 0;
        right: 0;
        bottom: auto;
        background: var(--sand-cream);
        border-bottom: 1px solid var(--tlg-border);
        padding: 1rem;
        max-height: calc(100vh - var(--header-height));
        overflow-y: auto;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
    }
    .tlg-nav.state-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    .tlg-nav__list {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    .tlg-nav__link { padding: 0.6rem 0; display: block; }
    .tlg-hero { padding-top: 100px; }
    .tlg-games__grid { flex-direction: column; align-items: center; }
    .tlg-game-card { width: 100%; max-width: 400px; }
    .tlg-cookie { left: 16px; right: 16px; bottom: 16px; max-width: none; }
}

/* Account section: center title and lead above forms */
.tlg-account .tlg-title,
.tlg-account .tlg-lead {
    text-align: center;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}
.tlg-account .tlg-lead { margin-bottom: 0; }

/* Account tabs */
.tlg-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}
.tlg-tabs__tab {
    padding: 0.6rem 1.2rem;
    border: 2px solid var(--tlg-border);
    background: transparent;
    color: var(--tlg-text);
    font-weight: 600;
    cursor: pointer;
    border-radius: 10px;
    font-family: 'Open Sans', sans-serif;
}
.tlg-tabs__tab.state-active {
    background: var(--gecko-green);
    border-color: var(--gecko-green);
    color: white;
}
.tlg-panel {
    display: none;
    padding: 1.5rem 0;
}
.tlg-panel.state-visible { display: block; }
.tlg-panel form {
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}
.tlg-panel > p {
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}
.tlg-panel form label { display: block; margin-bottom: 0.4rem; font-weight: 500; }
.tlg-panel form input[type="text"],
.tlg-panel form input[type="email"],
.tlg-panel form input[type="password"],
.tlg-panel form textarea {
    width: 100%;
    max-width: 400px;
    padding: 0.6rem 0.8rem;
    margin-bottom: 1rem;
    border: 1px solid var(--tlg-border);
    border-radius: 8px;
    font-family: inherit;
}
.form-status { margin-top: 0.8rem; font-size: 0.95rem; color: var(--gecko-green); min-height: 1.5em; }
.form-status.state-visible { font-weight: 500; }

@media (max-width: 600px) {
    .tlg-footer__grid { grid-template-columns: 1fr; text-align: center; }
    .tlg-footer__logos-row { flex-direction: column; }
}
