/* public_html/assets/css/style.css - Düzeltilmiş Versiyon */

:root {
    --primary-color: #f97316; /* Turuncu */
    --primary-dark: #ea580c;
    --text-color: #333;
    --light-text: #666;
    --bg-color-light: #f8f9fa;
    --border-color: #e5e7eb;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    background-color: #fff;
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* -------------------- Header (Üst Menü) -------------------- */
.main-header {
    background-color: #fff;
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.03);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}
.logo img { height: 32px; margin-right: 10px; }

.top-nav a, .auth-links a {
    font-weight: 500;
    margin-left: 20px;
    font-size: 0.95rem;
    color: var(--text-color);
}
.top-nav a:hover, .auth-links a:hover { color: var(--primary-color); }

.order-btn {
    background-color: var(--primary-color);
    color: white !important;
    padding: 10px 20px !important;
    border-radius: 6px;
    transition: 0.3s;
}
.order-btn:hover { background-color: var(--primary-dark); }

/* GÜNCELLENMİŞ HERO BÖLÜMÜ */
.hero {
    /* Resim yolu düzeltildi: ../images/anasayfa.jpg (CSS klasöründen bir geri çıkıp images'e gider) */
    background-image: url('../images/anasayfa.jpg'); 
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    
    height: 550px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

/* Resmin üzerine gelen siyah perde */
.hero-overlay {
    background: rgba(0, 0, 0, 0.5); /* %50 Siyahlık */
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.hero .container {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-slogan {
    font-size: 2.5rem; /* Başlık boyutu */
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* -------------------- Arama Kutusu (Düzeltildi) -------------------- */
.search-form {
    display: flex;
    background: white;
    padding: 5px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 700px;
    margin: 0 auto 20px auto;
}

.search-form input {
    flex: 1;
    border: none;
    padding: 15px 20px;
    font-size: 1rem;
    outline: none;
    border-radius: 8px 0 0 8px;
}

.search-form button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    border-radius: 8px; /* Butonun kenarlarını yuvarla */
    transition: 0.3s;
    white-space: nowrap;
}

.search-form button:hover {
    background-color: var(--primary-dark);
}

.category-links a {
    color: white;
    margin: 0 10px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: underline;
    opacity: 0.9;
}
.category-links a:hover { opacity: 1; }


/* -------------------- Kategoriler -------------------- */
.popular-categories {
    padding: 60px 0;
    background-color: var(--bg-color-light);
}

.popular-categories h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-color);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Responsive Grid */
    gap: 20px;
}

.category-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 140px;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.category-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.category-card span {
    font-weight: 600;
    color: var(--text-color);
}

/* -------------------- Footer -------------------- */
.main-footer {
    background-color: #1f2937;
    color: #9ca3af;
    padding: 60px 0 20px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-col ul li { margin-bottom: 10px; }
.footer-col a { transition: 0.3s; }
.footer-col a:hover { color: white; }

.footer-bottom {
    text-align: center;
    border-top: 1px solid #374151;
    padding-top: 20px;
    font-size: 0.9rem;
}

/* Mobil Uyumluluk */
@media (max-width: 768px) {
    .hero-slogan { font-size: 1.8rem; }
    .search-form { flex-direction: column; padding: 10px; }
    .search-form input { border-radius: 8px; margin-bottom: 10px; }
    .search-form button { width: 100%; }
    .main-header .container { flex-direction: column; }
    .top-nav { margin-top: 15px; }
}