/* style.css - Ana Sayfa Tasarımı */
:root {
    --primary-blue: #1e3a8a;
    --accent-black: #111111;
    --bg-white: #ffffff;
    --bg-light: #f4f6f8;
    --text-grey: #555555;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-white);
    color: var(--accent-black);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navbar */
header {
    background-color: var(--bg-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--accent-black);
    text-decoration: none;
}

.logo span {
    color: var(--primary-blue);
}

.nav-links a {
    margin-left: 20px;
    text-decoration: none;
    color: var(--accent-black);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-blue);
}

/* Arama Kutusu ve Sonuçlar */
.search-container {
    position: relative;
    /* Sonuçları buna göre konumlandıracağız */
}

.search-box {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 20px;
    overflow: hidden;
    padding: 5px 10px;
    background: white;
}

.search-box input {
    border: none;
    outline: none;
    padding: 5px;
    width: 200px;
}

.search-box button {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary-blue);
}

/* YENİ: Arama Sonuçları Açılır Listesi */
.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    border: 1px solid #ddd;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    display: none;
    /* Başlangıçta gizli */
    max-height: 300px;
    overflow-y: auto;
}

.search-results.active {
    display: block;
}

.search-item {
    padding: 10px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.search-item:last-child {
    border-bottom: none;
}

.search-item:hover {
    background-color: var(--bg-light);
    color: var(--primary-blue);
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 80vh;
    /* JS ile görsel basılacak veya HTML inline style kullanılacak */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Genel Section Stilleri */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--primary-blue);
}

/* Kategoriler Grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    text-align: center;
}

.cat-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.cat-card {
    background: var(--bg-light);
    padding: 40px;
    border-radius: 10px;
    transition: transform 0.3s;
    cursor: pointer;
}

.cat-card:hover {
    transform: translateY(-5px);
    background: #eef2ff;
}

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

/* Hakkımızda Bölümü */
.about-section {
    padding: 80px 0;
    background-color: #fff;
}

.about-wrapper {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.about-text p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: var(--text-grey);
}

.about-image {
    flex: 1;
    min-width: 300px;
}

/* Footer */
footer {
    background-color: var(--accent-black);
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-col h4 {
    margin-bottom: 20px;
    color: var(--primary-blue);
}

.footer-col p {
    color: #bbb;
    margin-bottom: 10px;
}

.copyright {
    text-align: center;
    border-top: 1px solid #333;
    padding-top: 20px;
    color: #777;
}

/* Animasyonlar */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* Aranan Ürün Vurgusu (Highlight) */
.highlight-product {
    animation: flashBorder 2s ease-in-out;
    border: 2px solid var(--primary-blue) !important;
    box-shadow: 0 0 20px rgba(30, 58, 138, 0.4) !important;
}

@keyframes flashBorder {
    0% {
        border-color: transparent;
    }

    50% {
        border-color: var(--primary-blue);
        transform: scale(1.02);
    }

    100% {
        border-color: var(--primary-blue);
        transform: scale(1);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        right: 0;
        background-color: white;
        width: 100%;
        flex-direction: column;
        text-align: center;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        margin: 15px 0;
    }

    .hamburger {
        display: block;
    }

    .search-box {
        display: none;
        /* Mobilde yer kaplamasın diye gizli, istenirse açılabilir */
    }

    .hero h1 {
        font-size: 2.5rem;
    }
}