/* ============================================================
   AHD Akademi - Modern & Premium Tema v2.4
   Mor Gradient - Enhanced Other Sites Section
   ============================================================ */

:root {
    --primary-purple: #8b5cf6;
    --secondary-purple: #7c3aed;
    --dark-purple: #6d28d9;
    --light-purple: #a78bfa;
    --accent-purple: #c084fc;

    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;

    --dark-bg: #0f172a;
    --secondary-dark: #1e293b;
    --light-bg: #f8fafc;
    --body-bg: #f1f5f9;
    --border-color: #e2e8f0;
    --text-dark: #0f172a;
    --text-muted: #64748b;

    --gradient-purple: linear-gradient(135deg, var(--primary-purple), var(--secondary-purple));
    --gradient-purple-alt: linear-gradient(135deg, var(--secondary-purple), var(--dark-purple));
    --gradient-hero: linear-gradient(135deg, #8E2DE2 0%, #EC4899 100%);

    --shadow-sm: 0 2px 8px rgba(139, 92, 246, 0.08);
    --shadow-md: 0 4px 16px rgba(139, 92, 246, 0.12);
    --shadow-lg: 0 8px 32px rgba(139, 92, 246, 0.16);
    --shadow-xl: 0 12px 48px rgba(139, 92, 246, 0.24);
}

/* ============================================================
   GENEL
   ============================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Roboto, Arial, sans-serif;
    color: var(--text-dark);
    background-color: var(--body-bg);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
}

/* ============================================================
   NAVBAR - ŞEFFAF CAM EFEKTİ
   ============================================================ */
.navbar {
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    min-height: 80px;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.4) !important;
    box-shadow: var(--shadow-lg);
}

.navbar .container {
    display: flex;
    align-items: center;
    min-height: 70px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-dark);
    padding: 0.5rem 0;
    margin-right: 2rem;
}

.navbar-brand img {
    height: 60px;
    width: auto;
    object-fit: contain;
    margin-right: 0.75rem;
}

.navbar-nav {
    align-items: center;
}

.navbar-nav .nav-link {
    font-weight: 600;
    color: #093977;
    padding: 0.75rem 1rem !important;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    margin: 0 0.25rem;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-purple);
    background: rgba(139, 92, 246, 0.08);
}

.navbar-nav .nav-link.active {
    background: var(--gradient-hero) !important;
    color: #fff !important;
    box-shadow: 0 6px 18px rgba(139, 92, 246, 0.35);
}

.social-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.social-link {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.1);
    transition: all 0.3s ease;
    font-size: 1rem;
}

.social-link:hover {
    background: var(--gradient-purple);
    color: white !important;
    transform: translateY(-2px);
}

/* ============================================================
   HERO SLIDER
   ============================================================ */
.hero-slider {
    margin-top: -80px;
    padding-top: 80px;
}

.carousel-item {
    height: 600px;
    position: relative;
    overflow: hidden;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        rgba(74, 0, 224, 0.10),
        rgba(0, 0, 0, 0.25)
    );
    z-index: 1;
}

.carousel-caption {
    z-index: 2;
    top: 50%;
    transform: translateY(-50%);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.hero-description {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    max-width: 600px;
    margin: 1rem auto 0;
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-purple);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* ============================================================
   DİĞER SİTELER - MODERN CARD DESIGN
   ============================================================ */
.other-sites-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%);
    position: relative;
}

.other-sites-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-purple);
}

.site-card {
    background: white;
    border-radius: 1.5rem;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
    height: 100%;
    min-height: 280px;
}

.site-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1.5rem;
    padding: 2px;
    background: var(--gradient-purple);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.site-card:hover::before {
    opacity: 1;
}

.site-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.site-card-inner {
    padding: 2.5rem 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    height: 100%;
}

.site-logo-wrapper {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--gradient-purple);
    padding: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    box-shadow: var(--shadow-md);
}

.site-card:hover .site-logo-wrapper {
    transform: rotate(5deg) scale(1.1);
    box-shadow: var(--shadow-lg);
}

.site-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    background: white;
}

.site-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    transition: color 0.3s ease;
    flex-grow: 1;
    display: flex;
    align-items: center;
}

.site-card:hover .site-name {
    color: var(--primary-purple);
}

.btn-site-visit {
    background: var(--gradient-purple);
    color: white;
    border: none;
    padding: 0.875rem 2rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-sm);
}

.btn-site-visit:hover {
    background: var(--gradient-purple-alt);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: white;
}

.btn-site-visit i {
    transition: transform 0.3s ease;
}

.btn-site-visit:hover i {
    transform: translateX(4px);
}

/* ============================================================
   HABER KARTLARI
   ============================================================ */
.news-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-purple);
}

.news-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
    border-bottom: 1px solid var(--border-color);
}

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

.news-card:hover .news-image img {
    transform: scale(1.08);
}

.news-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--gradient-purple);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.news-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-content h5 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    transition: color 0.3s ease;
    flex-grow: 1;
}

.news-card:hover h5 {
    color: var(--primary-purple);
}

.news-content p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 0.75rem;
    border: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--gradient-purple);
    color: #fff;
}

.btn-primary:hover {
    background: var(--gradient-purple-alt);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    color: #fff;
}

.btn-outline-primary {
    border: 2px solid var(--primary-purple);
    color: var(--primary-purple);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--gradient-purple);
    color: white;
    border-color: transparent;
    transform: translateY(-3px);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: linear-gradient(135deg, var(--dark-bg), var(--secondary-dark));
    color: #fff;
    padding: 4rem 0 2rem;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-purple);
}

