/* Custom CSS for Sinav Clone */

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.6;
}

/* Primary Colors */
:root {
    --primary: #c7010d;
    --primary-dark: #a00009;
    --primary-light: #e8353f;
    --secondary: #1e3a5f;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    --light: #f8f9fa;
    --dark: #343a40;
}

/* Header Styles */
.main-header {
    background: #fff;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.main-header.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

/* Desktop Navigation */
.desktop-nav a {
    position: relative;
    padding: 0.5rem 0;
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.desktop-nav a:hover::after {
    width: 100%;
}

.desktop-nav .dropdown-menu {
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-radius: 0.5rem;
    padding: 0.5rem 0;
}

.desktop-nav .dropdown-item {
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.desktop-nav .dropdown-item:hover {
    background: var(--primary);
    color: white;
}

/* Mobile Menu Styles */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    height: 100vh;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    z-index: 9999;
    transition: left 0.3s ease;
    overflow-y: auto;
    box-shadow: 5px 0 30px rgba(0,0,0,0.3);
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav ul li a {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.mobile-nav ul li a:hover {
    padding-left: 1rem;
    background: rgba(255,255,255,0.1);
}

/* Main Slider */
.main-slider {
    padding: 1rem;
}

.main-slider .swiper {
    border-radius: 1rem;
    overflow: hidden;
}

.main-slider .swiper-button-prev,
.main-slider .swiper-button-next {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    color: var(--primary);
}

.main-slider .swiper-button-prev::after,
.main-slider .swiper-button-next::after {
    font-size: 18px;
    font-weight: bold;
}

.main-slider .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: white;
    opacity: 0.5;
}

.main-slider .swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--primary);
}

/* Category Cards */
.category-card {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.category-card img {
    transition: transform 0.5s ease;
}

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

.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 3rem 1.5rem 1.5rem;
    color: white;
    transition: all 0.3s ease;
}

.category-card:hover .category-overlay {
    padding-bottom: 2rem;
}

/* News Cards */
.news-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.news-card .badge {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
}

/* References Marquee */
.references-marquee {
    overflow: hidden;
    padding: 1rem 0;
}

.references-track {
    display: flex;
    animation: marquee 40s linear infinite;
}

.references-track:hover {
    animation-play-state: paused;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Footer */
.main-footer {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.main-footer h5 {
    position: relative;
    padding-bottom: 1rem;
}

.main-footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: rgba(255,255,255,0.5);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -5px 30px rgba(0,0,0,0.15);
    padding: 1.5rem;
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-banner.show {
    transform: translateY(0);
}

/* Buttons */
.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-primary:hover {
    background: var(--primary);
    border-color: var(--primary);
}

/* Utility Classes */
.object-fit-cover {
    object-fit: cover;
}

.object-fit-contain {
    object-fit: contain;
}

/* Tüm sayfalarda içerik görselleri alana sığar (slider hariç) */
.detail-article .detail-img,
.detail-article img.detail-img,
.egitim-ogretim-article .egitim-img,
.anaokulu-article img {
    max-width: 100%;
    object-fit: contain;
}

.rounded-4 {
    border-radius: 1rem !important;
}

/* Responsive */
@media (max-width: 991px) {
    .main-slider {
        padding: 0.5rem;
    }
    
    .category-card img {
        height: 300px !important;
    }
    
    .h-500px {
        height: 300px !important;
    }
    
    .h-400px {
        height: 250px !important;
    }
    
    .h-300px {
        height: 200px !important;
    }
}

@media (max-width: 767px) {
    .main-footer {
        text-align: center;
    }
    
    .main-footer h5::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .references-track img {
        width: 120px !important;
        height: 40px !important;
    }
}

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

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}

/* Scroll Animations */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Loading Skeleton */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Toast Customization */
.toast-success {
    background-color: var(--primary) !important;
}

/* Form Styles */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(199, 1, 13, 0.25);
}

/* Search Bar */
.search {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.search.active {
    transform: translateY(0);
}
