/* assets/style.css */

/* --- 1. GENEL DEĞİŞKENLER VE AYARLAR --- */
:root {
    --primary-color: #0d6efd;       /* Ana Mavi */
    --primary-hover: #0b5ed7;       /* Mavi Hover Tonu */
    --footer-bg: #151f32;           /* Resimdeki Koyu Lacivert Tonu */
    --text-muted: #adb5bd;          /* Soluk Yazı Rengi */
    --body-bg: #f8f9fa;             /* Açık Gri Arkaplan */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--body-bg);
    /* Footer'ın içerik az olsa bile en altta kalması için Flex yapısı */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- 2. NAVBAR (HEADER) --- */
.navbar {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: 0.5px;
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 500;
    margin-left: 10px;
    color: #333;
    transition: color 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color) !important;
}

/* --- 3. HERO SLIDER ALANI --- */
.hero-section {
    position: relative;
    height: 85vh; /* Ekranın %85'i */
    min-height: 600px;
    overflow: hidden;
}

.hero-slide {
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}

/* Resimlerin üzerine gelen karartma efekti */
.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 10vh;
    color: #fff;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* --- 4. ÖZELLİKLER (FEATURES) KUTULARI --- */
.features-wrapper {
    margin-top: -100px; /* Slider'ın üzerine binmesi için */
    position: relative;
    z-index: 10;
    padding-bottom: 4rem;
}

.feature-box {
    background: #fff;
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, border-bottom 0.3s ease;
    height: 100%;
    border-bottom: 4px solid transparent; /* Hover efekti için hazırlık */
}

.feature-box:hover {
    transform: translateY(-10px);
    border-bottom-color: var(--primary-color);
}

.icon-circle {
    width: 70px; height: 70px;
    background: rgba(13, 110, 253, 0.1); /* Transparent Mavi */
    color: var(--primary-color);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; 
    margin-bottom: 1.5rem;
}

/* --- 5. ÜRÜN VE HABER KARTLARI --- */
.card-img-custom {
    height: 240px;
    object-fit: cover; /* Resmin oranını bozmadan kutuya sığdırır */
    width: 100%;
}

.news-card {
    transition: transform 0.3s ease;
}
.news-card:hover {
    transform: translateY(-5px);
}

/* --- 6. FOOTER (Resimdeki Tasarıma Uygun) --- */
footer {
    margin-top: auto; /* İçerik kısaysa footer'ı dibe iter */
    background-color: var(--footer-bg);
    color: var(--text-muted);
    padding-top: 4rem;
    padding-bottom: 2rem;
    font-size: 0.95rem;
}

/* Başlıklar: Beyaz, Kalın ve Büyük Harf */
footer h5 {
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Link Listeleri */
footer ul {
    padding-left: 0;
    list-style: none;
}

footer ul li {
    margin-bottom: 0.75rem;
}

footer a {
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.2s ease;
}

footer a:hover {
    color: #fff;
    padding-left: 5px; /* Hoverda hafif sağa kayma efekti */
}

/* Bülten (Newsletter) Alanı */
footer .form-control {
    border-radius: 0.25rem 0 0 0.25rem;
    border: none;
    padding: 0.8rem;
}

footer .btn-primary {
    border-radius: 0 0.25rem 0.25rem 0;
    padding: 0.8rem 1.5rem;
    background-color: var(--primary-color);
    border: none;
}

footer .btn-primary:hover {
    background-color: var(--primary-hover);
}

/* --- 7. MOBİL UYUMLULUK (Responsive) --- */
@media (max-width: 768px) {
    .hero-title { 
        font-size: 2.2rem; 
    }
    .hero-section { 
        height: 60vh; 
        min-height: 500px; 
    }
    .hero-content {
        padding-top: 5vh;
    }
    .features-wrapper { 
        margin-top: -50px; 
    }
    .feature-box {
        margin-bottom: 1rem;
        padding: 1.5rem;
    }
    footer {
        text-align: center;
    }
    /* Mobilde footer başlıklarını ortala */
    footer .d-flex {
        justify-content: center;
    }
}