/* ==================================== */
/* 1. GENEL AYARLAR VE RENKLER */
/* ==================================== */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4; 
    color: #333;
    line-height: 1.6;
    
    /* KRİTİK DÜZELTME: Tüm sayfalarda kaydırma çubuğunun yerini rezerve et */
    overflow-y: scroll;
}

:root {
    --primary-color: #CFA04E; /* Altın rengi */
    --text-color: #333;
    --background-light: #ffffff;
    --background-dark: #222;
    --border-color: #ddd;
}

/* Tüm Linkler ve Metinler */
a {
    text-decoration: none;
    color: var(--primary-color);
}

/* ==================================== */
/* 2. HEADER VE NAVİGASYON (MASAÜSTÜ) */
/* ==================================== */
header {
    background-color: var(--background-light);
    padding: 10px 5%;
    /* Flexbox düzenini koruyoruz */
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); 
    position: sticky; 
    top: 0;
    z-index: 1000; 
}

.logo img {
    height: 50px;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav ul li a {
    color: var(--text-color);
    padding: 10px 15px;
    display: block;
    transition: color 0.3s, border-bottom 0.3s;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--primary-color); 
    border-bottom: 3px solid var(--primary-color);
}

/* ==================================== */
/* 3. ANA İÇERİK STİLLERİ */
/* ==================================== */
/* Hero Section (Giriş Başlığı) */
.hero-section {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 80px 20px;
    margin-bottom: 20px;
}

.hero-section h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.hero-section p {
    font-size: 1.2em;
}

.cta-button {
    display: inline-block;
    background-color: var(--primary-color); /* Altın rengini ana buton yaptık */
    color: white;
    padding: 12px 25px;
    margin-top: 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
    font-weight: bold;
}

.cta-button:hover {
    background-color: #a37532; /* Altının daha koyu tonu */
    transform: translateY(-1px);
}

/* İçerik Kartları */
.content-section {
    padding: 20px 5%;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.card-container {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    margin-top: 30px;
}

.card {
    background-color: var(--background-light);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    flex: 1;
    text-align: left; 
}

.card h3 {
    color: var(--primary-color);
}

/* Diğer Sayfa İçeriği */
.page-content {
    padding: 30px 5%;
    background-color: var(--background-light);
    min-height: 500px; 
    max-width: 1000px; 
    margin: 0 auto 40px auto;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

.page-content h2 {
    color: var(--primary-color);
    border-bottom: 2px solid #ddd;
    padding-bottom: 10px;
    margin-bottom: 30px;
    text-align: center;
}

/* Footer */
footer {
    background-color: var(--background-dark);
    color: white;
    text-align: center;
    padding: 20px 0;
}

/* ==================================== */
/* YENİ: GÜNÜN AYETİ BİLDİRİM KARTI STİLLERİ (KONUMLAMA KESİN ÇÖZÜM) */
/* ==================================== */

/* KRİTİK DÜZELTME: Kartı HEADER akışından çıkarıp mutlak konumla sağa yasla */
#daily-ayah-notification {
    position: absolute; /* Mutlak Konumlandırma */
    right: 5%; /* Header'ın sağ kenarına yasla (Header padding'i kadar) */
    top: 50%; /* Dikey ortalama */
    transform: translateY(-50%); /* Dikey ortalama (merkezden yukarı kaydır) */
    
    z-index: 1001;
    cursor: pointer;
    font-size: 0.9em;
    max-width: 280px; 
    margin-left: 0; /* Eski auto ayarlarını sıfırla */
    margin-right: 0;
}

/* Önizleme İçeriği */
.ayah-content {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background-color: #fff8e1; 
    border: 1px solid var(--primary-color);
    border-radius: 6px;
    transition: background-color 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.ayah-icon {
    font-size: 1.2em;
    color: var(--primary-color);
}

.ayah-ref {
    font-weight: bold;
    color: #555;
    white-space: nowrap;
}

.ayah-text {
    flex-grow: 1;
    margin: 0;
    color: var(--text-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; 
}

/* Detay Penceresi (Mouse üzerine gelince açılır) */
.ayah-detail {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    width: 320px;
    background-color: var(--background-light); 
    color: var(--text-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 20px;
    margin-top: 10px;
    z-index: 1002;
    text-align: left;
}

/* Mouse Üzerine Gelme Etkisi (Sadece Masaüstü) */
@media (min-width: 769px) {
    #daily-ayah-notification:hover .ayah-detail {
        display: block; /* Mouse üzerine gelince göster */
    }
    
    #daily-ayah-notification:hover .ayah-content {
        background-color: var(--primary-color);
    }
    
    #daily-ayah-notification:hover .ayah-ref,
    #daily-ayah-notification:hover .ayah-icon,
    #daily-ayah-notification:hover .ayah-text {
        color: white;
    }
}


/* ==================================== */
/* 4. MOBİL UYUMLULUK (MEDIA QUERIES) */
/* ==================================== */

/* Masaüstünde gizle */
.menu-toggle {
    display: none; 
    font-size: 24px;
    cursor: pointer;
    color: var(--primary-color);
}

@media (max-width: 768px) {
    /* Mobil görünümde yatay scroll olmasını engelle */
    body, html {
        overflow-x: hidden;
    }
    
    /* Header (Başlık) Düzeni Mobil için Flex'e dön */
    header {
        display: flex;
        justify-content: space-between;
        padding: 10px 20px;
        position: sticky; 
    }

    /* Günün Ayeti Mobil Cihazlarda Gizlenmeli */
    #daily-ayah-notification {
        display: none !important; 
    }

    /* Mobil Menü Butonu Göster */
    .menu-toggle {
        display: block; 
    }

    /* Navigasyon (Menü) gizle ve dikey yap */
    nav {
        display: none; 
        position: absolute;
        top: 70px; 
        left: 0;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.98); 
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        z-index: 999;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out;
    }

    /* Menü açılınca */
    nav.open {
        display: block;
        max-height: 400px; 
    }

    nav ul {
        flex-direction: column;
        width: 100%;
        border-top: 1px solid #eee;
    }

    nav ul li a {
        padding: 15px 20px;
        text-align: left;
        border-bottom: 1px solid #eee;
        font-weight: bold;
    }
    
    nav ul li a:hover,
    nav ul li a.active {
        color: var(--primary-color);
        background-color: #fafafa;
        border-bottom: 1px solid var(--primary-color);
    }
    
    /* Kart Düzeni */
    .card-container {
        flex-direction: column; 
        gap: 15px;
    }
    
    .hero-section {
        padding: 50px 15px; 
    }
    
    .hero-section h1 {
        font-size: 2em; 
    }
}


