/* ======================================================
   ONCHAT24 – MASTER LAYOUT (STABLE VERSION)
   ====================================================== */

/* 1. GLOBAL RESET */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding-top: 110px;
    background: #f4f4f4;
    font-family: 'Segoe UI', sans-serif;
    overflow-x: hidden;
}

a {
    text-decoration: none !important;
}

/* 2. MASAÜSTÜ GENİŞLİK KONTEYNERLARI (1200px) */
.hero-static,
.why-us-static,
.main-content-wrapper,
.container,
.profile-container {
    width: 100%;
    max-width: 1200px;
    margin: 20px auto;
}

/* 3. HEADER (MASAÜSTÜ) */
.main-header {
    background-color: #a2cccc;
    height: 100px;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
}

.header-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
}

.logo img {
    height: 70px;
}

.header-banner-container img {
    max-width: 100%;
    max-height: 90px;
    object-fit: contain;
    display: block;
}

/* Masaüstü Auth & Social */
.header-auth-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.auth-text-row {
    display: flex;
    gap: 15px;
}

.auth-link {
    font-weight: bold;
    font-size: 13.5px;
    color: #007bff !important;
    display: flex;
    align-items: center;
    gap: 5px;
}

.auth-link.login-green {
    color: #218838 !important;
}

.auth-social-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.social-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    font-size: 12px;
}

.social-icon.google {
    background-color: #ea4335;
}

.social-icon.facebook {
    background-color: #1877f2;
}

.social-icon.discord {
    background-color: #5865f2;
}

/* --- GİRİŞ YAPMIŞ KULLANICI FIX (DEV AVATAR & ÇIKIŞ ENGELİ) --- */
.logged-in-row {
    display: flex;
    flex-direction: row !important;
    align-items: center;
    gap: 12px;
}

.welcome-name {
    font-weight: bold;
    color: #333;
    font-size: 14px;
}

.header-avatar-img {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    border-radius: 50%;
    border: 2px solid #fff;
    object-fit: cover;
    display: block;
}

.logout-btn-header {
    color: #dc3545 !important;
    font-size: 22px !important;
    display: flex;
    align-items: center;
}

/* 4. MASAÜSTÜ MENÜ BAR */
.main-menu-bar {
    background: #fff;
    border-bottom: 1px solid #dee2e6;
    padding: 5px 0;
    width: 100%;
    margin-bottom: 25px !important; /* Galeri ile arayı açar */
}

.main-menu {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.menu-link-simple {
    color: #555 !important;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
}

.menu-link-simple i {
    color: #007bff;
    font-size: 16px;
}

.menu-link-simple.active {
    color: #007bff !important;
    border-bottom: 2px solid #007bff;
}

/* 5. HERO SİSTEMİ (MASAÜSTÜ) */
.hero-static {
    position: relative;
    height: 650px;
    overflow: hidden;
    border-radius: 20px;
    border: 3px solid #bdced3;
    background: #000;
}

.hero-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    text-align: center;
    width: 85%;
}

.hero-text h1 {
    font-size: 3rem;
    color: #ffd800 !important;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.9);
    font-weight: bold;
}

.hero-text p {
    font-size: 1.4rem;
    color: #fff !important;
    text-shadow: 1px 1px 8px rgba(0,0,0,0.9);
}

/* BAŞLIK ORTALAMA (NEDEN ONCHAT24) */
.section-title {
    text-align: center !important;
    color: #007bff;
    font-weight: bold;
    font-size: 2rem;
    margin-bottom: 30px;
}

.feature-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

/* KART TASARIMI */
.feature-cards .card {
    background: #fff;
    padding: 35px 25px;
    border-radius: 15px;
    border: 1px solid #bdced3;
    border-top: 6px solid #007bff;
    text-align: center;
    transition: 0.3s;
}

.feature-cards .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.feature-cards .card p {
    color: #4a4a4a;
    line-height: 1.6;
    font-size: 14.5px;
}

/* 6. PORTAL YAPISI (SIDEBAR VE BLOK RENKLERİ) */
.main-content-wrapper {
    display: flex;
    gap: 25px;
    align-items: flex-start;
}

.main-left-sidebar-area {
    width: 300px;
    flex-shrink: 0;
}

