﻿/* ==========================================================================
   CUSTOM OVERRIDES — Template CSS'lerini ezmek için
   Yükleme sırası: bootstrap → index-X → custom (en son, kazanır)
   ========================================================================== */

/* ---------- 1. Arka plan + açılış animasyonu ---------- */
body {
    background: url('../img/bg.png?v=3') no-repeat center center fixed !important;
    background-size: cover !important;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    opacity: 0;
    transition: opacity .6s ease-out;
    display: flex;
    flex-direction: column;
}

body.bg-loaded {
    opacity: 1;
}

/* Staggered reveal — body.bg-loaded gelince çocuklar sırayla açılır */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .5s ease-out, transform .5s ease-out;
}

body.bg-loaded .reveal {
    opacity: 1;
    transform: translateY(0);
}

body.bg-loaded .reveal-delay-1 { transition-delay: .15s; }
body.bg-loaded .reveal-delay-2 { transition-delay: .3s; }
body.bg-loaded .reveal-delay-3 { transition-delay: .45s; }
body.bg-loaded .reveal-delay-4 { transition-delay: .6s; }

/* ---------- 3. Üst logo container — mobilde daha kompakt ---------- */
.ust-logo-container {
    height: auto !important;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
}

/* ---------- 4. Container custom — mobilde tam yükseklik ---------- */
.container-custom {
    flex: 1 !important;
    padding: 16px !important;
    gap: 16px;
}

/* ---------- 5. Form Box — glassmorphism efekt ---------- */
.form-box {
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 16px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
    padding: 24px !important;
    width: 100%;
    max-width: 440px;
}

.form-box h5 {
    color: #0f172a;
    font-size: 1.1rem;
    margin-bottom: 16px;
}

/* ---------- 6. Form elemanları — touch-friendly ---------- */
.form-box input.form-control {
    height: 48px !important;
    font-size: 16px !important;
    border-radius: 10px;
    border: 1.5px solid #d1d5db;
    padding: 8px 14px;
    transition: border-color .2s, box-shadow .2s;
}

.form-box input.form-control:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.form-box .btn-primary {
    width: 100%;
    height: 48px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 10px;
    background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%);
    border: none;
    transition: transform .15s, box-shadow .15s;
}

.form-box .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
}

.form-box .btn-primary:active {
    transform: translateY(0);
}

/* ---------- 7. Validation mesajları ---------- */
.form-box .text-danger {
    font-size: 13px;
    display: block;
    margin-top: 4px;
}

/* ---------- 8. Inline style temizliği — terms listesi ---------- */
.terms-list {
    list-style: none;
    padding-left: 0;
    margin-left: 20px;
    text-align: left;
}

/* ---------- 9. Box butonları (salon seçimi) — mobilde alt alta ---------- */
.box-button {
    min-height: 56px;
    border-radius: 12px !important;
    transition: transform .15s, box-shadow .15s;
}

.box-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* ---------- 10. Footer — yasal uyarı bandı (HTML) ---------- */
footer {
    position: relative !important;
    bottom: auto !important;
    padding: 0;
    width: 100%;
    margin-top: auto;
}

.footer-warning {
    width: 100%;
    background: #fff;
    border-top: 3px solid;
    border-image: linear-gradient(90deg, #1a3a6b 0%, #2196F3 40%, #00bcd4 100%) 1;
}

.footer-warning-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 8px 12px;
    max-width: 960px;
    margin: 0 auto;
}

.footer-warning-badge {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border: 2.5px solid #222;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 12px;
    color: #222;
    line-height: 1;
}

.footer-warning-text {
    text-align: center;
    font-size: 10px;
    font-weight: 600;
    color: #111;
    line-height: 1.4;
}

.footer-warning-text strong {
    display: block;
    font-weight: 800;
}

/* ---------- 12. Event page — mobil video/chat ---------- */
.media-container {
    gap: 8px;
}

.video-container iframe,
.chat-container iframe {
    border-radius: 8px;
}

/* Mobil: Çıkış butonu daha küçük */
.event-topbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 8px 12px;
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 10;
}

.event-topbar .btn {
    font-size: 13px;
    padding: 6px 14px;
}

/* Dil bayrakları */
.lang-switcher {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 4px 0;
}

.lang-switcher img {
    height: 28px;
    border-radius: 4px;
    transition: transform .15s;
}

.lang-switcher img:hover {
    transform: scale(1.08);
}

