:root {
    --color-bg: #ffffff;
    --color-bg-alt: #f5f5ff;
    --color-text: #1e1b2e;
    --color-muted: #6b6685;
    --color-border: #e6e3f5;
    --color-primary: #4f46e5;
    --color-primary-dark: #4338ca;
    --color-secondary: #9333ea;
    --radius: 16px;
    --wrap-max: 1200px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
}

img { max-width: 100%; height: auto; }
a { color: var(--color-primary-dark); }

/* Standart, ortalanmış, sağa-sola simetrik yaslanan web container */
.wrap {
    max-width: var(--wrap-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Header ---------- */

.site-header {
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.08);
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    z-index: 10;
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 24px;
}

.site-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--color-text);
}

.brand-logo { height: 36px; width: auto; display: block; }

.nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--color-text); border-radius: 2px; }

.site-nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    padding: 0.5rem 24px 1rem;
}
.site-nav.is-open { display: flex; }
.site-nav a {
    padding: 0.6rem 0.4rem;
    text-decoration: none;
    color: var(--color-text);
    border-bottom: 1px solid var(--color-border);
    font-weight: 600;
    border-radius: 8px;
    transition: color 0.15s ease, background-color 0.15s ease;
}
.site-nav a:last-child { border-bottom: none; }
.site-nav a:hover,
.site-nav a:focus-visible {
    color: var(--color-primary-dark);
    background: var(--color-bg-alt);
    outline: none;
}
.site-nav a.is-active { color: var(--color-primary-dark); font-weight: 700; }

/* ---------- Hero ---------- */

.hero {
    background: radial-gradient(circle at top left, #eef2ff, #ffffff 60%);
    padding: 3rem 0 2.5rem;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: center;
}
/* Mobilde nick/şifre kutusu hemen görünsün diye önce gelir */
.hero-panel { order: -1; }
.hero-copy h1 { font-size: 1.7rem; margin: 0 0 0.6rem; letter-spacing: -0.02em; }
.hero-tagline { color: var(--color-muted); font-size: 1.05rem; margin: 0 0 0.5rem; }
.hero-note { color: var(--color-muted); font-size: 0.85rem; }

.hero-panel {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: 0 20px 40px -20px rgba(79, 70, 229, 0.25);
}
.quick-connect-form h2 { margin: 0 0 1rem; font-size: 1.15rem; }
.quick-connect-form label { display: block; font-weight: 600; font-size: 0.85rem; margin: 0.7rem 0 0.3rem; }
.quick-connect-form select, .quick-connect-form input {
    width: 100%;
    padding: 0.65rem 0.8rem;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    font-size: 0.95rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.6rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    cursor: pointer;
}
.btn-primary { background: linear-gradient(135deg, var(--color-primary), var(--color-secondary)); color: #fff; }
.btn-block { width: 100%; margin-top: 1.1rem; text-align: center; }

/* ---------- Rooms grid ---------- */

.rooms-grid-section { padding: 2.5rem 0; }
.rooms-grid-section h2, .feature-section h2 { font-size: 1.5rem; margin-bottom: 1.25rem; }
.rooms-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }

.room-card {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 1.25rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--color-text);
    background: var(--color-bg-alt);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.room-card:hover { transform: translateY(-3px); box-shadow: 0 12px 24px -12px rgba(79, 70, 229, 0.35); }
.room-icon { font-size: 1.8rem; }
.room-name { font-weight: 700; }
.room-desc { color: var(--color-muted); font-size: 0.88rem; }

/* ---------- Guides grid ---------- */

.guides-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-top: 1.25rem; }
.guide-card {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1.25rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--color-text);
    background: var(--color-bg-alt);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.guide-card:hover { transform: translateY(-3px); box-shadow: 0 12px 24px -12px rgba(79, 70, 229, 0.35); }
.guide-title { font-weight: 700; }
.guide-desc { color: var(--color-muted); font-size: 0.88rem; }

/* ---------- Features ---------- */

.feature-section { padding: 1rem 0 3rem; }
.feature-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.feature-card { padding: 1.25rem; border-radius: var(--radius); background: var(--color-bg-alt); border: 1px solid var(--color-border); }
.feature-card strong { display: block; margin-bottom: 0.3rem; }
.feature-card p { margin: 0; color: var(--color-muted); font-size: 0.9rem; }