/* ==================================== */
/* 5. GÖRSEL VE FORM GÖRÜNTÜLEME DÜZENLEMESİ */
/* ==================================== */

/* Haber kartlarındaki görsellerin boyutunu kontrol et */
.card img {
    max-width: 100%;       
    height: auto;          
    max-height: 250px;     
    object-fit: cover;     
    display: block;        
    margin-bottom: 10px;
    border-radius: 5px;
}

/* İLETİŞİM VE GENEL FORM STİLLERİ */
.page-content form label {
    display: block;
    margin-top: 15px;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--text-color);
}

/* KRİTİK DÜZELTME: Form inputlarına genel erişim izni ve z-index */
.page-content form input[type="text"],
.page-content form input[type="email"],
.page-content form textarea,
.page-content form input[type="number"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    box-sizing: border-box;
    transition: border-color 0.3s, box-shadow 0.3s;
    /* Touch ve click sorunlarını çözmek için */
    position: relative;
    z-index: 10; 
}

.page-content form input[type="text"]:focus,
.page-content form input[type="email"]:focus,
.page-content form textarea:focus,
.page-content form input[type="number"]:focus {
    border-color: var(--primary-color); /* Odaklanınca altın çerçeve */
    box-shadow: 0 0 5px rgba(207, 160, 78, 0.5);
    outline: none;
}

.page-content form textarea {
    resize: vertical;
}

/* Formdaki Gönder Butonu Stili */
#contact-form .cta-button {
    width: 100%;
    margin-top: 20px;
}

/* ==================================== */
/* 6. EKSTRA PROFESYONEL KATMAN (HİÇBİR KOD SİLİNMEDİ) */
/* ==================================== */

/* Yeni Nesil Font ve Yumuşak Geçişler */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

body { font-family: 'Inter', 'Segoe UI', sans-serif !important; }

/* Kartlara ve Elemanlara Derinlik Katma */
.card, .page-content, .ayah-content, .ayah-detail {
    border: 1px solid rgba(207, 160, 78, 0.15) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(207, 160, 78, 0.1) !important;
}

/* Hero Section'a Zarif Bir Gradyan */
.hero-section {
    background: linear-gradient(135deg, #CFA04E 0%, #b3863a 100%) !important;
    padding: 100px 20px !important;
}

/* Butonlara Profesyonel Efekt */
.cta-button {
    border-radius: 50px !important; /* Daha modern oval butonlar */
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(207, 160, 78, 0.3) !important;
}

/* Form Elemanlarına Modern Dokunuş */
input, textarea {
    background-color: #fafafa !important;
    border-radius: 8px !important;
}

/* Footer'a Estetik Dokunuş */
footer {
    border-top: 3px solid var(--primary-color);
    padding: 40px 0 !important;
}