:root {
    --color-bg-light: #fcfcfc;
    --color-surface: #ffffff;
    --color-surface-hover: #f5f5f5;
    --color-text-primary: #1a1a1a;
    --color-text-secondary: #5a5a5a;
    --color-accent: #b38d4f;
    --color-accent-hover: #9c7840;
    --color-accent-light: rgba(179, 141, 79, 0.08);

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 20px 60px rgba(0, 0, 0, 0.1);
    --radius: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.8;
    color: var(--color-text-primary);
    background-color: var(--color-bg-light);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--color-text-primary);
}

/* ─── Background ─── */
.background-container {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background-image: url('art.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2;
    opacity: 0.08;
}

.overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: linear-gradient(135deg, rgba(252, 252, 252, 0.97) 0%, rgba(252, 252, 252, 0.85) 100%);
    z-index: -1;
}

/* ─── Navbar ─── */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 0.9rem 5%;
    box-shadow: 0 8px 40px rgba(0,0,0,0.07);
}

.logo {
    display: block;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    mix-blend-mode: multiply;
    flex-shrink: 0;
}
.logo:hover { transform: scale(1.03); }
.logo-img { height: 52px; width: auto; object-fit: contain; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--color-text-primary);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}
.nav-link::after {
    content: '';
    position: absolute;
    width: 0; height: 2px;
    bottom: 0; left: 0;
    background-color: var(--color-accent);
    transition: width 0.3s ease;
}
.nav-link:hover { color: var(--color-accent); }
.nav-link:hover::after { width: 100%; }

/* Mobile nav hamburger */
.hamburger {
    display: none;
    background: transparent;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 0.55rem 0.75rem;
    font-size: 1.1rem;
    color: var(--color-text-primary);
    cursor: pointer;
    transition: all 0.2s;
    z-index: 1100;
}
.hamburger:hover { background: var(--color-surface-hover); }

.nav-close {
    display: none;
    background: transparent;
    border: none;
    font-size: 1.3rem;
    color: var(--color-text-primary);
    cursor: pointer;
    align-self: flex-end;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
}

.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 900;
    backdrop-filter: blur(2px);
}

.lang-switch {
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.15);
    color: var(--color-text-primary);
    padding: 0.55rem 1.3rem;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.35s ease;
}
.lang-switch:hover {
    background-color: var(--color-text-primary);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* ─── Base Layout ─── */
main { padding-top: 90px; }

.content-section {
    padding: 8rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.text-center { text-align: center; }

.divider {
    width: 80px; height: 2px;
    background-color: var(--color-accent);
    margin: 1.8rem auto;
}

/* ─── Hero ─── */
.hero {
    min-height: 88vh;
    display: flex;
    align-items: center;
    text-align: center;
    justify-content: center;
    padding-top: 8vh;
}

.hero-content { max-width: 860px; }

.subtitle {
    display: block;
    font-family: var(--font-body);
    font-size: 0.85rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.hero h1 {
    font-size: clamp(3.5rem, 7vw, 6rem);
    font-weight: 400;
    color: var(--color-text-primary);
    margin-bottom: 2rem;
    letter-spacing: -1.5px;
}

.hero p {
    font-size: 1.2rem;
    color: var(--color-text-secondary);
    max-width: 640px;
    margin: 0 auto 3rem;
    line-height: 1.85;
}

/* ─── Buttons ─── */
.btn-group { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.btn {
    display: inline-block;
    padding: 1rem 2.8rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    border: none;
}

.btn.primary {
    background-color: var(--color-text-primary);
    color: var(--color-surface);
    border: 1px solid var(--color-text-primary);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}
.btn.primary:hover {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(179, 141, 79, 0.28);
}

.btn.outline {
    background-color: transparent;
    color: var(--color-text-primary);
    border: 1.5px solid rgba(0,0,0,0.15);
}
.btn.outline:hover {
    border-color: var(--color-text-primary);
    background-color: var(--color-surface);
    transform: translateY(-3px);
    box-shadow: var(--shadow-soft);
}

/* ─── About ─── */
.about {
    background: var(--color-surface);
    border: 1px solid rgba(0, 0, 0, 0.04);
    margin-bottom: 8rem;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    padding: 7rem 5%;
}

.section-title {
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-weight: 400;
    letter-spacing: -0.5px;
}

.lead-text {
    font-size: 1.15rem;
    color: var(--color-text-secondary);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.9;
}

/* ─── Café ─── */
.cafe { margin-bottom: 8rem; }

.cafe-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    margin-top: 4.5rem;
}

.cafe-card {
    background: var(--color-surface);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.cafe-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(179, 141, 79, 0.15);
}

.cafe-card-icon {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 68px; height: 68px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(179, 141, 79, 0.12) 0%, rgba(179, 141, 79, 0.04) 100%);
    margin: 0 auto 1.8rem;
    border: 1px solid rgba(179, 141, 79, 0.2);
    color: var(--color-accent);
    transition: transform 0.3s ease;
}
.cafe-card:hover .cafe-card-icon { transform: scale(1.1) rotate(-5deg); }

.cafe-card h4 { font-size: 1.2rem; font-weight: 600; margin-bottom: 0.8rem; }
.cafe-card p { font-size: 0.95rem; color: var(--color-text-secondary); line-height: 1.8; }

.cafe-banner {
    margin-top: 4.5rem;
    padding: 4rem 3rem;
    background: linear-gradient(135deg, rgba(179, 141, 79, 0.08) 0%, rgba(179, 141, 79, 0.02) 100%);
    border-radius: 20px;
    border: 1px solid rgba(179, 141, 79, 0.18);
    text-align: center;
}

.cafe-banner blockquote {
    font-family: var(--font-heading);
    font-size: clamp(1.2rem, 2.5vw, 1.7rem);
    font-style: italic;
    font-weight: 400;
    color: var(--color-text-primary);
    line-height: 1.6;
    max-width: 680px;
    margin: 0 auto;
    position: relative;
}
.cafe-banner blockquote::before {
    content: '\201C';
    font-size: 5rem;
    color: var(--color-accent);
    opacity: 0.25;
    position: absolute;
    top: -2rem; left: -1rem;
    font-family: var(--font-heading);
    line-height: 1;
}

/* ─── Gallery ─── */
.gallery { margin-bottom: 8rem; }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 240px;
    gap: 1rem;
    margin-top: 4.5rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    cursor: pointer;
    border: 1px solid rgba(179, 141, 79, 0.1);
    box-shadow: 0 6px 24px rgba(0,0,0,0.06);
}
.gallery-item--tall { grid-row: span 2; }
.gallery-item--wide { grid-column: span 2; }

.gallery-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease;
    filter: sepia(10%) saturate(0.95) brightness(0.97);
}