/* ============================================================
   ANIMASYONLAR
   ============================================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.carousel-item.active .hero-title {
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

.carousel-item.active .hero-description {
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.4s;
    opacity: 0;
}

.carousel-item.active .hero-buttons {
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.6s;
    opacity: 0;
}

/* Site kartları için animasyon */
.site-card {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.site-card:nth-child(1) { animation-delay: 0.1s; }
.site-card:nth-child(2) { animation-delay: 0.2s; }
.site-card:nth-child(3) { animation-delay: 0.3s; }
.site-card:nth-child(4) { animation-delay: 0.4s; }

/* ============================================================
   MOBİL GÖRÜNÜM (Slider'ın Orijinal Mobil Ayarları Korundu)
   ============================================================ */
@media (max-width: 991.98px) {
    .navbar {
        background: rgba(255, 255, 255, 0.95) !important;
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        padding: 0.5rem 0;
        min-height: 70px;
    }
    
    .navbar.scrolled {
        background: rgba(255, 255, 255, 0.98) !important;
    }

    .navbar-brand {
        font-size: 1.25rem;
        margin-right: 1rem;
    }
    
    .navbar-brand img {
        height: 50px;
    }

    .navbar-toggler {
        border: 2px solid var(--primary-purple);
        padding: 0.5rem 0.75rem;
        border-radius: 0.5rem;
    }

    .navbar-collapse {
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        margin-top: 1rem;
        padding: 1rem;
        border-radius: 1rem;
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    }

    .navbar-nav .nav-link {
        padding: 0.75rem 1rem !important;
        margin: 0.25rem 0;
    }

    /* Slider yüksekliği */
    .carousel-item {
        height: 460px;
        position: relative;
    }

    /* Slider overlay - hafif koyuluk */
    .carousel-item::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(to bottom, rgba(0,0,0,0.25), rgba(0,0,0,0.45));
        z-index: 1;
    }

    /* Yazı alanı */
    .carousel-caption {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -45%);
        z-index: 2;
        width: 90%;
        text-align: center;
    }

    .hero-title {
        font-size: 2rem;
        font-weight: 700;
        color: #fff;
        line-height: 1.3;
        text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    }

    .hero-description {
        font-size: 1.05rem;
        margin-top: 0.75rem;
        color: #f1f1f1;
        text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
    }

    .section-title {
        font-size: 1.9rem;
    }

    /* Diğer Siteler - Mobil İyileştirmeler */
    .site-card {
        min-height: 240px;
    }

    .site-card-inner {
        padding: 2rem 1.5rem;
        gap: 1.25rem;
    }

    .site-logo-wrapper {
        width: 85px;
        height: 85px;
    }

    .site-name {
        font-size: 1.15rem;
    }

    .btn-site-visit {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* ============================================================
   KÜÇÜK TELEFONLAR (576px ve Altı)
   ============================================================ */
@media (max-width: 575.98px) {
    .carousel-item {
        height: 400px;
    }

    .carousel-caption {
        top: 45%;
        background: rgba(0, 0, 0, 0.35);
        border-radius: 1rem;
        backdrop-filter: blur(1px);
        transform: translate(-50%, -50%);
        width: 95%;
    }

    .hero-title {
        font-size: 1.7rem;
        text-shadow: 0 2px 5px rgba(0,0,0,0.45);
    }

    .hero-description {
        font-size: 0.95rem;
        color: #f5f5f5;
    }

    .navbar {
        background: rgba(255, 255, 255, 0.98) !important;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        padding: 0.4rem 0;
        min-height: 65px;
    }

    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .navbar-brand img {
        height: 45px;
    }

    /* Diğer Siteler - Küçük Mobil */
    .other-sites-section {
        padding: 3rem 0 !important;
    }

    .site-card {
        min-height: 220px;
    }

    .site-card-inner {
        padding: 1.75rem 1.25rem;
        gap: 1rem;
    }

    .site-logo-wrapper {
        width: 75px;
        height: 75px;
    }

    .site-name {
        font-size: 1.05rem;
    }

    .btn-site-visit {
        padding: 0.7rem 1.25rem;
        font-size: 0.875rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }
}

/* ============================================================
   ÇOK KÜÇÜK TELEFONLAR (400px ve Altı)
   ============================================================ */
@media (max-width: 399.98px) {
    .navbar-brand img {
        height: 40px;
    }
    
    .carousel-item {
        height: 400px;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-description {
        font-size: 0.9rem;
    }

    .btn-hero {
        font-size: 0.9rem;
        padding: 0.7rem 1.5rem;
    }

    /* Diğer Siteler - Çok Küçük Ekranlar */
    .site-card-inner {
        padding: 1.5rem 1rem;
    }

    .site-logo-wrapper {
        width: 70px;
        height: 70px;
    }

    .site-name {
        font-size: 1rem;
    }
}

/* ============================================================
   DROPDOWN MENÜ
   ============================================================ */
.dropdown-menu {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
    margin-top: 0.5rem;
}

.dropdown-item {
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    color: var(--text-dark);
}

.dropdown-item:hover {
    background: rgba(139, 92, 246, 0.08);
    color: var(--primary-purple);
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
*:focus-visible {
    outline: 2px solid var(--primary-purple);
    outline-offset: 2px;
    border-radius: 0.25rem;
}

/* ============================================================
   SCROLL TO TOP BUTTON
   ============================================================ */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--gradient-purple);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

/* ============================================================
   YATAY HABER KARTLARI (Son Eklenenler)
   ============================================================ */
.card.h-100.border-0.shadow-sm {
    transition: transform 0.2s;
    border-radius: 12px;
    overflow: hidden;
}

.card.h-100.border-0.shadow-sm:hover {
    transform: translateX(5px);
    background: #f8fafc;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}