/* İMARX AKADEMİ PRO TEMA */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

:root {
    --primary-color: #2563eb; /* Profesyonel Mavi */
    --sidebar-bg: #0f172a;    /* Koyu Lacivert */
    --sidebar-text: #94a3b8;
    --bg-color: #f8fafc;
    --text-color: #334155;
    --border-color: #e2e8f0;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
}

/* ANA YERLEŞİM */
.main-wrapper {
    display: flex;
    min-height: 100vh;
}

/* SIDEBAR TASARIMI */
.sidebar {
    width: 280px;
    background-color: var(--sidebar-bg);
    color: #fff;
    flex-shrink: 0;
    border-right: 1px solid #1e293b;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    transition: transform 0.3s ease;
}

.sidebar-brand {
    padding: 25px;
    border-bottom: 1px solid #1e293b;
}

.sidebar-brand h2 { margin: 0; font-size: 1.4rem; color: #fff; }
.sidebar-brand small { color: var(--primary-color); font-weight: 600; letter-spacing: 1px; }

.sidebar-nav { padding: 20px 0; }
.nav-label {
    padding: 20px 25px 10px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 12px 25px;
    color: var(--sidebar-text);
    text-decoration: none;
    font-size: 0.95rem;
    transition: 0.2s;
    border-left: 3px solid transparent;
}

.sidebar-nav a:hover { background-color: #1e293b; color: #fff; }
.sidebar-nav a.active {
    background-color: #1e293b;
    color: #fff;
    border-left-color: var(--primary-color);
}
.sidebar-nav a i { width: 25px; margin-right: 10px; }

/* İÇERİK ALANI */
.content {
    flex-grow: 1;
    padding: 40px;
    overflow-x: hidden; /* Taşmayı engelle */
}

.content-container {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* MOBİL AYARLARI */
.mobile-header { display: none; }

@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: -280px; /* Menüyü gizle */
        z-index: 1000;
    }
    .sidebar.active-mobile { left: 0; /* Menüyü aç */ }
    
    .mobile-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: var(--sidebar-bg);
        color: #fff;
        padding: 15px;
    }
    
    .mobile-header button {
        background: none;
        border: 1px solid #334155;
        color: #fff;
        padding: 8px 12px;
        border-radius: 5px;
        cursor: pointer;
    }
    
    .content { padding: 20px; }
    .content-container { padding: 20px; }
}

/* TIPOGRAFİ & ELEMENTLER */
h1 { font-size: 2rem; color: #1e293b; margin-bottom: 1.5rem; border-bottom: 2px solid var(--border-color); padding-bottom: 15px; }
h2 { color: #334155; margin-top: 2rem; font-size: 1.5rem; }
p { line-height: 1.7; color: #475569; margin-bottom: 1.5rem; }
ul, ol { margin-bottom: 1.5rem; padding-left: 20px; color: #475569; line-height: 1.7; }
li { margin-bottom: 10px; }

/* Önemli Not Kutusu */
.alert-box {
    background-color: #eff6ff;
    border-left: 4px solid var(--primary-color);
    padding: 20px;
    border-radius: 0 8px 8px 0;
    margin: 20px 0;
    color: #1e40af;
}

/* Kod Bloğu */
pre {
    background: #1e293b;
    color: #cbd5e1;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
}
/* --- GÜNCELLENMİŞ TASARIM KODLARI (FOTOĞRAF DESTEKLİ) --- */

/* 1. HERO ALANI (Giriş Bölümü) */
.hero-section {
    display: flex;               /* Yan yana dizilimi açar */
    align-items: center;         /* Dikeyde ortalar */
    justify-content: space-between; /* Aralarına boşluk koyar */
    gap: 40px;                   /* Yazı ve resim arası mesafe */
    padding: 60px 40px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%); /* Hafif gri gradient */
    border-radius: 12px;
    margin-bottom: 40px;
    overflow: hidden;            /* Taşan efektleri gizle */
}

/* Sol Taraf: Yazılar */
.hero-content {
    flex: 1;                     /* Mevcut alanın yarısını kapla */
    text-align: left;            /* Yazıları sola yasla */
}

.hero-title {
    font-size: 2.5rem;
    color: #1e293b;
    margin-bottom: 15px;
    font-weight: 800;
    line-height: 1.2;            /* Satır aralığını sıkılaştır */
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #475569;
    margin-bottom: 30px;
    line-height: 1.6;
    max-width: 100%;             /* Genişlik kısıtlamasını kaldır */
}

/* Sağ Taraf: Görsel */
.hero-image-container {
    flex: 1;                     /* Diğer yarıyı kapla */
    text-align: center;
    perspective: 1000px;         /* 3D derinlik efekti için gerekli */
}

.hero-image-container img {
    max-width: 100%;             /* Kutudan taşmasın */
    height: auto;
    border-radius: 12px;         /* Köşeleri yuvarlat */
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); /* Gölge */
    transform: rotateY(-5deg);   /* Hafif sola dönük 3D duruş */
    transition: transform 0.5s ease; /* Yumuşak geçiş */
}

.hero-image-container img:hover {
    transform: rotateY(0deg);    /* Mouse gelince düzelsin */
}

/* Buton Tasarımı */
.btn-primary {
    background-color: #2563eb;
    color: white;
    padding: 15px 40px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
    display: inline-block;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.3); /* Butona hafif gölge */
}

.btn-primary:hover {
    background-color: #1d4ed8;
    transform: translateY(-2px); /* Tıklama hissi */
}

/* 2. MOBİL UYUMLULUK (Responsive) */
@media (max-width: 900px) {
    .hero-section {
        flex-direction: column-reverse; /* Mobilde Resim Üste, Yazı Alta gelsin */
        text-align: center;      /* Yazıları ortala */
        padding: 40px 20px;
    }

    .hero-content {
        text-align: center;      /* Mobilde yazılar ortalı olsun */
    }

    .hero-image-container img {
        transform: none;         /* Mobilde 3D efektini kapat (karışıklık olmasın) */
        margin-bottom: 30px;
        max-width: 90%;
    }
}

/* 3. İSTATİSTİK SAYAÇLARI */
.stats-row {
    display: flex;
    justify-content: center;
    gap: 20px; /* Mobilde sıkışmasın diye azalttık */
    margin: 40px 0;
    padding: 20px;
    background: #f8fafc;
    border-radius: 8px;
    flex-wrap: wrap; /* Mobilde alt alta geçebilsin */
}
.stat-item { text-align: center; min-width: 100px; }
.stat-number { font-size: 2rem; font-weight: 800; color: #1e293b; display: block; }
.stat-label { font-size: 0.9rem; color: #64748b; }

/* 4. KARTLI YAPI (Dashboard) */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Kartlar çok küçülmesin */
    gap: 20px;
    margin-top: 40px;
}
.feature-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    padding: 25px;
    border-radius: 10px;
    transition: 0.3s;
}
.feature-card:hover {
    border-color: #2563eb;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px); /* Kart yukarı kalksın */
}
.feature-icon {
    font-size: 2rem;
    color: #2563eb;
    margin-bottom: 15px;
}
.feature-title { font-weight: 700; color: #1e293b; margin-bottom: 10px; display: block; }
.feature-desc { font-size: 0.95rem; color: #64748b; line-height: 1.5; }