.gallery-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(179, 141, 79, 0.16) 0%, rgba(252, 246, 235, 0.06) 100%);
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.gallery-item:hover img {
    transform: scale(1.07);
    filter: sepia(0%) saturate(1.1) brightness(1.02);
}
.gallery-item:hover .gallery-overlay { opacity: 0; }

/* ─── Games / Oyunlarımız ─── */
.games-section { margin-bottom: 2rem; }

.games-calendar {
    margin-top: 4rem;
}

.games-loading {
    text-align: center;
    padding: 3rem;
    color: var(--color-text-secondary);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
}
.games-loading i { color: var(--color-accent); }

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.game-card {
    background: var(--color-surface);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 18px;
    padding: 2rem 1.8rem;
    box-shadow: var(--shadow-soft);
    transition: all 0.35s cubic-bezier(0.16,1,0.3,1);
    position: relative;
    overflow: hidden;
}
.game-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px; height: 100%;
    background: var(--color-accent);
    border-radius: 0 2px 2px 0;
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.35s ease;
}
.game-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(179,141,79,0.2);
}
.game-card:hover::before { transform: scaleY(1); }

.game-card-badge {
    display: inline-block;
    background: var(--color-accent-light);
    border: 1px solid rgba(179,141,79,0.25);
    color: var(--color-accent);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 0.3rem 0.75rem;
    border-radius: 6px;
    margin-bottom: 1.2rem;
}

.game-card-date {
    font-family: var(--font-heading);
    font-size: 1.7rem;
    font-weight: 400;
    color: var(--color-text-primary);
    margin-bottom: 0.3rem;
}

.game-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 0.5rem;
}

.game-card-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--color-accent);
    font-weight: 600;
    margin-bottom: 0.8rem;
}
.game-card-time i { font-size: 0.85rem; }

.game-card-desc {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

.games-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--color-text-secondary);
    background: var(--color-surface);
    border-radius: 20px;
    border: 1px solid rgba(0,0,0,0.05);
}
.games-empty i { font-size: 2.5rem; color: var(--color-accent); opacity: 0.4; margin-bottom: 1rem; display: block; }

/* ─── Contact / Reservation ─── */
.reservation-box {
    background-color: var(--color-surface);
    padding: 6rem 4rem;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    box-shadow: var(--shadow-hover);
    max-width: 860px;
    margin: 0 auto;
}