/* ---------- Content page ---------- */

.breadcrumb-nav { font-size: 0.82rem; color: var(--color-muted); margin: 1.5rem 0 1rem; }
.breadcrumb-nav a { color: var(--color-muted); }
.content-page { padding-bottom: 3rem; }
.content-page h1 { font-size: 1.7rem; }
.content-block { margin-top: 1rem; }
.content-block h2 { font-size: 1.25rem; margin-top: 1.5rem; }

.faq-list h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 1.6rem 0 0.5rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--color-border);
}
.faq-list h3:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.faq-list p { color: var(--color-muted); margin: 0 0 0.5rem; }

/* ---------- Room page ---------- */

.room-layout { display: grid; grid-template-columns: 1fr; gap: 1.5rem; padding-bottom: 3rem; }
.nickname-form {
    padding: 1.5rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-bg-alt);
    box-shadow: 0 20px 40px -25px rgba(79, 70, 229, 0.3);
}
.nickname-form label { display: block; font-weight: 600; margin-bottom: 0.4rem; font-size: 0.88rem; }
.nickname-form input {
    width: 100%;
    padding: 0.75rem 0.9rem;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    font-size: 1rem;
    margin-bottom: 0.9rem;
}
.form-note { color: var(--color-muted); font-size: 0.82rem; margin-top: 0.7rem; margin-bottom: 0; text-align: center; }

/* ---------- Related content ---------- */

.related-rooms { margin-top: 2rem; }
.related-rooms h2 { font-size: 1.15rem; margin-bottom: 0.75rem; }
.related-rooms-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}
.related-rooms-list a {
    display: inline-block;
    padding: 0.5rem 0.9rem;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    text-decoration: none;
    color: var(--color-text);
    background: var(--color-bg-alt);
    font-size: 0.9rem;
}
.related-rooms-list a:hover { color: var(--color-primary-dark); }

.related-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.25rem;
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--color-border);
    font-size: 0.9rem;
}

/* ---------- Chat embed ---------- */

.chat-embed-frame { width: 100%; height: calc(100vh - 64px); border: none; display: block; }
.chat-embed-back { text-align: center; padding: 0.9rem 0; font-size: 0.88rem; }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--color-border); background: var(--color-bg-alt); margin-top: 2rem; }
.site-footer-inner { padding: 2.5rem 24px; display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.footer-col h3, .footer-col h4 { margin: 0 0 0.6rem; font-size: 1rem; }
.footer-col p { color: var(--color-muted); font-size: 0.88rem; margin: 0; }
.footer-col a { display: block; color: var(--color-muted); text-decoration: none; font-size: 0.88rem; padding: 0.25rem 0; }
.site-footer-bottom { text-align: center; font-size: 0.78rem; color: var(--color-muted); padding: 1rem 24px 1.5rem; }

/* ---------- Breakpoints ---------- */

@media (min-width: 640px) {
    .nav-toggle { display: none; }
    .site-nav { display: flex; flex-direction: row; align-items: center; position: static; border: none; padding: 0; gap: 1.5rem; }
    .site-nav a {
        border-bottom: 2px solid transparent;
        padding: 0.3rem 0.1rem;
        border-radius: 0;
    }
    .site-nav a:hover, .site-nav a:focus-visible {
        background: none;
        border-bottom-color: var(--color-primary);
    }
    .site-nav a.is-active { border-bottom-color: var(--color-primary-dark); }
    .rooms-grid { grid-template-columns: repeat(2, 1fr); }
    .feature-grid { grid-template-columns: repeat(3, 1fr); }
    .guides-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 860px) {
    .hero-grid { grid-template-columns: 1.1fr 0.9fr; }
    .hero-panel { order: 0; }
    .hero-copy h1 { font-size: 2.6rem; }
    .room-layout { grid-template-columns: 1.3fr 1fr; align-items: start; }
}

@media (min-width: 1024px) {
    .rooms-grid { grid-template-columns: repeat(3, 1fr); }
    .site-footer-inner { grid-template-columns: 2fr 1fr 1fr; }
}
