/* EcuRace - Ana CSS Dosyası */

/* Genel Stiller */
:root {
    --primary-color: #ffc107;
    --secondary-color: #212529;
    --accent-color: #fd7e14;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 0; /* sticky navbar ile artık gerek yok */
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Navbar ve Header Düzeltmeleri */
.navbar {
    position: sticky;
    top: 0;
    z-index: 2147483646;
}

.navbar-brand img {
    max-height: 40px;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover, 
.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
}

.navbar-nav .dropdown-menu {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    pointer-events: auto;
}

.navbar-nav .dropdown-item {
    padding: 0.5rem 1.5rem;
    transition: all 0.2s ease;
}

.navbar-nav .dropdown-item:hover {
    background-color: #f8f9fa;
    color: var(--primary-color);
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

.navbar-toggler-icon {
    width: 24px;
    height: 24px;
}

/* Sayfa Başlık Bölümü Düzeltmesi */
.bg-dark.text-white.py-5 {
    z-index: 900;
    position: relative;
}

.breadcrumb-item.active {
    color: #fff !important;
}

/* Sticky Sidebar Düzeltmesi */
.sticky-top {
    top: 90px; /* Navbar'ın altında kalması için değer arttırıldı */
    z-index: 990;
}

/* Özel Butonlar */
.btn-custom {
    background-color: var(--primary-color);
    color: var(--dark-color);
    font-weight: 600;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn-custom:hover {
    background-color: var(--accent-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Hero Bölümü */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../img/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    min-height: 500px;
    display: flex;
    align-items: center;
    position: relative;
    margin-top: 0; /* margin-top kaldırıldı çünkü body'deki padding-top yeterli */
}

/* Index sayfası için hero düzeltmeleri */
body.home .hero-section {
    margin-top: -76px; /* Navbar yüksekliğini negatif olarak vererek tam ekran görünüm sağlar */
    padding-top: 76px; /* İçeriğin navbar altından başlaması için padding */
}

/* Home sayfası navbar düzeltmesi */
body.home .navbar {
    background-color: rgba(33, 37, 41, 0.9) !important; /* Transparan arka plan */
}

body.home .navbar-nav {
    margin-left: 20px; /* Menü boşluğu */
}

body.home .navbar-collapse {
    display: flex !important; /* Navbar menu görünürlüğü için */
}

body.home .nav-link,
body.home .navbar-brand,
body.home .dropdown-toggle {
    color: #fff !important; /* Menü yazı rengi */
}

/* Hizmet Kartları */
.service-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-card img {
    transition: all 0.5s ease;
}

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

/* Özellikler Bölümü */
.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* Sayaç Bölümü */
.counter-section {
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('../img/counter-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding: 5rem 0;
}

.counter-box {
    text-align: center;
}

.counter-value {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.counter-text {
    font-size: 1.2rem;
    font-weight: 500;
}

/* Testimonials */
.testimonial-card {
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    margin: 1rem 0.5rem;
    background-color: white;
    position: relative;
}

.testimonial-card::before {
    content: '\201C';
    font-size: 4rem;
    position: absolute;
    top: 15px;
    left: 15px;
    color: var(--primary-color);
    opacity: 0.3;
}

.testimonial-img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 1rem;
}

/* Ürün Kartları */
.product-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin-bottom: 2rem;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.product-img-container {
    height: 200px;
    overflow: hidden;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

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

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Dashboard */
.dashboard-card {
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
}

.dashboard-header {
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
    font-weight: 600;
}

.dashboard-body {
    padding: 1.5rem;
}

.sidebar-link {
    display: block;
    padding: 0.8rem 1rem;
    margin-bottom: 5px;
    border-radius: 5px;
    color: #495057;
    transition: all 0.3s ease;
}

.sidebar-link:hover, .sidebar-link.active {
    background-color: var(--primary-color);
    color: var(--dark-color);
}

.sidebar-link i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

/* Form Stilleri */
.form-control:focus {
    box-shadow: 0 0 0 0.25rem rgba(255, 193, 7, 0.25);
    border-color: var(--primary-color);
}

.custom-select {
    border-radius: 5px;
    padding: 0.7rem 1rem;
    border: 1px solid #ced4da;
    transition: all 0.3s ease;
}

.custom-select:focus {
    box-shadow: 0 0 0 0.25rem rgba(255, 193, 7, 0.25);
    border-color: var(--primary-color);
}

/* Animasyonlar */
.fadeIn {
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Medya Sorguları */
@media (max-width: 992px) {
    .counter-value {
        font-size: 2.5rem;
    }
    
    .counter-text {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 400px;
        text-align: center;
    }
    
    .counter-box {
        margin-bottom: 2rem;
    }
    
    .feature-icon {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    body {
        padding-top: 60px;
    }

    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.7rem;
    }
    
    .counter-section {
        padding: 3rem 0;
    }
} 