.reservation-box > p {
    color: var(--color-text-secondary);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.1rem;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.9rem;
    margin: 0 auto 2.5rem;
    max-width: 680px;
    text-align: left;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    background: var(--color-surface-hover);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 12px;
    padding: 1rem 1.4rem;
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    text-decoration: none;
}
.contact-info-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(179,141,79,0.2);
    color: var(--color-text-primary);
}

.contact-link { cursor: pointer; }

.contact-icon {
    font-size: 1.1rem;
    color: var(--color-accent);
    flex-shrink: 0;
    width: 22px;
    text-align: center;
}

/* ─── Footer ─── */
.site-footer {
    background-color: var(--color-surface);
    padding: 5rem 5% 3rem;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.footer-content { max-width: 600px; margin: 0 auto; }

.footer-logo {
    display: inline-block;
    margin-bottom: 1.5rem;
    mix-blend-mode: multiply;
    transition: transform 0.3s ease;
}
.footer-logo:hover { transform: scale(1.03); }

.footer-address {
    font-size: 0.85rem;
    color: var(--color-accent);
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    margin-bottom: 2rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid rgba(0,0,0,0.08);
    color: var(--color-text-secondary);
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}
.footer-social a:hover {
    background: var(--color-text-primary);
    color: #fff;
    border-color: var(--color-text-primary);
    transform: translateY(-3px);
}

.site-footer p {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    letter-spacing: 0.5px;
}

/* ─── Animations ─── */
.fade-in {
    opacity: 0;
    transform: translateY(35px);
    animation: fadeInUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.4s; }
.delay-4 { animation-delay: 0.6s; }

/* ─── Lightbox ─── */
.lightbox {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background-color: #0c0a08;
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}
.lightbox.active { opacity: 1; pointer-events: auto; }

.lightbox-content {
    max-width: 90vw; max-height: 90vh;
    box-shadow: 0 10px 60px rgba(0,0,0,0.6);
    border-radius: 8px;
    overflow: hidden;
}
.lightbox-content img {
    max-width: 100%; max-height: 90vh;
    object-fit: contain;
    display: block;
}

.lightbox-close {
    position: absolute; top: 2rem; right: 3rem;
    background: transparent; border: none;
    color: #fcfcfc; font-size: 2rem;
    cursor: pointer; transition: color 0.3s;
    z-index: 2010;
}
.lightbox-close:hover { color: var(--color-accent); }

.lightbox-nav {
    position: absolute; top: 50%;
    transform: translateY(-50%);
    background: transparent; border: none;
    color: #fcfcfc; font-size: 3rem;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
    padding: 1rem; z-index: 2010;
}
.lightbox-nav:hover { color: var(--color-accent); }
.lightbox-prev { left: 2rem; }
.lightbox-prev:hover { transform: translate(-5px, -50%); }
.lightbox-next { right: 2rem; }
.lightbox-next:hover { transform: translate(5px, -50%); }

.lightbox-counter {
    position: absolute; bottom: 2rem; left: 50%;
    transform: translateX(-50%);
    color: #fcfcfc; font-family: var(--font-body);
    font-size: 0.9rem; letter-spacing: 2px;
}

/* ─── Responsive ─── */
@media (max-width: 900px) {
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-item--wide { grid-column: span 2; }
    .contact-info-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .hamburger { display: block; }
    .mobile-overlay.open { display: block; }

    .nav-links {
        position: fixed;
        top: 0; right: -100%;
        height: 100vh; width: 80%;
        max-width: 320px;
        background: rgba(255,255,255,0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: flex-start;
        padding: 1.5rem 2rem 3rem;
        transition: right 0.4s cubic-bezier(0.16,1,0.3,1);
        box-shadow: -10px 0 40px rgba(0,0,0,0.1);
        z-index: 1000;
        gap: 1rem;
    }
    .nav-links.open { right: 0; }
    .nav-close { display: block; }

    .nav-list {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }
    .nav-link { font-size: 1rem; padding: 0.7rem 0; }

    .hero h1 { font-size: 2.8rem; }
    .content-section { padding: 5rem 1.5rem; }
    .reservation-box { padding: 4rem 1.5rem; }
    .about { padding: 5rem 1.5rem; }

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

@media (max-width: 540px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 220px;
    }
    .gallery-item--tall,
    .gallery-item--wide {
        grid-row: span 1;
        grid-column: span 1;
    }
    .cafe-banner { padding: 2.5rem 1.5rem; }
}