/* ---------- 11. Hero logo (orta alan görseli) ---------- */
.hero-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.hero-logo img {
    max-width: 240px;
    width: 60vw;
    height: auto;
    object-fit: contain;
}

/* Arka plan görselindeki özgün başlık tipografisi: ince, beyaz, geniş harf aralıklı */
.hero-title {
    margin: clamp(12px, 5vh, 56px) 0 0;
    color: #fff;
    font-weight: 300;
    font-size: clamp(1.9rem, 6.5vw, 4.25rem);
    letter-spacing: .09em;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.15;
}

/* Arka plan görselinden ayrılan KENT logosu — cover kırpmasından etkilenmesin diye
   ayrı katman; her ekran boyutunda sağ üstte kalır */
body::after {
    content: '';
    position: fixed;
    top: clamp(10px, 4vh, 44px);
    right: 0;
    width: clamp(112px, 17vw, 285px);
    aspect-ratio: 285 / 136;
    background: url('../img/kent-logo.png?v=1') no-repeat right center;
    background-size: contain;
    pointer-events: none;
    z-index: 3;
}

/* Dar ekranda logo ile başlık yan yana sığmaz: başlık logonun altına iner */
@media (max-width: 575.98px) {
    .hero-title {
        margin-top: 92px;
    }
}

/* ---------- 11. .btn-white (Lobi / Çıkış butonları) ---------- */
.btn-white {
    color: #111827;
    background-color: #ffffff;
    border-color: #e5e7eb;
    border-radius: 8px;
    font-weight: 500;
    transition: background-color .15s, box-shadow .15s;
}

.btn-white:hover {
    color: #111827;
    background-color: #f9fafb;
    border-color: #d1d5db;
}

.btn-white:active {
    color: #111827;
    background-color: #f3f4f6;
    border-color: #cbd5e1;
}

.btn-white:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px rgba(59, 130, 246, .5);
}

.btn-white:disabled,
.btn-white[aria-disabled="true"] {
    opacity: .5;
    pointer-events: none;
}

/* ==========================================================================
   RESPONSIVE — Mobile-first (min-width ile yukarı doğru genişler)
   ========================================================================== */

/* --- Tablet ve üstü (≥768px) --- */
@media (min-width: 768px) {
    .ust-logo-container {
        min-height: 80px;
        padding: 16px 24px;
    }

    .container-custom {
        padding: 24px !important;
        gap: 20px;
    }

    .form-box {
        max-width: 480px;
        padding: 32px !important;
    }

    .form-box h5 {
        font-size: 1.25rem;
    }

    .hero-logo img {
        max-width: 320px;
        width: 40vw;
    }

    /* Footer: tablet+ sabit alt bant */
    footer {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 100;
    }

    /* Footer sabit olduğunda body alt boşluk */
    body {
        padding-bottom: 60px;
    }

    .footer-warning-badge {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .footer-warning-text {
        font-size: 12px;
    }

    .footer-warning-inner {
        gap: 12px;
        padding: 10px 16px;
    }

    /* Event page: video ve chat yan yana */
    .video-container {
        height: 400px;
    }

    .chat-container {
        height: 400px;
    }

    .lang-switcher img {
        height: 40px;
    }

    .event-topbar .btn {
        font-size: 14px;
        padding: 8px 18px;
    }
}

/* --- Desktop (≥992px) --- */
@media (min-width: 992px) {
    .ust-logo-container {
        min-height: 100px;
    }

    .form-box {
        max-width: 500px;
    }

    .hero-logo img {
        max-width: 380px;
    }

    .lang-switcher img {
        height: 50px;
    }
}

/* ==========================================================================
   MOBILE (server-side) — body.is-mobile ile ek mobil ayarlar
   ========================================================================== */
body.is-mobile .container-custom {
    min-height: auto !important;
    padding: 12px 8px !important;
    gap: 8px;
}

body.is-mobile .media-container {
    flex-direction: column;
}

body.is-mobile .video-container,
body.is-mobile .chat-container {
    width: 100%;
    height: auto;
}

body.is-mobile .event-topbar {
    position: relative;
    top: auto;
    right: auto;
    justify-content: flex-end;
    padding: 8px 12px;
}

body.is-mobile .event-topbar .btn {
    font-size: 12px;
    padding: 5px 10px;
}

body.is-mobile .main-header {
    font-size: 18px;
}

body.is-mobile .hero-logo {
    padding: 8px 0;
}

body.is-mobile .hero-logo img {
    max-width: 200px;
    width: 55vw;
}