/* YAN MENÜ BLOKLARI - KOYU */
.main-left-sidebar-area .view-card {
    background-color: #a2cccc !important;
    border-radius: 15px;
    border: 1px solid #8bbcbc;
    border-top: 6px solid #007bff !important;
    padding: 20px;
    margin-bottom: 20px;
}

/* ANA İÇERİK BLOKLARI - FERAH AÇIK */
.main-content-area {
    flex: 1;
    min-width: 0;
}

.main-content-area .view-card {
    background-color: #eef7f7 !important;
    border-radius: 15px;
    border: 1px solid #bdced3;
    border-top: 6px solid #007bff !important;
    padding: 25px;
    margin-bottom: 25px;
}

/* 7. FOOTER (MASAÜSTÜ) */
.main-footer {
    background: linear-gradient(135deg, #a2cccc, #8bbcbc);
    padding: 25px 0;
    border-radius: 0 0 18px 18px;
}

.footer-content-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-links {
    display: flex;
    gap: 25px;
}

.footer-links a {
    color: #34495e;
    font-weight: bold;
    font-size: 14px;
}

/* BURADAN İTİBAREN DİL SEÇİCİ BUTONU VE ÇEREZ BANNERI CSS KODLARI BAŞLIYOR */

/* YENİ: Dil Seçici Butonu Stili */
.language-switcher-dropdown select {
    background-color: #007bff !important; /* Canlı mavi arka plan - !important ekledik */
    color: #fff !important; /* Beyaz yazı rengi - !important ekledik */
    border: 1px solid #007bff !important; /* Mavi çerçeve - !important ekledik */
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    appearance: none; /* Tarayıcının varsayılan stilini kaldır */
    -webkit-appearance: none; /* Safari için */
    -moz-appearance: none; /* Firefox için */
    /* Özel ok ikonu ekleyelim (SVG, beyaz renkli) */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center; /* Oku sağa hizala */
    padding-right: 30px; /* Ok ikonu için sağdan boşluk bırak */
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.2s ease, border-color 0.2s ease; /* Hover için yumuşak geçiş */
}

.language-switcher-dropdown select:hover {
    background-color: #0056b3 !important; /* Hover'da daha koyu mavi - !important ekledik */
    border-color: #0056b3 !important; /* Hover'da daha koyu mavi - !important ekledik */
}


/* ======================================================
   YENİ: ÇEREZ UYARI ÇUBUĞU STİLİ (Mutlaka layout.css içine ekle!)
   ====================================================== */
#cookieBanner {
    position: fixed; /* Ekranın altında sabit kalsın */
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #f8f9fa; /* Açık bir arka plan */
    border-top: 1px solid #dee2e6; /* Üst kenara ince bir çizgi */
    padding: 15px 20px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 10000; /* Diğer her şeyin üzerinde */

    /* Başlangıçta tamamen gizli ve ekran dışı */
    display: none; /* JS tarafından flex yapılacak */
    visibility: hidden;
    opacity: 0;
    transform: translateY(100%); /* Başlangıçta ekranın altından gelsin */
    transition: all 0.5s ease-out; /* Yumuşak bir geçiş için */
}

/* JavaScript bu sınıfı eklediğinde banner görünür hale gelsin */
#cookieBanner.show {
    display: flex; /* GÖRÜNÜR OLDUĞUNDA FLEX YAPISI DEVREYE GİRSİN */
    visibility: visible;
    opacity: 1;
    transform: translateY(0); /* Normal konumuna gelsin */
}

/* Küçük ekranlar için düzenleme */
@media (max-width: 768px) {
    #cookieBanner {
        flex-direction: column; /* Küçük ekranda alt alta hizala */
        text-align: center;
        padding: 10px 15px;
        gap: 10px;
    }
    #cookieBanner button {
        width: 100%; /* Butonlar tam genişlik kaplasın */
    }
    #cookieBanner > div:first-child { /* Metin içeriğini ortala */
        flex-direction: column;
        gap: 8px;
    }
}
/* BURAYA KADAR DİL SEÇİCİ BUTONU VE ÇEREZ BANNERI CSS KODLARI */


/* 8. MOBİL ELEMENTLER */
.mobile-menu-overlay {
    display: none !important;
}

