@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

/* =========================================
   1. TEMA DEĞİŞKENLERİ
   ========================================= */
:root {
    /* LIGHT MODE */
    --bg-body: #ffffff;
    --text-main: #0f172a;
    --text-muted: #475569;
    --primary: #2563eb;
    
    /* Header */
    --header-bg: rgba(255, 255, 255, 0.95);
    --header-text: #0f172a;
    --header-border: rgba(0, 0, 0, 0.08);
}

:root.dark {
    /* DARK MODE */
    --bg-body: #0f172a;
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    
    /* Header */
    --header-bg: rgba(15, 23, 42, 0.95);
    --header-text: #ffffff;
    --header-border: rgba(255, 255, 255, 0.05);
}

body { 
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* =========================================
   2. TEMİZLİK (Menü Şeridini Siler)
   ========================================= */
#main-nav, #main-nav a {
    background-color: transparent !important;
    background: none !important;
    box-shadow: none !important;
    border: none !important;
}

/* =========================================
   3. LAYOUT
   ========================================= */
.page-container {
    max-width: 1280px;
    width: 95%;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.layout-grid {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 2rem;
    align-items: start;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

@media (max-width: 1024px) {
    .layout-grid { grid-template-columns: 1fr; }
}

/* =========================================
   4. HEADER AYARLARI
   ========================================= */
#main-header { transition: all 0.4s ease; }

/* Transparent Mod (Yazılar Beyaz) */
#main-header.transparent .nav-link,
#main-header.transparent .logo-text,
#main-header.transparent .icon-btn {
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}
#main-header.transparent i {
    color: #ffffff !important;
    filter: drop-shadow(0 2px 3px rgba(0,0,0,0.5));
}

/* Scrolled Mod */
#main-header.scrolled {
    background-color: var(--header-bg) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--header-border);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
#main-header.scrolled .nav-link,
#main-header.scrolled .logo-text {
    color: var(--header-text) !important;
    text-shadow: none;
}
#main-header.scrolled .icon-btn {
    color: var(--text-muted);
}

/* =========================================
   5. BİLEŞENLER
   ========================================= */
.bg-dark {
    background-color: var(--bg-body);
    border: 1px solid var(--header-border);
    transition: all 0.3s ease;
}
:root.dark .bg-dark {
    background-color: rgba(30, 41, 59, 0.4);
    border-color: rgba(255,255,255,0.05);
}

.group:hover .bg-dark {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.1);
    border-color: var(--primary);
}

input, select, textarea {
    width: 100%;
    padding: 0.6rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    transition: all 0.3s;
}
:root:not(.dark) input {
    background-color: #f1f5f9; border: 1px solid #cbd5e1; color: #0f172a;
}
:root.dark input {
    background-color: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); color: #fff;
}
input:focus { border-color: var(--primary) !important; outline: none; background: transparent !important; }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-body); }
::-webkit-scrollbar-thumb { background: #94a3b8; border-radius: 10px; }

/* =========================================
   6. FOOTER DÜZELTMESİ (YENİ EKLENDİ)
   ========================================= */
/* Footer her zaman koyu olsun ki "site bitti" hissi versin */
footer, .footer {
    background-color: #020617 !important; /* Çok koyu lacivert/siyah */
    color: #94a3b8 !important; /* Gri metin */
    border-top: 1px solid rgba(255,255,255,0.05) !important;
}
/* Başlıklar beyaz */
footer h1, footer h2, footer h3, footer h4, footer h5, footer h6 {
    color: #ffffff !important;
}
/* Linkler açık gri */
footer a {
    color: #cbd5e1 !important;
    transition: color 0.2s;
}
footer a:hover {
    color: #3b82f6 !important; /* Hover olunca mavi */
}