/* =====================================================================
   Ana sayfa (index.php) stilleri — önceden sayfa içinde satır içiydi.
   Görünüm korunmuştur; yalnızca hatalar düzeltildi (kapsamı daraltılmış
   reset, ters kategori kırılımları, 100vw taşması, satır içi hover JS'leri).
   ===================================================================== */

/* Header yükseklik değişkeni — tüm slayt hesabı bunun üzerinden */
:root {
    --header-height: 100px;
}
@media (max-width: 991px) { :root { --header-height: 90px; } }
@media (max-width: 768px) { :root { --header-height: 80px; } }
@media (max-width: 576px) { :root { --header-height: 70px; } }

/* Eskiden "* { margin:0; padding:0 }" tüm sayfayı (header/footer dahil) sıfırlıyordu;
   artık yalnızca slayt alanında. html/body height:100% kaldırıldı (body kaydırma
   kabına dönüşüyordu). */
.background-image *,
.background-image *::before,
.background-image *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body { padding-top: 0 !important; background: #002147 !important; }
.site-nav { position: fixed !important; top: 0 !important; left: 0 !important; width: 100% !important; z-index: 1000 !important; background: rgba(255, 255, 255, 0.95) !important; backdrop-filter: blur(10px) !important; }

/* ARKA PLAN / SLAYT ALANI */
.background-image {
    width: 100%; /* 100vw kaydırma çubuğu kadar taşıyordu */
    height: calc(100vh - var(--header-height));
    margin-top: var(--header-height);
    position: relative;
    background-color: #00406c;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

/* TAM EKRAN SLAYT */
.slider-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}
.slider-container:focus-visible {
    outline: 3px solid #ffd54f;
    outline-offset: -3px;
}

.slider-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.6s ease-in-out;
}

.slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #00406c;
    position: relative;
}

.slide-link {
    display: block;
    width: 100%;
    height: 100%;
    cursor: pointer;
}
.slide-link:focus-visible {
    outline: 3px solid #ffd54f;
    outline-offset: -6px;
}

.slide img,
.slide picture,
.slide source {
    width: 100%;
    height: 100%;
}

.slide picture { display: block; }

.slide img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* anasayfadaki görüntü boyutu hissiyatını koru */
    object-position: center;
    display: block;
}