.mobile-menu-btn {
    display: none;
    font-size: 24px;
    color: #007bff;
    cursor: pointer;
}

/* PROFİL KAPAK RESMİ KESİN DÜZELTME */
.profile-cover-area {
    background-color: #000 !important; /* Boş kalan yerler siyah olsun */
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.profile-cover-area img.main-cover-img {
    width: 100% !important;
    height: 100% !important;
    /* KRİTİK: Resmi kırpmaz, kutuya sığdırır */
    object-fit: contain !important;
    border-radius: 12px !important;
}

/* ======================================================
   9. MASTER MOBİL BLOK (768px)
====================================================== */
@media (max-width: 768px) {
    body {
        padding-top: 110px !important;
    }

    .main-header {
        left: 5px !important;
        right: 5px !important;
        top: 5px !important;
        width: auto !important;
        height: 100px !important;
        border-radius: 10px !important;
    }

    .header-banner-container,
    .main-menu-bar,
    .hidden-mobile {
        display: none !important;
    }

    .mobile-menu-btn {
        display: block !important;
        padding-left: 10px;
        border-left: 1px solid #ccc;
    }

    .mobile-menu-overlay {
        display: block !important;
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100%;
        background: #fff;
        z-index: 9999 !important;
        transition: 0.4s ease;
        box-shadow: -5px 0 15px rgba(0,0,0,0.2);
    }

    .mobile-menu-overlay.open {
        right: 0 !important;
    }

    .mobile-menu-header {
        padding: 20px;
        background: #2c3e50;
        color: #fff;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .mobile-menu-links {
        display: flex;
        flex-direction: column;
        padding: 20px;
    }

    .mobile-menu-links a {
        padding: 15px 0;
        color: #333;
        border-bottom: 1px solid #eee;
        font-weight: 600;
        font-size: 15px;
    }

    .hero-static,
    .why-us-static,
    .main-content-wrapper,
    .container,
    .profile-container,
    .main-footer {
        width: calc(100% - 10px) !important;
        margin: 0 5px 10px 5px !important;
        border-radius: 12px !important;
    }

    /* Profil Sandviç */
    .profile-container {
        display: flex !important;
        flex-direction: column !important;
        margin-top: 0 !important;
        gap: 0 !important;
    }

    .profile-main {
        display: contents !important;
    }

    .profile-cover-area {
        order: 1 !important;
        height: auto !important;
        min-height: 180px !important;
        overflow: visible !important;
        border-radius: 10px 10px 0 0 !important;
    }

    .profile-cover-area img {
        object-fit: contain !important;
        max-height: 250px !important;
        width: 100% !important;
        border-radius: 10px !important;
    }

    .profile-sidebar {
        order: 2 !important;
        width: 100% !important;
        padding: 15px !important;
        background: #f8fafb !important;
        border-top: 1px solid #bdced3 !important;
        border-bottom: 1px solid #bdced3 !important;
        margin-top: 50px !important;
    }

    .profile-content-padding {
        order: 3 !important;
        margin-top: 0 !important;
        padding: 15px !important;
    }

    .profile-avatar-wrapper,
    .profile-avatar-wrapper img {
        width: 100px !important;
        height: 100px !important;
    }

    .profile-avatar-wrapper {
        bottom: -50px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        z-index: 100 !important;
    }

    .feature-cards {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    .footer-content-wrapper {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 10px !important;
    }

    .footer-links {
        width: 100% !important;
        justify-content: center;
        order: 1;
        margin-bottom: 5px;
    }

    .social-media {
        width: 100% !important;
        justify-content: center;
        order: 2;
        margin-bottom: 5px;
    }

    .copyright {
        order: 4;
        font-size: 11px;
        margin-left: 10px;
    }
    /* BURADAN İTİBAREN MOBİL DİL SEÇİCİ CSS */
    .language-switcher-dropdown {
        width: 100%; /* Mobil cihazlarda tam genişlik */
        text-align: center;
    }
    .language-switcher-dropdown select {
        width: 100%; /* Mobil cihazlarda buton tam genişlik */
    }
    /* BURAYA KADAR MOBİL DİL SEÇİCİ CSS */
}