/* =====================================================================
   Sarı Taekwondo - Herkese açık sayfalar (tanıtım + giriş ekranları)
   Yönetim paneliyle (assets/style.css) aynı tasarım dili:
   beyaz kartlar, açık gri zemin, sarı vurgu, siyah metin/aksan.
   ===================================================================== */

:root {
    --brand:        #FFCE00;
    --brand-dark:   #E0A800;
    --brand-soft:   #FFF8E1;
    --brand-glow:   rgba(255, 206, 0, 0.35);
    --ink:          #1b2030;
    --muted:        #6b7280;
    --bg:           #f4f6fa;
    --surface:      #ffffff;
    --border:       #e9ebf1;
    --radius:       18px;
    --radius-sm:    12px;
    --shadow:       0 6px 28px rgba(20, 23, 40, 0.06);
    --shadow-hover: 0 14px 40px rgba(20, 23, 40, 0.10);
}

* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; }

/* ---------- Butonlar (panel ile aynı) ---------- */
.btn-brand {
    background: var(--brand); color: var(--ink); font-weight: 700; border: none;
    border-radius: var(--radius-sm); padding: .6rem 1.25rem;
    box-shadow: 0 4px 14px var(--brand-glow); transition: all .2s ease;
}
.btn-brand:hover, .btn-brand:focus, .btn-brand.show {
    background: var(--brand-dark); color: var(--ink);
    transform: translateY(-2px); box-shadow: 0 8px 20px rgba(224,168,0,.42);
}
.btn-ink {
    background: var(--ink); color: #fff; font-weight: 700; border: none;
    border-radius: var(--radius-sm); padding: .6rem 1.25rem; transition: all .2s ease;
}
.btn-ink:hover, .btn-ink:focus { background: #000; color: var(--brand); transform: translateY(-2px); }
.btn-line {
    background: var(--surface); color: var(--ink); font-weight: 700;
    border: 1.5px solid var(--ink); border-radius: var(--radius-sm); padding: .6rem 1.25rem; transition: all .2s ease;
}
.btn-line:hover { background: var(--ink); color: #fff; }

/* =====================================================================
   TANITIM SAYFASI
   ===================================================================== */
.site { background: var(--surface); }
.site section[id] { scroll-margin-top: 80px; }
html { scroll-behavior: smooth; }

/* ---------- Üst menü (paneldeki topbar gibi) ---------- */
.site-nav {
    background: rgba(255,255,255,.88); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border); padding: .7rem 0;
    transition: box-shadow .25s ease;
}
.site-nav.scrolled { box-shadow: 0 6px 24px rgba(20,23,40,.07); }
.site-nav .navbar-brand { display: flex; align-items: center; gap: .65rem; color: var(--ink); font-weight: 800; letter-spacing: -.02em; }
.site-nav .navbar-brand img { height: 40px; width: auto; transition: transform .45s cubic-bezier(.34, 1.56, .64, 1); }
.site-nav .navbar-brand:hover img { transform: rotate(-10deg) scale(1.08); }
.site-nav .nav-link {
    color: var(--muted); font-weight: 600; font-size: .93rem;
    padding: .5rem .85rem !important; border-radius: 10px; transition: all .18s ease;
}
.site-nav .nav-link:hover, .site-nav .nav-link:focus { color: var(--ink); background: var(--brand-soft); }
.site-nav .navbar-toggler { border: none; background: var(--brand-soft); border-radius: 12px; padding: .5rem .7rem; }
.site-nav .navbar-toggler:focus { box-shadow: 0 0 0 .2rem var(--brand-glow); }

.login-menu {
    border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 24px 60px rgba(20,23,40,.14);
    padding: .5rem; min-width: 270px;
}
.login-menu .dropdown-item { border-radius: var(--radius-sm); padding: .7rem .8rem; display: flex; gap: .75rem; align-items: center; white-space: normal; }
.login-menu .dropdown-item:hover { background: var(--brand-soft); }
.login-menu .ico { width: 38px; height: 38px; border-radius: 10px; background: var(--brand); color: var(--ink); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.login-menu .t { font-weight: 700; color: var(--ink); line-height: 1.2; }
.login-menu .s { font-size: .8rem; color: var(--muted); }

/* ---------- Hero (panel marka alanındaki sarı-beyaz geçiş) ---------- */
.hero {
    position: relative; overflow: hidden;
    background: linear-gradient(135deg, #fffdf5 0%, var(--brand-soft) 55%, #ffffff 100%);
    border-bottom: 1px solid var(--border);
    padding: 8.5rem 0 5.5rem;
}
.hero::before {
    content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
    background-image: repeating-linear-gradient(135deg, rgba(27,32,48,.035) 0 2px, transparent 2px 22px);
}
.hero .container { position: relative; }
.eyebrow {
    display: inline-flex; align-items: center; gap: .5rem;
    font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--ink);
}
.eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 3px; background: var(--brand); }
.hero h1 {
    font-weight: 900; letter-spacing: -.035em; line-height: 1.06; color: var(--ink);
    font-size: clamp(2.4rem, 5.5vw, 4.1rem); margin: 1rem 0 1.25rem;
}
/* Sarı "işaretleyici" vurgusu: sarı metin beyazda okunmadığı için zemine sarı çizgi */
.hero h1 .mark {
    background: linear-gradient(transparent 58%, var(--brand) 58%, var(--brand) 92%, transparent 92%);
    padding: 0 .1em; -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.hero .lead { color: var(--muted); font-size: 1.12rem; max-width: 520px; }
.hero-emblem { position: relative; width: min(360px, 80vw); aspect-ratio: 1; margin: 0 auto; }
.hero-emblem .ring { position: absolute; inset: 0; border-radius: 50%; border: 2px dashed rgba(27,32,48,.18); animation: spin 60s linear infinite; }
.hero-emblem .disc {
    position: absolute; inset: 9%; border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #fff8e1, var(--brand) 70%);
    box-shadow: 0 30px 70px rgba(224,168,0,.30), inset 0 -10px 30px rgba(0,0,0,.06);
    display: flex; align-items: center; justify-content: center;
}
.hero-emblem .disc img { width: 50%; filter: drop-shadow(0 14px 18px rgba(27,32,48,.22)); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .hero-emblem .ring, .hero-emblem .disc img { animation: none; } html { scroll-behavior: auto; } }

/* ---------- Değer kartları (paneldeki bilgi kartları gibi) ---------- */
.values { margin-top: -2.6rem; position: relative; z-index: 2; }
.value-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 1.35rem 1.2rem; box-shadow: var(--shadow); height: 100%;
    display: flex; gap: .9rem; align-items: flex-start; position: relative; overflow: hidden;
    transition: all .25s ease;
}
.value-card::after {
    content: ''; position: absolute; right: -22px; top: -22px;
    width: 80px; height: 80px; border-radius: 50%; background: var(--brand-soft); opacity: .8;
}
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.value-card .ico {
    width: 46px; height: 46px; border-radius: 12px; background: var(--ink); color: var(--brand);
    display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; position: relative; z-index: 1;
}
.value-card > div:last-child { min-width: 0; position: relative; z-index: 1; }
.value-card h3 { font-size: 1rem; font-weight: 800; margin: 0 0 .2rem; color: var(--ink); }
.value-card p { font-size: .86rem; color: var(--muted); margin: 0; }
@media (max-width: 575.98px) {
    .value-card { flex-direction: column; gap: .7rem; padding: 1.1rem 1rem; }
}

/* ---------- Bölümler ---------- */
.section { padding: 5.5rem 0; background: var(--surface); }
.section-alt { background: var(--bg); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-title { font-weight: 900; letter-spacing: -.03em; font-size: clamp(1.8rem, 3.5vw, 2.4rem); margin: .6rem 0 1rem; color: var(--ink); }
.section-lead { color: var(--muted); font-size: 1.04rem; max-width: 640px; }

.about-points li { display: flex; gap: .75rem; margin-bottom: .9rem; }
.about-points i { color: var(--brand-dark); margin-top: .25rem; }
.about-box {
    background: linear-gradient(135deg, #fffdf5 0%, var(--brand-soft) 100%);
    border: 1px solid var(--border); border-left: 6px solid var(--brand);
    border-radius: var(--radius); box-shadow: var(--shadow);
    padding: 1.5rem 1.7rem 1.6rem; position: relative; overflow: hidden;
}
.about-box::after {
    content: "태권도"; position: absolute; right: 1rem; top: 50%; transform: translateY(-50%);
    font-size: 4.2rem; font-weight: 900; color: rgba(27,32,48,.05); line-height: 1; pointer-events: none;
}
.about-box > * { position: relative; z-index: 1; }
.about-box .big { font-size: 1.28rem; font-weight: 800; line-height: 1.35; color: var(--ink); }
.about-box .big span { color: var(--muted); font-weight: 600; }
.about-box p { color: var(--muted); }

/* ---------- Kulüp fotoğraf galerisi (Bootstrap carousel) ---------- */
.salon-slider {
    border-radius: var(--radius); overflow: hidden; background: var(--ink);
    border: 1px solid var(--border); box-shadow: var(--shadow-hover);
}
.salon-slider .carousel-item img {
    display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center;
}
.salon-slider .slide-cap {
    position: absolute; left: 1rem; bottom: 1rem; z-index: 2;
    background: rgba(27,32,48,.85); color: #fff; font-weight: 700; font-size: .85rem;
    padding: .45rem .8rem; border-radius: 10px; border-left: 4px solid var(--brand);
}
.salon-slider .carousel-indicators { left: auto; right: 1rem; margin: 0 0 1.35rem; justify-content: flex-end; }
.salon-slider .carousel-indicators [data-bs-target] {
    width: 22px; height: 5px; border: 0; border-radius: 3px; margin: 0 3px;
    background: #fff; opacity: .6;
}
.salon-slider .carousel-indicators .active { background: var(--brand); opacity: 1; }
.salon-slider .carousel-control-prev, .salon-slider .carousel-control-next { width: 14%; opacity: 1; }
.salon-slider .ctrl {
    width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--ink);
    display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(0,0,0,.18);
    transition: all .2s ease;
}
.salon-slider .carousel-control-prev:hover .ctrl, .salon-slider .carousel-control-next:hover .ctrl { background: var(--brand); }

.program-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 2rem; height: 100%; transition: all .25s ease;
}
.program-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.program-card .tag {
    display: inline-block; font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
    padding: .35rem .75rem; border-radius: 999px; background: var(--brand); color: var(--ink);
}
.program-card h3 { font-weight: 800; font-size: 1.35rem; margin: 1rem 0 .6rem; color: var(--ink); }
.program-card p, .program-card li { color: var(--muted); }
.program-card ul { list-style: none; padding: 0; margin: 1.2rem 0 0; }
.program-card li { display: flex; gap: .6rem; margin-bottom: .55rem; font-size: .95rem; }
.program-card li i { color: var(--brand-dark); margin-top: .2rem; }
/* Maç grubu: siyah vurgu kartı */
.program-card.featured { background: var(--ink); border-color: var(--ink); }
.program-card.featured h3 { color: #fff; }
.program-card.featured p, .program-card.featured li { color: rgba(255,255,255,.72); }
.program-card.featured li i { color: var(--brand); }

.day-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 1.8rem 1.4rem; text-align: center; height: 100%; transition: all .25s ease;
}
.day-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.day-card .dot {
    width: 54px; height: 54px; margin: 0 auto 1rem; border-radius: 14px;
    background: var(--brand); color: var(--ink); display: flex; align-items: center; justify-content: center; font-size: 1.3rem;
    box-shadow: 0 6px 16px var(--brand-glow);
}
.day-card .day { font-size: 1.3rem; font-weight: 900; color: var(--ink); }
.day-card .hours { color: var(--muted); font-weight: 600; margin-top: .35rem; }

.contact-item {
    display: flex; gap: 1rem; align-items: flex-start; padding: 1.2rem;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: var(--shadow); height: 100%; color: var(--ink); transition: all .2s ease;
}
a.contact-item:hover { border-color: var(--brand); box-shadow: var(--shadow-hover); color: var(--ink); }
.contact-item .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--ink); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-item .k { font-size: .76rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.contact-item .v { font-weight: 700; word-break: break-word; }

.portal {
    background: linear-gradient(135deg, var(--brand) 0%, #ffd83d 100%);
    border-radius: var(--radius); padding: 2.5rem; color: var(--ink); box-shadow: 0 14px 40px rgba(224,168,0,.25);
}
.portal h2 { font-weight: 900; letter-spacing: -.02em; }

.site-footer { background: var(--ink); color: rgba(255,255,255,.62); padding: 2rem 0; font-size: .9rem; }
.site-footer a { color: rgba(255,255,255,.8); }
.site-footer a:hover { color: var(--brand); }
.site-footer .brand { display: flex; align-items: center; gap: .6rem; color: #fff; font-weight: 800; }
.site-footer .brand img { height: 34px; width: auto; }

@media (max-width: 991.98px) {
    .site-nav { background: var(--surface); }
    .site-nav .navbar-collapse { padding: .75rem 0 .5rem; }
    .site-nav .dropdown-menu { box-shadow: none; }
    .hero { padding: 7rem 0 4.5rem; text-align: center; }
    .hero .lead { margin-left: auto; margin-right: auto; }
    .eyebrow { justify-content: center; }
    .hero-emblem { width: min(250px, 68vw); margin-top: 2.5rem; }
    .section { padding: 4.25rem 0; }
}

/* =====================================================================
   GİRİŞ EKRANLARI (yönetici + öğrenci)
   ===================================================================== */
.auth-page {
    min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 1rem;
    background: var(--bg);
}
.login-container { width: 100%; max-width: 410px; }
.login-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: 0 20px 60px rgba(20,23,40,.10); overflow: hidden;
}
/* Paneldeki kenar menü marka alanıyla aynı başlık */
.login-head {
    display: flex; align-items: center; gap: .85rem; padding: 1.4rem 1.5rem;
    background: linear-gradient(135deg, #fffdf5 0%, var(--brand-soft) 100%);
    border-bottom: 1px solid var(--border);
}
.login-logo { width: 56px; height: 56px; border-radius: 14px; background: var(--ink); box-shadow: 0 8px 20px rgba(27,32,48,.22); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.login-logo img { height: 38px; width: auto; }
.login-head h4 { font-weight: 800; letter-spacing: -.02em; margin: 0; font-size: 1.12rem; color: var(--ink); }
.login-head .subtitle {
    display: inline-block; margin-top: .3rem; font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
    background: var(--ink); color: var(--brand); padding: .2rem .55rem; border-radius: 6px;
}
.login-body { padding: 1.6rem 1.5rem 1.7rem; }
.login-body .form-label { font-weight: 600; font-size: .85rem; color: var(--muted); }
.login-body .form-control { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; border-color: var(--border); padding: .65rem .9rem; }
.login-body .input-group-text { background: var(--surface); border-color: var(--border); border-radius: var(--radius-sm) 0 0 var(--radius-sm); color: var(--muted); }
.login-body .form-control:focus { border-color: var(--brand); box-shadow: 0 0 0 .2rem var(--brand-glow); }
.btn-login {
    background: var(--brand); color: var(--ink); border: none; border-radius: var(--radius-sm);
    font-weight: 700; padding: .7rem; width: 100%; transition: all .2s ease; box-shadow: 0 4px 14px var(--brand-glow);
}
.btn-login:hover { background: var(--brand-dark); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(224,168,0,.42); }
.login-card .alert { border: none; border-radius: var(--radius-sm); }
.guest-link { text-align: center; margin-top: 1.2rem; display: flex; justify-content: center; flex-wrap: wrap; gap: .4rem 1.2rem; }
.guest-link a { color: var(--muted); font-weight: 600; font-size: .9rem; }
.guest-link a:hover { color: var(--ink); }
