/* =========================================================
   Tarih Portalı: Fatih Sultan Mehmet
   Tasarım: Ali Açıkgöz
   ========================================================= */

/* SIFIRLAMA (RESET) */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #1a0f0f; 
    background-image: linear-gradient(rgba(26, 15, 15, 0.75), rgba(26, 15, 15, 0.85)), url('../img/ayasofya-arka-plan.png');
    background-size: cover;
    background-attachment: fixed;
    background-position: center center;
    font-family: 'Times New Roman', Times, serif;
    color: #2c1a1a;
    line-height: 1.6;
    font-size: 15px;
}

a {
    color: #8b0000;
    text-decoration: none;
}

a:hover {
    color: #cc0000;
    text-decoration: underline;
}

.temizleyici {
    clear: both;
}

/* ANA KAPSAYICI */
#sayfa-kapsayici {
    width: 980px;
    margin: 40px auto; /* Üstten biraz daha boşluk */
    background-color: #fdfbf7; /* Çok hafif kırık beyaz/parşömen */
    border: 1px solid #c5a059;
    box-shadow: 0px 15px 45px rgba(0,0,0,0.6); /* Arka plan koyulaştığı için daha güçlü bir gölge */
    border-radius: 4px;
    overflow: hidden;
}

/* ÜST BİLGİ BANDI */
#ust-bilgi {
    background-color: #3b2a2a;
    color: #d4c4a8;
    height: 30px;
    padding: 0 15px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #8b0000;
}

/* BAŞLIK ALANI */
#baslik-alani {
    background-color: #8b0000; /* Osmanlı Kırmızısı */
    color: #f4efe6;
    padding: 40px 20px;
    text-align: center;
    border-bottom: 5px solid #c5a059; /* Altın sarısı şerit */
    position: relative;
}

/* Hafif bir arka plan deseni hissi için css gradient */
#baslik-alani::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(0,0,0,0.3) 100%);
    pointer-events: none;
}

.baslik-icerik {
    position: relative;
    z-index: 1;
}

#baslik-alani h1 {
    font-size: 38px;
    font-weight: normal;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    margin-bottom: 10px;
}

#baslik-alani h2 {
    font-size: 16px;
    font-style: italic;
    color: #e8d09f;
    font-weight: normal;
}

/* MENÜ ALANI */
#menu-alani {
    background-color: #f4efe6;
    border-bottom: 1px solid #dcd3b6;
}

.ana-menu {
    display: flex;
    justify-content: center;
    list-style-type: none;
    font-family: 'Trebuchet MS', Arial, sans-serif;
    margin: 0;
    padding: 0;
}

.ana-menu li {
    position: relative;
    border-right: 1px solid #dcd3b6;
}

.ana-menu li:last-child {
    border-right: none;
}

.ana-menu li a {
    display: block;
    padding: 12px 22px;
    color: #4a3333;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
}

.ana-menu li:hover {
    background-color: #c5a059;
}

.ana-menu li:hover > a {
    color: #ffffff;
}

.ana-menu li a.secili {
    background-color: #c5a059;
    color: #ffffff;
}

/* GÖVDE ALANI (Sütunlar) */
#govde {
    display: flex; /* Modern flexbox kullanımı, klasik float yerine hatasız çözüm */
    padding: 20px;
    gap: 20px;
}

/* SOL SÜTUN */
#sol-sutun {
    width: 260px;
    flex-shrink: 0;
}

.kutu {
    background-color: #faf8f2;
    border: 1px solid #e0d8c3;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 3px;
}

.kutu h3 {
    font-size: 16px;
    color: #8b0000;
    border-bottom: 2px double #c5a059;
    padding-bottom: 5px;
    margin-bottom: 10px;
}

.liste {
    list-style-type: none;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
}

.liste li {
    padding: 6px 0;
    border-bottom: 1px dashed #dcd3b6;
}

.liste li:last-child {
    border-bottom: none;
}

/* E-Bülten Formu */
.e-bulten p {
    font-family: Arial, sans-serif;
    font-size: 12px;
    margin-bottom: 10px;
    color: #555;
}

.form-input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    margin-bottom: 8px;
    font-family: Arial, sans-serif;
    border-radius: 2px;
}

.form-input:focus {
    border-color: #c5a059;
    outline: none;
}

.form-buton {
    width: 100%;
    padding: 8px;
    background-color: #8b0000;
    color: white;
    border: none;
    cursor: pointer;
    font-weight: bold;
    border-radius: 2px;
    transition: background 0.2s;
}

.form-buton:hover {
    background-color: #a40000;
}

/* ANA İÇERİK */
#ana-icerik {
    flex-grow: 1;
    background-color: #ffffff;
}

.makale {
    padding-bottom: 20px;
}

.makale-baslik {
    font-size: 24px;
    color: #2c1a1a;
    margin-bottom: 5px;
}

.yazar-bilgi {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
    color: #777;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.giris-metni {
    font-size: 16px;
    font-weight: bold;
    color: #4a3333;
    margin-bottom: 15px;
}

.makale p {
    margin-bottom: 15px;
    text-align: justify; /* Klasik kitap görünümü */
}

.makale h3 {
    font-size: 18px;
    color: #8b0000;
    margin-top: 25px;
    margin-bottom: 10px;
}