/* Noktalar (artık <button>) */
.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(0,0,0,0.25);
    border: 2px solid rgba(255,255,255,0.8);
    cursor: pointer;
    transition: all 0.3s;
    -webkit-appearance: none;
    appearance: none;
    flex: 0 0 auto;
}
.dot.active { background: rgba(255,255,255,0.95); transform: scale(1.1); }
.dot:focus-visible { outline: 2px solid #ffd54f; outline-offset: 2px; }

/* Oklar ve duraklat/oynat */
.slider-arrow,
.slider-pause {
    position: absolute;
    border-radius: 50%;
    background: rgba(0,0,0,0.35);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    border: 1px solid rgba(255,255,255,0.6);
    backdrop-filter: blur(2px);
    transition: background 0.3s, transform 0.2s, opacity 0.3s;
}
.slider-arrow {
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
}
.slider-arrow:hover,
.slider-pause:hover { background: rgba(0,0,0,0.5); }
.slider-arrow:focus-visible,
.slider-pause:focus-visible { outline: 3px solid #ffd54f; outline-offset: 2px; }
.slider-arrow.prev { left: 16px; }
.slider-arrow.next { right: 16px; }

/* WCAG 2.2.2: otomatik geçiş durdurulabilir */
.slider-pause {
    left: 16px;
    bottom: 12px;
    width: 36px;
    height: 36px;
    font-size: 14px;
}

@media (max-width: 768px) {
    .slider-arrow { width: 38px; height: 38px; }
    .slider-pause { width: 32px; height: 32px; bottom: 10px; left: 10px; }
}

@media (prefers-reduced-motion: reduce) {
    .slider-wrapper { transition: none; }
}

/* MOBİL İÇİN */
@media (max-width: 768px) {
    .background-image {
        align-items: center;
        justify-content: center;
    }
}

/* 1920x1080 için konum düzeltmesi (2.5K düzenini bozmadan) */
@media (min-width: 1800px) and (max-width: 2000px) and (min-height: 1000px) and (max-height: 1120px) {
    .background-image {
        align-items: flex-end;
        padding-bottom: 110px;
    }
}

/* ÖZEL GÜN POP-UP MODAL */
.ozel-gun-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.ozel-gun-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.ozel-gun-popup-container {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.ozel-gun-popup-overlay.active .ozel-gun-popup-container {
    transform: scale(1);
}

.ozel-gun-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    backdrop-filter: blur(5px);
}

.ozel-gun-popup-close:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: rotate(90deg);
}

.ozel-gun-popup-image {
    width: 100%;
    height: auto;
    max-height: 90vh;
    object-fit: contain;
    display: block;
}

.ozel-gun-popup-link { display: block; cursor: pointer; }

@media (max-width: 768px) {
    .ozel-gun-popup-container {
        max-width: 95%;
        max-height: 85vh;
    }

    .ozel-gun-popup-close {
        width: 35px;
        height: 35px;
        top: 10px;
        right: 10px;
        font-size: 18px;
    }
}

/* =====================================================================
   HIZLI BAĞIŞ (önceden satır içi style + onmouseover)
   ===================================================================== */
.quick-donation-section {
    background: linear-gradient(135deg, #002147 0%, #003366 100%);
    padding: 50px 0;
    margin-top: 0;
}

.quick-donation-box {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.quick-donation-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.quick-donation-logo {
    width: 80px;
    height: 80px;
    min-width: 80px;
    background: linear-gradient(135deg, #002147 0%, #003366 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0,33,71,0.3);
}
.quick-donation-logo i { font-size: 40px; color: white; }

.quick-donation-header h2 {
    color: #002147;
    font-weight: bold;
    margin: 0;
    font-size: 32px;
    line-height: 1.2;
}

.qd-alan { margin-bottom: 20px; }
.qd-sepet-satir { position: relative; margin-bottom: 25px; }

.qd-btn {
    width: 100%;
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
    text-decoration: none;
}
.qd-btn:hover { transform: translateY(-2px); color: white; }
.qd-btn:focus-visible { outline: 3px solid #ffd54f; outline-offset: 2px; }

.qd-sepet-btn {
    background: #002147;
    padding: 15px 20px;
    font-size: 16px;
    box-shadow: 0 5px 15px rgba(0,33,71,0.3);
}
.qd-sepet-btn:hover { background: #001533; }

#sepetBadge {
    background: #dc3545;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    margin-left: 5px;
}
#sepetToplamTutar { margin-left: auto; font-size: 14px; opacity: 0.9; }

.qd-select,
.qd-tutar {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #ddd;
    border-radius: 10px;
    background: white;
    transition: all 0.3s;
}
.qd-select { font-size: 16px; cursor: pointer; }
.qd-tutar { font-size: 18px; text-align: center; font-weight: bold; }
.qd-tutar[aria-invalid="true"] { border-color: #b02a37; }

.qd-tutar-aciklama { text-align: center; margin-top: 8px; color: #666; font-size: 13px; }
/* Sepete eklemeden önce yorumlanan tutar açıkça gösterilir */
.qd-tutar-onizleme { text-align: center; margin-top: 4px; font-size: 14px; font-weight: 600; color: #002147; min-height: 21px; }
.qd-tutar-onizleme.hata { color: #b02a37; }

.qd-ekle-satir { margin-bottom: 15px; }
.qd-ekle-btn {
    background: #1e7e34;
    padding: 18px 30px;
    font-size: 18px;
    box-shadow: 0 5px 15px rgba(40,167,69,0.3);
}
.qd-ekle-btn:hover { background: #19692c; }

.qd-eft-btn {
    background: #760507;
    padding: 18px 30px;
    font-size: 18px;
    box-shadow: 0 5px 15px rgba(118,5,7,0.3);
}
.qd-eft-btn:hover { background: #5a0405; }

/* =====================================================================
   BAĞIŞ KATEGORİLERİ
   ===================================================================== */
.donation-categories-section { background: #f8f9fa; padding: 60px 0; }

/* Kırılımlar eskiden tersti (≤768 tek sütun, ≤576 iki sütun) ve 320px'de taşıyordu;
   artık sütun sayısı genişliğe göre kendiliğinden ayarlanır. */
.donation-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: stretch;
}
@media (max-width: 768px) {
    .donation-categories { gap: 20px; }
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s;
    border: 3px solid transparent;
    height: 100%;
    min-width: 0;
}
.category-item:hover,
.category-item:focus-within {
    border-color: #002147;
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,33,71,0.3);
}
@media (max-width: 400px) {
    .category-item { padding: 24px 12px; }
}

.category-link {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 100%;
    flex: 1;
}

.category-icon {
    width: min(120px, 100%);
    height: auto;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    padding: 10px;
    flex-shrink: 0;
}
.category-icon picture { display: contents; }
.category-icon img { width: 100%; height: 100%; object-fit: contain; }

.category-title {
    color: #002147;
    font-weight: bold;
    margin: 0;
    font-size: 16px;
    text-align: center;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-btn {
    width: 100%;
    background: #1e7e34;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: auto;
    -webkit-tap-highlight-color: transparent;
}
.category-btn:hover { background: #19692c; }
.category-btn:focus-visible { outline: 3px solid #002147; outline-offset: 2px; }

/* =====================================================================
   DUYURULAR
   ===================================================================== */
.announcements-section {
    padding: 60px 0 80px;
    background: #f8f9fa; /* Üstteki bölümle uyumlu devam */
    border-top: 1px solid rgba(0,0,0,0.05);
    position: relative;
    z-index: 1;
}

.announcements-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1200px; /* Üstteki max-width ile aynı */
    margin: 0 auto;
}

/* Duyuru Kartı */
.announcement-card {
    text-decoration: none;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    border: 1px solid rgba(0,0,0,0.03);
}

.announcement-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,33,71,0.15);
}
.announcement-card:focus-visible,
.all-announcements-card:focus-visible { outline: 3px solid #0066cc; outline-offset: 3px; }

.announcement-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.announcement-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.announcement-card:hover .announcement-image img {
    transform: scale(1.1);
}

.date-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255,255,255,0.95);
    border-radius: 12px;
    padding: 5px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    z-index: 2;
    min-width: 50px;
}

.date-badge .day {
    font-size: 18px;
    font-weight: 800;
    color: #002147;
    line-height: 1;
}

.date-badge .month {
    font-size: 10px;
    font-weight: 700;
    color: #666;
    text-transform: uppercase;
    margin-top: 2px;
}

.announcement-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.announcement-title {
    color: #002147;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    margin-top: 0;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    margin-top: auto;
    color: #002147;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s;
}

.announcement-card:hover .read-more {
    color: #0056b3;
    gap: 12px;
}

/* Tüm Duyurular Kartı */
.all-announcements-card {
    text-decoration: none;
    background: linear-gradient(135deg, #002147 0%, #003366 100%);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px;
    color: white;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(0,33,71,0.2);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.all-announcements-card::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    top: -80px;
    right: -80px;
    transition: transform 0.6s;
}

.all-announcements-card::after {
    content: '';
    position: absolute;
    width: 120px;
    height: 120px;
    background: rgba(255,255,255,0.03);
    border-radius: 50%;
    bottom: -40px;
    left: -40px;
    transition: transform 0.6s;
}

.all-announcements-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,33,71,0.4);
    color: white;
}

.all-announcements-card:hover::before {
    transform: scale(1.2);
}

.all-content {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.all-content .icon-box {
    width: 70px;
    height: 70px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin-bottom: 20px;
    backdrop-filter: blur(5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.all-content h3,
.all-content .all-baslik {
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 15px;
    line-height: 1.2;
    letter-spacing: 0.5px;
    color: #fff !important;
}

.all-content p {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    margin: 0 0 25px;
    max-width: 200px;
    line-height: 1.5;
}

.arrow-circle {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s;
    border: 1px solid rgba(255,255,255,0.2);
}

.all-announcements-card:hover .arrow-circle {
    background: white;
    color: #002147;
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 992px) {
    .announcements-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .announcements-wrapper {
        grid-template-columns: 1fr;
    }
    .announcement-image {
        height: 220px;
    }
    .all-announcements-card {
        min-height: 200px;
        margin-top: 10px;
    }
}

/* =====================================================================
   Hızlı Bağış Responsive
   ===================================================================== */
@media (max-width: 768px) {
    .quick-donation-box {
        padding: 25px 20px;
    }

    .quick-donation-header {
        flex-direction: column;
        text-align: center;
        margin-bottom: 25px;
    }

    .quick-donation-header h2 {
        font-size: 26px;
    }

    .quick-donation-logo {
        width: 70px;
        height: 70px;
        min-width: 70px;
    }

    .quick-donation-logo i {
        font-size: 35px;
    }
}

@media (max-width: 480px) {
    .quick-donation-box {
        padding: 20px 15px;
    }

    .quick-donation-header h2 {
        font-size: 22px;
    }

    .quick-donation-logo {
        width: 60px;
        height: 60px;
        min-width: 60px;
    }

    .quick-donation-logo i {
        font-size: 28px;
    }
}
