/*
Theme Name: Yerel Çilingir Uzmanı
Theme URI: https://yerelcilingir.com
Author: Yerel Çilingir Ekibi
Author URI: https://yerelcilingir.com
Description: Türkiye'nin her yerinde güvenilir çilingir hizmeti sunan profesyonel WordPress teması. Bölge bazlı çilingir listeleme, paket sistemi ve akıllı rotasyon yönetimi.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cilingir-tema
Tags: business, directory, professional, responsive
*/

/* ===========================
   GENEL STILLER
   =========================== */

:root {
    --primary-color: #FF6B35;
    --secondary-color: #1A2332;
    --dark-bg: #0F1419;
    --card-bg: #1E2936;
    --text-primary: #FFFFFF;
    --text-secondary: #A0AEC0;
    --border-color: #2D3748;
    --success-color: #48BB78;
    --warning-color: #F6AD55;
    --danger-color: #F56565;
    --sidebar-bg: #1A2332;
    --sidebar-width: 280px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* ===========================
   HEADER STILLER
   =========================== */

.site-header {
    background-color: var(--secondary-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
}

.site-logo svg {
    width: 28px;
    height: 28px;
    color: var(--primary-color);
}

.site-logo span {
    font-size: 20px;
    font-weight: 700;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: var(--text-primary);
}

.header-cta .btn-primary {
    background-color: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.header-cta .btn-primary:hover {
    background-color: #FF5722;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
}

/* ===========================
   SIDEBAR STILLER
   =========================== */

.location-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background-color: var(--sidebar-bg);
    z-index: 999;
    overflow-y: auto;
    padding: 20px;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-header h3 {
    font-size: 18px;
    font-weight: 600;
}

.location-search {
    margin-bottom: 20px;
}

.location-search input {
    width: 100%;
    padding: 10px 15px;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 14px;
}

.location-search input::placeholder {
    color: var(--text-secondary);
}

.location-list {
    list-style: none;
}

.location-item {
    margin-bottom: 5px;
}

.location-item > a,
.location-item > button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 12px;
    background-color: transparent;
    border: none;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: left;
}

.location-item > a:hover,
.location-item > button:hover {
    background-color: var(--card-bg);
    color: var(--text-primary);
}

.location-item.active > a,
.location-item.active > button {
    background-color: var(--primary-color);
    color: white;
}

.sub-locations {
    list-style: none;
    padding-left: 20px;
    margin-top: 5px;
    display: none;
}

.location-item.open > .sub-locations {
    display: block;
}

/* ===========================
   MAIN CONTENT
   =========================== */

.main-content {
    margin-left: var(--sidebar-width);
    min-height: calc(100vh - 70px);
    padding: 40px 20px;
}

.page-header {
    margin-bottom: 40px;
}

.page-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
}

.page-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
}

/* ===========================
   HERO SECTION
   =========================== */

.hero-section {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--dark-bg) 100%);
    padding: 100px 20px;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)" /></svg>');
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--primary-color);
    color: white;
    padding: 15px 35px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s;
}

.hero-cta:hover {
    background-color: #FF5722;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

/* ===========================
   FEATURES GRID
   =========================== */

.features-section {
    margin-bottom: 60px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-color);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 107, 53, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon svg {
    width: 28px;
    height: 28px;
    color: var(--primary-color);
}

.feature-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.feature-description {
    color: var(--text-secondary);
    font-size: 14px;
}

/* ===========================
   ILCE GRID
   =========================== */

.ilce-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 30px;
}

.ilce-card {
    background-color: var(--card-bg);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    text-align: center;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s;
}

.ilce-card:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(255, 107, 53, 0.3);
}

/* ===========================
   HEMEN ARA BUTTON
   =========================== */

.hemen-ara-btn {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.hemen-ara-btn:hover {
    background-color: #FF5722;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

/* ===========================
   FLOATING CALL BUTTON
   =========================== */

.floating-call-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #DC2626;
    color: white;
    padding: 15px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
    z-index: 998;
    transition: all 0.3s;
    animation: pulse 2s infinite;
}

.floating-call-btn:hover {
    background-color: #B91C1C;
    transform: scale(1.1);
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
    }
    50% {
        box-shadow: 0 6px 30px rgba(220, 38, 38, 0.6);
    }
}

/* ===========================
   FOOTER
   =========================== */

.site-footer {
    background-color: var(--secondary-color);
    padding: 40px 20px 20px;
    margin-left: var(--sidebar-width);
    border-top: 1px solid var(--border-color);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 10px;
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 14px;
}

/* ===========================
   RESPONSIVE
   =========================== */

@media (max-width: 768px) {
    .location-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s;
    }
    
    .location-sidebar.open {
        transform: translateX(0);
    }
    
    .main-content,
    .site-footer {
        margin-left: 0;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .main-nav {
        display: none;
    }
    
    .ilce-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}
