/* =========================================
   GENEL AYARLAR & RESET
   ========================================= */
html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    /* Footer'ın sayfa sonuna yapışmasını sağlayan yapı */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Ana içerik alanı - footer'ın alta yapışması için */
body>*:not(footer):not(nav):not(script):not(style) {
    flex-shrink: 0;
}

body>section,
body>main,
body>div:first-of-type {
    flex-grow: 1;
}

/* =========================================
   HEADER - GLASSMORPHISM EFEKTİ
   ========================================= */
#navbar {
    background: transparent;
    transition: background 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease;
}

#navbar.scrolled {
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}



/* =========================================
   FOOTER TASARIMI - MİNİMAL & TAM SİYAH
   ========================================= */

/* Arkaplan Dekoratif Işıklar - Footer siyah olduğu için opaklıklar ayarlandı */
.arka-plan-isik-mor {
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.1) 0%, rgba(124, 58, 237, 0) 70%);
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    pointer-events: none;
}

.arka-plan-isik-yesil {
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(5, 150, 105, 0.08) 0%, rgba(5, 150, 105, 0) 70%);
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    pointer-events: none;
}

/* Genel Footer Konteyneri - ZORUNLU SİYAH */
.sp-footer-wrapper {
    position: relative;
    background-color: #000000 !important;
    /* Tema ne olursa olsun SİYAH */
    color: #9ca3af;
    /* text-gray-400 */
    font-family: 'Inter', sans-serif;
    overflow: hidden;
    /* Üst tarafa ince bir sınır çizgisi ekleyerek ayrımı netleştiriyoruz */
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    /* [KRİTİK]: Sayfa içeriği ile footer arasında NET boşluk */
    /* Üst içerikten AYRILMAK için */
    padding-top: 4rem;
    /* Footer içi üst boşluk */
}

/* Footer Kart Yapısı - ÇERÇEVESİZ VE ŞEFFAF */
.sp-footer-kart {
    background: transparent !important;
    backdrop-filter: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0;
    height: 100%;
    transition: transform 0.3s ease;
}

/* Logo Görünürlük Garantisi */
.sp-footer-kart img {
    display: block;
    max-width: 100%;
    height: auto;
    /* Opaklık ve filtreleri sıfırlıyoruz */
    opacity: 1 !important;
    filter: none !important;
}

/* Hover durumunda sadece hafif yukarı kalksın */
.sp-footer-kart:hover {
    transform: translateY(-5px);
    background: transparent !important;
}

/* Başlık Stilleri */
.sp-footer-baslik {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: inline-block;
    color: #ffffff;
    position: relative;
}

.sp-footer-baslik::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 40px;
    height: 2px;
    background: #059669;
    /* SP Green */
    border-radius: 2px;
}

/* Link Listesi */
.sp-link-listesi {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sp-link-ogesi {
    margin-bottom: 0.75rem;
}

.sp-link {
    text-decoration: none;
    color: #9ca3af;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
}

.sp-link:hover {
    color: #ffffff;
    transform: translateX(4px);
}

.sp-link i {
    margin-right: 10px;
    font-size: 0.8rem;
    color: #059669;
    width: 16px;
    text-align: center;
}

/* İletişim Bilgileri Standardizasyonu */
.sp-iletisim-satir {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.25rem;
    color: #9ca3af;
}

.sp-iletisim-ikon {
    color: #059669;
    margin-right: 1rem;
    margin-top: 4px;
    font-size: 1.1rem;
}

.sp-iletisim-text {
    font-size: 0.95rem;
}

.sp-iletisim-text a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 0.95rem !important;
    font-weight: normal !important;
}

.sp-iletisim-text a:hover {
    color: #ffffff;
}

/* Sosyal Medya İkonları */
.sp-sosyal-alan {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.sp-sosyal-buton {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    color: #d1d5db;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 0.9rem;
}

.sp-sosyal-buton:hover {
    background: #059669;
    border-color: #059669;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Alt Bilgi Şeridi (Bottom Bar) */
.sp-alt-sinir {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0.5rem 0 0.5rem 0;
    /* Üst: 1rem, Alt: 1rem */
}

.sp-alt-bilgi {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: #6b7280;
}

@media (min-width: 768px) {
    .sp-alt-bilgi {
        flex-direction: row;
    }
}

.sp-alt-link {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s ease;
}

.sp-alt-link:hover {
    color: #ffffff;
}

/* Footer İçindeki Yeni Tema Butonu */
.footer-theme-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #9ca3af;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.footer-theme-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

/* Responsive Düzeltmeler */
@media (max-width: 768px) {
    .sp-footer-kart {
        margin-bottom: 2rem;
    }
}