/*
Theme Name: Beda Kurumsal Tedarik
Theme URI: https://bedatedarik.com
Author: Beda Yazılım
Description: Sade, hızlı ve harita özellikli kurumsal tema.
Version: 1.6
License: GNU General Public License v2 or later
Text Domain: beda
*/

/* --- 1. TEMEL DEĞİŞKENLER VE AYARLAR --- */
:root {
    --primary: #0F2B4C;        /* Ana Lacivert */
    --primary-light: #1a4475;  /* Açık Lacivert */
    --accent: #E67E22;         /* Turuncu (Vurgu) */
    --success: #25D366;        /* WhatsApp Yeşili */
    --bg-light: #F8F9FA;       /* Arka Plan */
    --white: #FFFFFF;
    --text-main: #2C3E50;      /* Koyu Metin */
    --text-muted: #6c757d;     /* Gri Metin */
    --border: #DEE2E6;         /* Kenarlıklar */
    --radius: 8px;             /* Köşe Yuvarlama */
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
}

html { scroll-behavior: smooth; }
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: all 0.2s ease; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; height: auto; display: block; }

/* --- 2. ÜST BİLGİ ÇUBUĞU (TOP BAR) --- */
.top-bar {
    background-color: var(--primary);
    color: rgba(255,255,255,0.9);
    padding: 8px 5%;
    font-size: 0.85rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.top-bar i { margin-right: 6px; color: var(--accent); }

/* --- 3. HEADER (LOGO, ARAMA, BUTON) --- */
header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding-bottom: 5px;
}

.header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 5%;
    gap: 30px;
}

/* Logo */
.logo {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.1;
    display: flex;
    flex-direction: column;
    text-transform: uppercase;
}
.logo span { color: var(--accent); }
.logo small { 
    font-size: 0.65rem; 
    font-weight: 600; 
    color: var(--text-muted); 
    letter-spacing: 1.5px; 
    margin-top: 2px;
}
.logo img { max-height: 55px; width: auto; }

/* Arama Kutusu */
.search-wrapper { flex: 1; max-width: 500px; position: relative; }
.search-wrapper input {
    width: 100%; padding: 12px 45px 12px 20px;
    border: 2px solid var(--bg-light); border-radius: 50px;
    background: var(--bg-light); transition: 0.3s; font-size: 0.95rem;
}
.search-wrapper input:focus { 
    outline: none; border-color: var(--primary-light); 
    background: var(--white); box-shadow: 0 0 0 4px rgba(15, 43, 76, 0.1);
}
.search-btn {
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
    background: var(--primary); color: var(--white); border: none;
    width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: 0.2s;
}
.search-btn:hover { background: var(--accent); }

/* Sağ Butonlar */
.header-actions { display: flex; align-items: center; gap: 15px; }
.btn-quote {
    background: var(--primary); color: var(--white); padding: 12px 25px;
    border-radius: 50px; font-weight: 600; font-size: 0.9rem; border: none; 
    white-space: nowrap; box-shadow: 0 4px 10px rgba(15, 43, 76, 0.2);
}
.btn-quote:hover { background: var(--primary-light); transform: translateY(-2px); }

/* --- 4. HERO (BANNER) BÖLÜMÜ --- */
.hero {
    background-size: cover; background-position: center;
    height: 500px; display: flex; align-items: center; justify-content: center;
    text-align: center; color: var(--white); padding: 20px; position: relative;
}
.hero-bg-slider {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}
.hero-bg-item {
    position: absolute;
    inset: 0;
    height: 100%;
    opacity: 0;
    transition: opacity 0.7s ease;
}
.hero-bg-item.is-active {
    opacity: 1;
}
.hero-bg-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: rgba(15, 43, 76, 0.6);
    font-size: 1.4rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-nav:hover {
    background: rgba(15, 43, 76, 0.85);
}
.hero-nav-prev { left: 16px; }
.hero-nav-next { right: 16px; }
.hero::before {
    content: ''; position: absolute; top:0; left:0; width:100%; height:100%;
    background: linear-gradient(135deg, rgba(15, 43, 76, 0.95) 0%, rgba(15, 43, 76, 0.7) 100%); 
    z-index: 1;
}
.hero-content { z-index: 2; position: relative; max-width: 800px; }
.hero h1 { 
    font-size: 3.5rem; margin-bottom: 20px; line-height: 1.1; font-weight: 800; 
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.hero p { font-size: 1.25rem; margin-bottom: 35px; opacity: 0.9; font-weight: 300; }

.btn-whatsapp-hero {
    background: var(--success); color: white; padding: 18px 40px;
    border-radius: 50px; font-size: 1.1rem; font-weight: 700; border: none;
    transition: all 0.3s; display: inline-flex; align-items: center; gap: 12px;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
}
.btn-whatsapp-hero:hover { transform: translateY(-5px) scale(1.05); background: #20bd5a; }

/* --- 5. İÇERİK VE FİLTRELER --- */
.container { width: 90%; max-width: 1300px; margin: 0 auto; padding: 60px 0; }
.section-header { text-align: center; margin-bottom: 40px; }
.section-header h2 { font-size: 2.2rem; color: var(--primary); margin-bottom: 10px; font-weight: 800; }

.filters { display: flex; justify-content: center; gap: 12px; margin-bottom: 40px; flex-wrap: wrap; }
.filter-btn {
    padding: 10px 25px; border: 1px solid var(--border); background: var(--white);
    border-radius: 30px; font-weight: 600; color: var(--text-muted); 
    transition: 0.3s; font-size: 0.95rem;
}
.filter-btn:hover, .filter-btn.active { 
    background: var(--primary); color: var(--white); border-color: var(--primary); 
    box-shadow: 0 5px 15px rgba(15, 43, 76, 0.2);
}

/* --- 6. ÜRÜN KARTLARI (GRID) --- */
.product-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); 
    gap: 30px; 
}
.product-loader {
    text-align: center;
    padding: 18px 0 4px;
    color: var(--text-muted);
    font-weight: 600;
}

