@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&display=swap');

/* ========================
   1. GENEL AYARLAR (RESET)
   ======================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

body {
    background-color: #f0f2f5; /* Arka plan rengini biraz daha belirgin yaptık */
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

a { text-decoration: none; }

/* ========================
   2. HEADER VE LOGO (GÜNCELLENDİ)
   ======================== */
.site-header {
    background: #fff;
    box-shadow: 0 10px 24px rgba(11,44,77,0.08);
    position: relative; /* Dil alanı için referans */
}

.top-bar {
    padding: 40px 0; /* Boşluk arttırıldı */
    display: flex;
    justify-content: center; /* Logoyu tam ortala */
    align-items: center;
    position: relative;
}

/* Marka Alanı */
.brand-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    gap: 15px;
    z-index: 1; /* Üstte kalması için */
}

/* LOGO VE BAŞLIK BÜYÜTÜLDÜ */
.site-logo-img {
    max-height: 130px; /* Logo boyutu arttı */
    width: auto;
}

.site-logo-icon {
    font-size: 5rem !important; /* İkon boyutu arttı */
    color: var(--primary-color);
}

.site-title-text {
    margin: 0;
    color: var(--primary-color);
    font-size: 2.8rem; /* Başlık boyutu ciddi oranda arttı */
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    line-height: 1.2;
}

/* DİL ALANI (UZAKLAŞTIRILDI) */
.lang-area-right {
    position: absolute;
    right: 0;
    top: 20px; /* En tepeye yakın */
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: bold;
    font-size: 0.95rem;
    background: #f8f9fa; /* Hafif bir zemin */
    padding: 8px 15px;
    border-radius: 20px;
}

.lang-area-right a { color: #888; transition: color 0.3s; }
.lang-area-right a.active-lang { color: var(--secondary-color); }
.lang-area-right .separator { color: #ccc; }

/* ========================
   3. MENÜ (NAVIGASYON)
   ======================== */
.main-nav { background-color: var(--primary-color); }
.main-nav ul { list-style: none; display: flex; padding: 0; margin: 0; }
.main-nav ul li { position: relative; }
.main-nav ul li a {
    display: block; padding: 18px 25px; color: white;
    font-weight: 500; font-size: 1.15rem; transition: background 0.3s;
}
.main-nav ul li a:hover { background: rgba(255,255,255,0.1); }

/* Alt Menü */
.main-nav ul li ul {
    display: none; position: absolute; top: 100%; left: 0;
    background-color: #fff; min-width: 240px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2); padding: 10px 0;
    flex-direction: column; border-top: 4px solid var(--secondary-color);
    z-index: 1000; border-radius: 0 0 5px 5px;
}
.main-nav ul li:hover > ul { display: flex; }
.main-nav ul li ul li a {
    color: #333; padding: 12px 20px; font-size: 1rem; border-bottom: 1px solid #eee;
}
.main-nav ul li ul li a:hover { background-color: #f9f9f9; color: var(--secondary-color); padding-left: 25px; }

/* ========================
   4. LAYOUT & ORTA ALAN (EKSİK OLAN KISIM EKLENDİ)
   ======================== */
.main-layout {
    display: grid;
    /* Sol (Duyuru), Orta (İçerik), Sağ (Takvim) */
    grid-template-columns: 260px 1fr 260px; 
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
    align-items: start; /* Sütunlar yukarı hizalı olsun */
}

/* Orta İçerik Kartı (BEYAZ KUTU GERİ GELDİ) */
.content-center {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08); /* Hafif gölge */
    min-height: 400px;
}

.content-center h2 {
    color: var(--primary-color);
    border-bottom: 3px solid var(--secondary-color);
    display: inline-block;
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 2rem;
}

.welcome-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 30px;
}

/* Yan Menü Başlıkları */
.section-title {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 15px;
    border-bottom: 2px solid #ddd;
    padding-bottom: 10px;
    font-weight: 700;
}

/* Duyuru Listesi Stili */
.announcement-list { list-style: none; }
.announcement-list li { 
    background: #fff; padding: 15px; margin-bottom: 15px; 
    border-radius: 5px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); 
}
.announcement-list a { text-decoration: none; display: flex; gap: 10px; }

