/*
 * ORTAK UST (header) VE ALT (footer) ALAN STILI
 *
 * ortak-header.php ve ortak-footer.php tarafindan uretilen HTML'i biçimlendirir.
 * site-icerik.php kendi <style> blogunda ayni siniflari zaten tanimladigi icin
 * bu dosyayi YUKLEMEZ - sadece diger sayfalar (hakkimizda, iletisim,
 * gizlilik-politikasi, giris-yap, kayit, hesabim, uye) kullanir.
 *
 * Varsayilan (base) renkler AÇIK zemin icindir - site-icerik.php'deki orijinal
 * tasarimla ayni. Koyu zeminli sayfalarda <body> etiketine "has-fixed-bg"
 * sinifi eklenir (hesabim.php bunu zaten kendi arkaplan ayarina gore otomatik
 * yapiyor; sabit koyu zeminli diger sayfalarda bu sinif elle eklendi).
 */

/* Üst çubuk her sayfada BİREBİR aynı görünsün diye yazı tipi ve logo kutusu
   sayfanın kendi gövde stilinden bağımsız olarak sabitlenir. */
.site-header { display: flex; align-items: center; padding: 8px 0; flex-wrap: wrap; gap: 20px; font-family: Arial, sans-serif; }
.site-header .logo { display: flex; align-items: center; line-height: 0; }
.site-header .logo img { margin: 0; border-radius: 0; max-width: none; }
.site-header .logo { font-size: 20px; font-weight: 800; color: #2a1418; text-decoration: none; }
.site-header .logo span { color: #9b1c31; }
body.has-fixed-bg .site-header .logo { color: #f2f2f2; }
body.has-fixed-bg .site-footer { border-color: rgba(255,255,255,0.15); }

.header-divider { width: 1px; align-self: stretch; background: rgba(28,28,28,0.15); flex: 0 0 auto; }
body.has-fixed-bg .header-divider { background: rgba(255,255,255,0.18); }
.auth-links-inline { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.auth-links-inline a { color: #2a1418; font-size: 11.5px; font-weight: 700; text-decoration: none; }
.auth-links-inline a:hover { color: #9b1c31; }
.auth-links-inline .auth-links-sep { color: rgba(28,28,28,0.3); font-size: 11px; }
body.has-fixed-bg .auth-links-inline a { color: #fff; }
body.has-fixed-bg .auth-links-inline .auth-links-sep { color: rgba(255,255,255,0.35); }

.datetime-clock { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; flex: 0 0 auto; }
.datetime-clock .dt-time { font-size: 15px; font-weight: 700; color: #2a1418; }
.datetime-clock .dt-date { font-size: 10px; font-weight: 400; color: #767676; }
body.has-fixed-bg .datetime-clock .dt-time { color: #fff; }
body.has-fixed-bg .datetime-clock .dt-date { color: #999; }

/* Üst banner'daki kompakt "Davet Et" kutusu - siyah şerit içine sığar, genişletmez. */
.header-davet { display: flex; align-items: center; gap: 6px; flex: 0 1 auto; min-width: 0; }
.header-davet-etiket { font-size: 11px; color: #ccc; white-space: nowrap; }
.header-davet-input { width: 150px; min-width: 70px; padding: 6px 10px; border-radius: 14px; border: 1px solid rgba(255,255,255,0.18); background: rgba(255,255,255,0.06); color: #fff; font-size: 11px; }
.header-davet-input::placeholder { color: #888; }
.header-davet-btn { padding: 6px 12px; border-radius: 14px; border: none; background: #9b1c31; color: #fff; font-weight: 700; font-size: 11px; cursor: pointer; white-space: nowrap; flex: 0 0 auto; }
.header-davet-btn:hover { background: #85182a; }
@media (max-width: 1150px) {
    .header-davet-etiket { display: none; }
    .header-davet-input { width: 110px; }
}
@media (max-width: 900px) {
    .header-davet { display: none; }
}

.brand-mark { display: inline-flex; align-items: center; gap: 9px; line-height: normal; }
.brand-mark-icon { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 5px; flex: 0 0 auto; background: #9b1c31; color: #fff; font-size: 14px; }
.brand-mark-text { font-size: 18px; font-weight: 800; letter-spacing: -0.01em; color: #2a1418; }
.brand-mark-text em { color: #9b1c31; font-style: normal; }
body.has-fixed-bg .brand-mark-text { color: #f2f2f2; }

.type-search-wrap { position: relative; flex: 1 1 480px; max-width: 640px; }
form.search {
    display: flex; align-items: stretch; height: 34px;
    background: #fff; border: none; border-radius: 17px;
}
.type-dropdown { position: relative; flex: 0 0 auto; }
.type-dropdown-btn {
    height: 100%; padding: 0 14px; display: flex; align-items: center; gap: 5px;
    background: #2a1418; color: #fff; border: none; border-radius: 17px 0 0 17px;
    font-family: Arial, sans-serif; font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.type-dropdown-btn:hover { background: #3f2c2f; }
.type-dropdown-btn .chevron { font-size: 8px; color: #999; }
.type-dropdown-menu {
    display: none; position: absolute; top: 38px; left: 0; min-width: 160px;
    background: #fff; border: 1px solid #d0d0d0; border-radius: 8px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.22); overflow: hidden; z-index: 99001;
}
.type-dropdown-menu.open { display: block; }
.type-dropdown-menu button {
    display: block; width: 100%; text-align: left; padding: 9px 14px; background: none;
    border: none; color: #2a1418; font-size: 13px; font-weight: 500; cursor: pointer;
}
.type-dropdown-menu button:hover { background: #f2f2f2; }
.type-dropdown-menu button.tur-aktif { color: #9b1c31; font-weight: 700; }

form.search input[type=text] {
    flex: 1 1 auto; min-width: 0; height: 100%; padding: 0 12px; font-family: Arial, sans-serif; font-size: 12px;
    border: none; background: #fff; color: #2a1418; box-sizing: border-box;
}
form.search input[type=text]:read-only { background: #fff; color: #999; cursor: pointer; }
form.search input[type=text]::placeholder { color: #8a8d93; }
.search-submit-btn {
    flex: 0 0 auto; width: 36px; height: 100%; display: flex; align-items: center; justify-content: center;
    background: #fff; color: #2a1418; border: none; border-radius: 0 17px 17px 0; cursor: pointer;
}
.search-submit-btn:hover { background: #f2f2f2; }

.suggest-box { display: none; position: absolute; top: 42px; left: 0; width: 100%; max-width: 420px; background: #fff; border: 1px solid #dcdcdc; border-top: none; z-index: 99000; max-height: 260px; overflow-y: auto; border-radius: 0 0 4px 4px; box-shadow: 0 12px 24px rgba(0,0,0,0.12); }
.suggest-item { display: block; width: 100%; text-align: left; background: none; border: none; font-family: inherit; padding: 9px 14px; font-size: 13px; color: #2a1418; cursor: pointer; }
.suggest-item:hover, .suggest-item.active { background: #f4f4f4; }
body.has-fixed-bg .suggest-box { background: #2a1418; border-color: #444; }
body.has-fixed-bg .suggest-item { color: #f2f2f2; }
body.has-fixed-bg .suggest-item:hover, body.has-fixed-bg .suggest-item.active { background: #2e2e2e; }

.extra-filter { height: 34px; padding: 0 10px; font-size: 12px; font-family: inherit; border: 1px solid #dcdcdc; background: #f6f6f6; color: #2a1418; margin-left: 8px; box-sizing: border-box; }
.extra-filter.year-filter { width: 110px; }
.apply-filter-btn { height: 34px; padding: 0 18px; margin-left: 8px; background: #9b1c31; color: #fff; border: none; border-radius: 10px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; cursor: pointer; }
.apply-filter-btn:hover { background: #85182a; }

.filter-toggle-btn {
    display: flex; align-items: center; gap: 6px; margin-top: 8px; padding: 6px 0;
    background: none; border: none; color: #666; font-size: 12px; font-weight: 700; cursor: pointer;
}
.filter-toggle-btn:hover { color: #9b1c31; }
.filter-toggle-btn .chevron { transition: transform .2s ease; }
.filter-toggle-btn.open .chevron { transform: rotate(180deg); }
body.has-fixed-bg .filter-toggle-btn { color: #aaa; }

.filter-extra-row {
    display: none; position: absolute; top: 100%; left: 0; right: 0; margin-top: 4px;
    background: #2a1418; border: 1px solid rgba(255,255,255,0.12); border-radius: 5px;
    padding: 12px; z-index: 15; flex-wrap: wrap; gap: 8px; align-items: center;
    box-shadow: 0 12px 32px rgba(0,0,0,0.35);
}
.filter-extra-row.open { display: flex; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.mobile-search-toggle { display: none; }

/* Üst banner: logo + arama + saat - tek koyu kutu, sitenin tüm sayfalarında
   (bu dosyayı yükleyenler) birebir aynı. */
.site-topbar { background: #150a0c; border-radius: 8px; padding: 10px 20px; margin: 10px 0 22px; }
.site-topbar .site-header { padding: 0; }
.site-topbar .logo, .site-topbar .brand-mark-text { color: #fff; }
.site-topbar .datetime-clock .dt-time { color: #fff; }
.site-topbar .datetime-clock .dt-date { color: #999; }
.site-topbar .auth-links-inline a { color: #fff; }
.site-topbar .auth-links-inline .auth-links-sep { color: rgba(255,255,255,0.35); }
.site-topbar .header-divider { background: rgba(255,255,255,0.18); }
.site-topbar .mobile-search-toggle { background: rgba(255,255,255,0.1); color: #f2f2f2; }

.site-footer { margin-top: 48px; border-top: 1px solid #e6e6e6; padding-top: 32px; }
.footer-cols { display: flex; gap: 40px; flex-wrap: wrap; margin-bottom: 24px; }
.footer-col { flex: 1; min-width: 160px; }
.footer-col strong { display: block; font-size: 13px; margin-bottom: 10px; color: #2a1418; }
.footer-col p { font-size: 13px; color: #5a5a5a; line-height: 1.5; margin: 0; }
.footer-col a { display: block; font-size: 13px; color: #5a5a5a; text-decoration: none; margin-bottom: 8px; }
.footer-col a:hover { color: #2a1418; }
.footer-bottom { font-size: 12px; color: #767676; border-top: 1px solid #f0f0f0; padding-top: 16px; padding-bottom: 20px; }
body.has-fixed-bg .footer-col strong,
body.has-fixed-bg .footer-col p,
body.has-fixed-bg .footer-col a { color: #f2f2f2; }
body.has-fixed-bg .footer-col a:hover { color: #fff; }
body.has-fixed-bg .footer-bottom { color: #999; border-top-color: rgba(255,255,255,0.08); }

@media (max-width: 768px) {
    /* Üst banner ekrana tam otursun: üstte ve yanlarda boşluk kalmasın (bkz. site-icerik.php'deki aynı düzeltme) */
    .site-topbar {
        padding: 10px 16px;
        margin: 0 0 16px;
        width: 100vw;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
        border-radius: 0;
    }
    .site-header { padding: 12px 0; }
    .site-header .logo { font-size: 17px; }
    .datetime-clock { display: none; }
    .header-divider { display: none; }
    .auth-links-inline a { font-size: 11px; }

    .mobile-search-toggle { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(0,0,0,0.06); border: none; color: #2a1418; font-size: 16px; }
    body.has-fixed-bg .mobile-search-toggle { background: rgba(255,255,255,0.1); color: #f2f2f2; }
    .mobile-search-toggle.open { background: #9b1c31; color: #fff; }

    .type-search-wrap { display: none; width: 100%; max-width: none; margin: 10px 0 0; order: 10; }
    .type-search-wrap.open { display: block; }
    form.search { flex-wrap: nowrap; }
    .type-dropdown-menu { left: 0; right: auto; }

    .filter-extra-row { flex-direction: column; }
    .filter-extra-row .extra-filter { width: 100%; margin-left: 0; height: 40px; }
    .filter-extra-row .apply-filter-btn { width: 100%; margin-left: 0; }

    .footer-cols { flex-direction: column; gap: 22px; }
}