.product-card {
    background: var(--white); border-radius: 12px; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    overflow: hidden; transition: all 0.3s ease; 
    display: flex; flex-direction: column; 
    border: 1px solid transparent;
    scroll-margin-top: 140px;
}

/* Vurgulama Animasyonu */
@keyframes flashHighlight {
    0% { background-color: rgba(230, 126, 34, 0.2); border-color: var(--accent); transform: scale(1.03); }
    50% { background-color: rgba(230, 126, 34, 0.1); }
    100% { background-color: white; border-color: transparent; transform: scale(1); }
}
.highlight-product { animation: flashHighlight 2s ease-out; box-shadow: 0 0 25px rgba(230, 126, 34, 0.3); }

.product-card:hover { 
    transform: translateY(-8px); 
    box-shadow: 0 20px 40px rgba(0,0,0,0.1); 
    border-color: rgba(230, 126, 34, 0.3); 
}

.card-img { 
    height: 220px; background: #fff; padding: 20px; position: relative; 
    display: flex; align-items: center; justify-content: center;
    border-bottom: 1px solid #f0f0f0;
}
.card-img img { max-height: 100%; transition: transform 0.5s; }
.product-card:hover .card-img img { transform: scale(1.1); }

.badge { 
    position: absolute; top: 15px; left: 15px; 
    background: var(--success); color: white; padding: 4px 10px; 
    font-size: 0.7rem; border-radius: 4px; font-weight: 700; z-index: 2;
}
.badge--out {
    background: #ef4444;
}

.card-body { padding: 20px; display: flex; flex-direction: column; flex-grow: 1; }
.card-code { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 5px; font-family: monospace; }
.card-title { 
    font-size: 1.1rem; color: var(--primary); margin-bottom: 15px; 
    font-weight: 700; line-height: 1.3;
}

.specs-table { width: 100%; font-size: 0.85rem; margin-bottom: 20px; color: var(--text-muted); }
.specs-table td { padding: 5px 0; border-bottom: 1px solid #eee; }
.specs-table td:first-child { font-weight: 600; color: var(--text-main); width: 40%; }

.btn-card-wa {
    margin-top: auto; width: 100%; padding: 12px; 
    border: 1px solid var(--success); color: var(--success); 
    background: transparent; border-radius: 8px; font-weight: 600;
    transition: 0.3s; font-size: 0.95rem; display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-card-wa:hover { background: var(--success); color: white; }

/* --- 7. FOOTER --- */
footer { background: var(--primary); color: rgba(255,255,255,0.7); margin-top: auto; }

/* Yükseklik Azaltıldı (Padding 25px) */
.footer-top { padding: 25px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }

.footer-grid { 
    display: flex; 
    justify-content: space-between; 
    align-items: flex-start; /* İçerikler yukarı hizalı */
    gap: 30px;
}

/* Sol Taraf (Şirket Bilgisi) */
.footer-left { text-align: left; max-width: 450px; }

/* Sağ Taraf (İletişim) */
.footer-right { text-align: right; }

.footer-col h4 { color: var(--white); margin-bottom: 15px; font-size: 1.1rem; }

/* İletişim Listesi */
.contact-list { list-style: none; }
.contact-list li { 
    margin-bottom: 8px; 
    font-size: 0.9rem; 
    color: #bdc3c7;
    display: flex; 
    align-items: center; 
    justify-content: flex-end; /* Sağa yasla */
    gap: 10px; 
}
.contact-list li a:hover { color: var(--accent); }
.contact-list li i { color: var(--accent); width: 15px; text-align: center; }

.footer-bottom { padding: 15px 0; text-align: center; font-size: 0.8rem; background: rgba(0,0,0,0.2); }

/* Sticky WA */
.sticky-wa { position: fixed; bottom: 30px; right: 30px; background: var(--success); color: white; width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 32px; box-shadow: 0 5px 20px rgba(37, 211, 102, 0.5); z-index: 2000; transition: transform 0.3s; }
.sticky-wa:hover { transform: scale(1.1) rotate(10deg); }


/* --- 8. RESPONSIVE MEDYA SORGULARI --- */
@media (max-width: 992px) {
    .hero h1 { font-size: 2.8rem; }
}

@media (max-width: 768px) {
    .top-bar { display: none; }
    
    .header-main { 
        padding: 15px 20px; 
        flex-wrap: wrap; 
    }
    
    .logo { font-size: 1.4rem; }
    .logo img { max-height: 40px; }
    
    .header-actions { display: none; }
    
    .search-wrapper { 
        order: 3; width: 100%; max-width: none; margin-top: 15px; 
    }

    .hero { height: auto; padding: 60px 20px; }
    .hero h1 { font-size: 2rem; }
    .btn-whatsapp-hero { width: 100%; justify-content: center; }
    .hero-nav { width: 36px; height: 36px; font-size: 1.2rem; }
    
    .product-grid { grid-template-columns: 1fr; }
    
    /* Mobil Footer Düzeni */
    .footer-grid { 
        flex-direction: column; 
        align-items: center; 
        text-align: center; 
        gap: 30px; 
    }
    
    .footer-left { text-align: center; max-width: 100%; }
    .footer-right { text-align: center; width: 100%; }
    .footer-right h4 { text-align: center; }
    
    /* Mobilde listeyi ortala */
    .contact-list li { justify-content: center; } 
}