/* Takvim ve Etkinlik Stilleri */
.event-list { list-style: none; margin-top: 20px; }
.event-list li {
    background: #fff; padding: 15px; margin-bottom: 10px;
    border-left: 4px solid var(--secondary-color); border-radius: 3px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.event-title { display: block; font-weight: bold; color: #333; margin-bottom: 5px; }
.event-date { font-size: 0.85rem; color: #777; }

/* ========================
   5. ARAMA KUTUSU
   ======================== */
.search-item { margin-left: auto; position: relative; }
.search-box {
    position: absolute; top: 100%; right: 0;
    background: #fff; padding: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    border-radius: 0 0 5px 5px; width: 280px;
    display: none; z-index: 999;
}
.search-box.active { display: block; }
.search-box form { display: flex; border: 1px solid #ddd; border-radius: 4px; }
.search-box input { border: none; padding: 12px; width: 100%; outline: none; }
.search-box button { background: var(--primary-color); color: white; border: none; padding: 0 20px; cursor: pointer; }
.search-box button:hover { background: var(--secondary-color); }

/* ========================
   6. CKEDITOR RESİM DÜZENİ
   ======================== */
figure.image { display: table; clear: both; text-align: center; margin: 1em auto; }
figure.image img { display: block; margin: 0 auto; max-width: 100%; min-width: 50px; }
.image-style-align-left { float: left; margin-right: 20px; margin-bottom: 20px; }
.image-style-align-right { float: right; margin-left: 20px; margin-bottom: 20px; }
.image-style-side { float: right; max-width: 50%; margin-left: 20px; }
figure.image figcaption { display: table-caption; caption-side: bottom; color: #666; background: #f7f7f7; padding: 5px; font-size: 0.85em; text-align: center; }

/* ========================
   7. FOOTER
   ======================== */
footer {
    background-color: var(--primary-color); color: #ffffff;
    padding: 60px 0 30px; margin-top: auto; border-top: 5px solid var(--secondary-color);
}
.footer-content { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px; }
.footer-col { flex: 1; min-width: 250px; }
.footer-col h4 { color: #fff; font-size: 1.3rem; margin-bottom: 25px; position: relative; padding-bottom: 10px; }
.footer-col h4::after { content: ''; position: absolute; left: 0; bottom: 0; width: 50px; height: 3px; background-color: var(--secondary-color); }
.contact-info p { margin-bottom: 15px; display: flex; align-items: center; gap: 10px; color: #ddd; }
.contact-info i { color: var(--secondary-color); }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 8px; }
.footer-links a { color: #ddd; display: flex; align-items: center; gap: 8px; transition: 0.3s; }
.footer-links a:hover { color: #fff; padding-left: 5px; }
.social-icons { margin-top: 20px; display: flex; gap: 15px; }
.social-icons a {
    color: white; background: rgba(255,255,255,0.1); width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: 0.3s;
}
.social-icons a:hover { background: var(--secondary-color); }

/* ========================
   8. MOBİL UYUM (RESPONSIVE)
   ======================== */
@media (max-width: 992px) {
    /* Tablet ve Mobilde Tek Sütun */
    .main-layout { grid-template-columns: 1fr; }
    .sidebar-left, .sidebar-right { order: 2; } /* Yan menüleri alta at */
    .content-center { order: 1; } /* İçeriği en üste al */
}

@media (max-width: 768px) {
    .top-bar { padding: 20px 0; }
    .site-title-text { font-size: 1.8rem; }
    .site-logo-img { max-height: 80px; }
    .lang-area-right { position: static; margin-top: 15px; background: none; }
    .main-nav ul { flex-direction: column; }
    .main-nav ul li a { text-align: center; }
    .footer-content { flex-direction: column; }
}
/* ========================
   9. LIGHTBOX (TAM EKRAN GALERİ)
   ======================== */
.lightbox {
    display: none; /* Varsayılan olarak gizli */
    position: fixed;
    z-index: 9999; /* En üst katmanda olsun */
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden; /* Taşmayı engelle */
    background-color: rgba(0, 0, 0, 0.95); /* Çok koyu siyah arka plan */
}

.lightbox-content {
    margin: auto;
    display: block;
    width: auto;
    max-width: 90%;
    max-height: 85vh; /* Ekranın %85'i kadar yükseklik */
    object-fit: contain; /* Resmi bozmadan sığdır */
    animation-name: zoom;
    animation-duration: 0.3s;
    box-shadow: 0 0 20px rgba(255,255,255,0.1);
}

/* Açılış Animasyonu */
@keyframes zoom {
    from {transform:scale(0.8); opacity: 0;}
    to {transform:scale(1); opacity: 1;}
}

/* Kapatma Butonu (X) */
.close-lb {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #f1f1f1;
    font-size: 50px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 10000;
}

.close-lb:hover,
.close-lb:focus {
    color: var(--secondary-color); /* Kırmızı hover */
    text-decoration: none;
}

/* İleri/Geri Butonları (Lightbox İçin) */
.lb-prev, .lb-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 20px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 30px;
    transition: 0.3s ease;
    user-select: none;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%; /* Yuvarlak buton */
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lb-next {
    right: 30px;
}

.lb-prev {
    left: 30px;
}

.lb-prev:hover, .lb-next:hover {
    background-color: rgba(255, 255, 255, 0.3);
    color: var(--secondary-color);
}

/* Resim Sayısı Bilgisi (Sol Üst) */
.lb-number {
    color: #ccc;
    font-size: 14px;
    padding: 8px 12px;
    position: absolute;
    top: 20px;
    left: 20px;
    font-family: sans-serif;
}

/* Mobil Uyumluluk */
@media only screen and (max-width: 768px){
    .lightbox-content {
        width: 100%;
        max-height: 70vh;
    }
    .lb-prev, .lb-next {
        padding: 10px;
        font-size: 20px;
        width: 40px;
        height: 40px;
        margin-top: -20px;
    }
    .lb-next { right: 10px; }
    .lb-prev { left: 10px; }
    .close-lb {
        top: 10px;
        right: 20px;
        font-size: 35px;
    }
}
/* ========================
   IFD THEME OVERRIDES
   (structure untouched; visual-only overrides)
   ======================== */
:root{
  --primary-color: #0B2C4D;
  --secondary-color: #1FA84F;
  --paper-bg: #F5F1E8;
  --ink: #1f2328;
  --muted: rgba(31,35,40,0.72);
  --card: rgba(255,255,255,0.86);
  --line: rgba(11,44,77,0.14);
}

body{
  background: var(--paper-bg) !important;
  color: var(--ink);
}

/* Paper feel */
.site-header{
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* Accent: switch red -> green */
.lang-area-right a.active-lang,
.desktop-lang a.active-lang{
  color: var(--secondary-color) !important;
}

/* Navigation refinement */
.main-nav,
.main-nav-bar{
  background: var(--primary-color) !important;
}
.main-nav ul li ul,
.dropdown-menu{
  border-top-color: var(--secondary-color) !important;
}

/* Cards and blocks */
.sidebar-left,
.sidebar-right,
.articles-card,
.feature-card,
.block{
  background: var(--card) !important;
  border: 1px solid var(--line) !important;
  box-shadow: 0 14px 34px rgba(11,44,77,0.10) !important;
}

.section-title{
  border-bottom-color: var(--secondary-color) !important;
}

/* Links */
a{ color: inherit; }
a:hover{ color: var(--secondary-color); }

/* Buttons */
.btn,
button,
input[type="submit"],
.hero .cta,
.doc-btn{
  background: var(--secondary-color) !important;
  color: #fff !important;
  border-color: rgba(0,0,0,0.08) !important;
}

/* Make secondary actions more paper-like */
.feature-card a,
.block-title .more,
.all-events a{
  color: var(--secondary-color) !important;
}

/* Typography tweaks */
h1,h2,h3,h4{ letter-spacing: .2px; }

/* Index hero illustration fallback */
.hero-illustration{
  background-image: url('assets/img/ifd/hero_old_istanbul_stamps.png');
  background-size: cover;
  background-position: center;
}

/* ========================
   IFD KURUMSAL TEMA OVERRIDE
   (Yapısal koda dokunmadan: sadece stil)
   ======================== */
:root{
  --primary-color: #0B2C4D;
  --secondary-color: #1FA84F;
  --paper-bg: #F5F1E8;
  --ink: #1f1f1f;
  --muted: rgba(20,20,20,0.70);
  --card-bg: rgba(255,255,255,0.86);
  --card-border: rgba(0,0,0,0.08);
}

body{
  background: var(--paper-bg) !important;
  color: var(--ink);
}

/* Genel tipografi */
h1,h2,h3,h4,.site-title-branding{ font-family: Merriweather, Georgia, 'Times New Roman', serif; }

/* Header + nav kurumsal */
.main-nav-bar,
.main-nav{ background: var(--primary-color) !important; }

.main-nav-bar{ border-bottom-color: var(--secondary-color) !important; }

.nav-list > li > a,
.main-nav ul li a{ letter-spacing: .15px; }

.desktop-lang a.active-lang,
.lang-area-right a.active-lang{ color: var(--secondary-color) !important; }

.dropdown-menu{ border-top-color: var(--secondary-color) !important; }

/* Kart/Block dili: daha az “parlak”, daha kurumsal */
.feature-card,
.block,
.sidebar-left,
.sidebar-right,
.articles-card{
  background: var(--card-bg) !important;
  border-color: var(--card-border) !important;
  box-shadow: 0 12px 26px rgba(0,0,0,0.08) !important;
}

.section-title{ border-bottom-color: var(--primary-color) !important; }

/* Link/hover vurguları */
a{ color: var(--primary-color); }
a:hover{ color: var(--secondary-color); }

/* Buton/CTA */
.hero .cta,
button,
.btn,
.doc-btn{
  background: var(--secondary-color) !important;
  color:#fff !important;
  border-color: rgba(0,0,0,0.10) !important;
}

/* Doküman/duyuru/haber listelerinde yumuşak doku */
.announce-list a,
.news-list a,
.article-list a,
.announcement-list a{
  background: rgba(0,0,0,0.018) !important;
  border-color: rgba(0,0,0,0.06) !important;
}

.announce-dot,
.doc-btn i,
.event-date{ color: var(--secondary-color) !important; }

/* Sayfa zeminine pul/kağıt hissi (ayarlar bg kapalı olsa bile) */
body::after{
  background: rgba(245,241,232,0.92) !important;
}

/* Hero görseli gelmezse (ayar yoksa) arka plan uygula */
.hero-illustration{
  background-image: url('../img/ifd/hero_stamps.png') !important;
  background-size: cover !important;
  background-position: center !important;
  border-style: solid !important;
  border-color: rgba(11,44,77,0.18) !important;
}