.ozlu-soz {
    background-color: #fdfbf7;
    border-left: 5px solid #c5a059;
    padding: 15px 20px;
    margin: 20px 0;
    font-style: italic;
    font-size: 17px;
    color: #5a4b4b;
    font-family: Georgia, serif;
}

/* Galeri Yer Tutucuları */
.resim-galerisi h3 {
    font-size: 18px;
    color: #2c1a1a;
    border-bottom: 1px solid #ccc;
    padding-bottom: 5px;
    margin-bottom: 15px;
}

.galeri-kutulari {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.galeri-kutu {
    flex: 1;
}

.resim-yer-tutucu {
    background-color: #eee;
    border: 1px solid #ccc;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-family: Arial, sans-serif;
    font-size: 12px;
    text-align: center;
    padding: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.resim-yer-tutucu:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    background-color: #e5e5e5;
}

/* ALT BİLGİ (FOOTER) */
#alt-bilgi {
    background-color: #2c1a1a;
    color: #d4c4a8;
    text-align: center;
    padding: 25px 20px;
    border-top: 5px solid #c5a059;
}

.alt-bilgi-icerik p {
    margin-bottom: 8px;
}

.copyright {
    font-family: Arial, sans-serif;
    font-size: 12px;
    color: #999;
    margin-top: 15px;
}


/* --- YENİ EKLENEN KURALLAR --- */

/* Dropdown (Açılır Menü) */
.ana-menu .dropdown {
    position: relative;
    display: inline-block;
}

.ana-menu .dropdown-icerik {
    display: none;
    position: absolute;
    background-color: #fdfbf7;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border: 1px solid #c5a059;
    padding: 0;
    margin: 0;
    list-style: none;
    text-align: left;
}

.ana-menu .dropdown-icerik li {
    display: block;
}

.ana-menu .dropdown-icerik li a {
    color: #4a3333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    border-bottom: 1px solid #eee;
    border-right: none;
}

.ana-menu .dropdown-icerik li a:hover {
    background-color: #c5a059;
    color: white;
}

.ana-menu li:hover .dropdown-icerik {
    display: block;
}

/* Saat ve Hava Durumu */
#saat-tarih {
    float: right;
    font-weight: bold;
}
#hava-durumu {
    float: left;
}

/* Haber Bandı */
#haber-bandi {
    background-color: #4a3333;
    color: #fff;
    padding: 5px;
    font-family: Arial, sans-serif;
    font-size: 13px;
    border-bottom: 2px solid #c5a059;
}

/* Popup Reklam */
.popup {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
}

.popup-icerik {
    background-color: #fdfbf7;
    padding: 25px;
    border: 5px solid #8b0000;
    width: 400px;
    max-width: 90%;
    height: auto;
    max-height: 85vh;
    overflow-y: auto;
    text-align: center;
    position: relative;
    box-sizing: border-box;
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
}

.popup-icerik .kapat-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #8b0000;
    font-weight: bold;
    cursor: pointer;
}

/* Slider */
#slider {
    width: 100%;
    height: 250px;
    position: relative;
    overflow: hidden;
    border: 2px solid #c5a059;
    margin-bottom: 15px;
}

#slider .slide {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

#slider .slide.aktif {
    opacity: 1;
}

/* İleri Geri Butonları */
.nav-butonlar {
    margin-top: 30px;
    text-align: center;
    border-top: 1px solid #ccc;
    padding-top: 15px;
}

.nav-butonlar .btn {
    display: inline-block;
    padding: 8px 15px;
    background-color: #4a3333;
    color: white;
    text-decoration: none;
    margin: 0 5px;
    border-radius: 3px;
}

.nav-butonlar .btn:hover {
    background-color: #8b0000;
}

.nav-butonlar .btn-ana {
    background-color: #c5a059;
    color: #fff;
}

/* Galeri Grid */
.galeri-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.galeri-grid .galeri-item {
    width: calc(20% - 10px); /* 5 columns */
    border: 1px solid #c5a059;
    background: #fff;
    padding: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.galeri-grid .galeri-item:hover {
    transform: scale(1.05);
}

.galeri-grid .galeri-item img {
    width: 100%;
    height: 110px;
    object-fit: cover;
    display: block;
}

.galeri-grid .galeri-item span {
    display: block;
    text-align: center;
    font-size: 10px;
    color: #4a3333;
    margin-top: 5px;
    font-weight: bold;
    height: 2.8em;
    overflow: hidden;
    line-height: 1.4;
}

/* Takvim */
.takvim-tablo {
    width: 100%;
    text-align: center;
    border-collapse: collapse;
    font-family: Arial, sans-serif;
    font-size: 12px;
}
.takvim-tablo th {
    background-color: #8b0000;
    color: white;
}
.takvim-tablo td, .takvim-tablo th {
    border: 1px solid #ccc;
    padding: 4px;
}
.takvim-tablo td.bugun {
    background-color: #c5a059;
    color: white;
    font-weight: bold;
}

/* Yukarı Butonu & Sayaç */
#yukari-btn {
    display: inline-block;
    margin-top: 10px;
    color: #c5a059;
    text-decoration: underline;
}
#sayac {
    font-family: Arial, sans-serif;
    font-size: 14px;
    color: #fff;
    margin-bottom: 5px;
}

/* Video Kutu */
.video-kutu {
    text-align: center;
    margin: 20px 0;
}
