﻿/* ============================================================
   🏪 BAYI SAYFASI - KURUMSAL & MODERN TASARIM
   ============================================================
   - Geniş ekran optimizasyonu
   - Minimal padding/margin
   - Kurumsal renkler (Mavi, Gri, Beyaz)
   - Profesyonel tasarım
   ============================================================ */

/* CSS Variables - Kurumsal Palet */
:root {
    /* Kurumsal Renkler */
    --dealer-primary: #2c3e50; /* Koyu gri-mavi */
    --dealer-secondary: #3498db; /* Açık mavi */
    --dealer-accent: #34495e; /* Koyu gri */
    --dealer-light: #ecf0f1; /* Açık gri */
    --dealer-lighter: #f8f9fa; /* Çok açık gri */
    --dealer-text: #2c3e50; /* Koyu metin */
    --dealer-text-light: #7f8c8d; /* Açık metin */
    --dealer-white: #ffffff; /* Beyaz */
    --dealer-border: #bdc3c7; /* Hafif gri sınır */

    --dealer-transition: 0.3s ease;
    --dealer-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    --dealer-shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
    --dealer-radius: 6px;
}

/* ============================================================
   DEALER PAGE - ANA KAPSAYICI
   ============================================================ */
.dealer-page {
    margin: 0;
    padding: 0;
    width: 100%;
}

/* ============================================================
   HERO SECTION - BANNER
   ============================================================ */
.dealer-hero-section {
    position: relative;
    width: 100%;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--dealer-primary) 0%, var(--dealer-accent) 100%);
    color: var(--dealer-white);
    padding: 60px 0;
    margin: 0;
    overflow: hidden;
}

.dealer-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path d="M0,40 Q300,20 600,40 T1200,40 L1200,120 L0,120 Z" fill="%23ffffff" opacity="0.05"/></svg>') repeat-x;
    background-size: auto 100%;
    opacity: 0.1;
}

.dealer-hero-container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 30px;
    text-align: center;
}

.dealer-hero-content {
    animation: slideInUp 0.8s ease;
}

.dealer-hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    color: var(--dealer-white);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.dealer-hero-title {
    font-size: 52px;
    font-weight: 700;
    line-height: 1.2;
    margin: 20px 0;
    color: var(--dealer-white);
}

.dealer-gradient-text {
    background: linear-gradient(135deg, #ecf0f1 0%, #bdc3c7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dealer-hero-subtitle {
    font-size: 18px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 25px auto 40px;
}

.dealer-hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.dealer-hero-stat {
    text-align: center;
}

.dealer-stat-number {
    font-size: 36px;
    font-weight: 700;
    color: #ecf0f1;
    margin-bottom: 10px;
}

.dealer-stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

/* ============================================================
   KONTEYNER - GENİŞ EKRAN OPTİMİZASYONU
   ============================================================ */
.dealer-container {
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding: 0 30px;
}

/* ============================================================
   FİLTER SECTION
   ============================================================ */
.dealer-filter-section {
    background: var(--dealer-lighter);
    padding: 50px 0;
    border-bottom: 1px solid var(--dealer-light);
}

.dealer-filter-header {
    text-align: center;
    margin-bottom: 40px;
}

    .dealer-filter-header h2 {
        font-size: 32px;
        font-weight: 700;
        color: var(--dealer-primary);
        margin-bottom: 10px;
    }

    .dealer-filter-header p {
        font-size: 16px;
        color: var(--dealer-text-light);
    }

.dealer-filter-controls {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dealer-search-box {
    display: flex;
    background: var(--dealer-white);
    border: 1px solid var(--dealer-border);
    border-radius: var(--dealer-radius);
    overflow: hidden;
    box-shadow: var(--dealer-shadow);
}

.dealer-search-input {
    flex: 1;
    padding: 14px 20px;
    border: none;
    background: transparent;
    color: var(--dealer-text);
    font-size: 15px;
}

    .dealer-search-input::placeholder {
        color: var(--dealer-text-light);
    }

.dealer-search-clear {
    padding: 0 15px;
    border: none;
    background: transparent;
    color: var(--dealer-text-light);
    cursor: pointer;
    font-size: 18px;
    transition: color var(--dealer-transition);
}

    .dealer-search-clear:hover {
        color: var(--dealer-primary);
    }

.dealer-filter-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.dealer-filter-btn {
    padding: 10px 20px;
    border: 1px solid var(--dealer-border);
    background: var(--dealer-white);
    color: var(--dealer-text);
    border-radius: var(--dealer-radius);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all var(--dealer-transition);
}

    .dealer-filter-btn:hover {
        border-color: var(--dealer-secondary);
        color: var(--dealer-secondary);
        background: rgba(52, 152, 219, 0.05);
    }

    .dealer-filter-btn.active {
        background: var(--dealer-secondary);
        color: var(--dealer-white);
        border-color: var(--dealer-secondary);
    }

/* ============================================================
   SECTION HEADER
   ============================================================ */
.dealer-section-header {
    text-align: center;
    margin-bottom: 50px;
}

.dealer-section-badge {
    display: inline-block;
    background: var(--dealer-light);
    color: var(--dealer-secondary);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.dealer-section-header h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--dealer-primary);
    margin-bottom: 12px;
}

.dealer-section-header p {
    font-size: 16px;
    color: var(--dealer-text-light);
    line-height: 1.6;
}

/* ============================================================
   GRID SECTIONS
   ============================================================ */
.dealer-featured-section,
.dealer-grid-section,
.dealer-stats-section,
.dealer-benefits-section {
    padding: 60px 0;
}

.dealer-featured-section {
    background: var(--dealer-white);
    border-bottom: 1px solid var(--dealer-light);
}

.dealer-grid-section {
    background: var(--dealer-lighter);
    border-bottom: 1px solid var(--dealer-light);
}

.dealer-stats-section {
    background: var(--dealer-white);
    border-bottom: 1px solid var(--dealer-light);
}

.dealer-benefits-section {
    background: var(--dealer-lighter);
    border-bottom: 1px solid var(--dealer-light);
}

/* ============================================================
   DEALER GRID - KARTLAR
   ============================================================ */
.dealer-featured-grid,
.dealer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.dealer-card {
    background: var(--dealer-white);
    border: 1px solid var(--dealer-light);
    border-radius: var(--dealer-radius);
    overflow: hidden;
    transition: all var(--dealer-transition);
    box-shadow: var(--dealer-shadow);
    display: flex;
    flex-direction: column;
}

    .dealer-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--dealer-shadow-md);
        border-color: var(--dealer-secondary);
    }

.dealer-card-header {
    background: linear-gradient(135deg, var(--dealer-primary) 0%, var(--dealer-accent) 100%);
    color: var(--dealer-white);
    padding: 20px;
}

    .dealer-card-header h3 {
        font-size: 18px;
        font-weight: 700;
        margin: 0 0 8px 0;
    }

.dealer-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.25);
    color: var(--dealer-white);
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
}

.dealer-card-body {
    padding: 20px;
    flex: 1;
}

    .dealer-card-body p {
        font-size: 14px;
        color: var(--dealer-text-light);
        line-height: 1.6;
        margin: 0 0 10px 0;
    }

    .dealer-card-body strong {
        color: var(--dealer-primary);
        font-weight: 600;
    }

.dealer-card-footer {
    padding: 15px 20px;
    background: var(--dealer-lighter);
    border-top: 1px solid var(--dealer-light);
}

    .dealer-card-footer a {
        display: inline-block;
        background: var(--dealer-secondary);
        color: var(--dealer-white);
        padding: 8px 16px;
        border-radius: 4px;
        text-decoration: none;
        font-size: 13px;
        font-weight: 600;
        transition: all var(--dealer-transition);
    }

        .dealer-card-footer a:hover {
            background: var(--dealer-primary);
            text-decoration: none;
        }

/* ============================================================
   İSTATİSTİK KARTLARI
   ============================================================ */
.dealer-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.dealer-stat-card {
    background: var(--dealer-white);
    border: 1px solid var(--dealer-light);
    border-radius: var(--dealer-radius);
    padding: 30px;
    text-align: center;
    transition: all var(--dealer-transition);
}

    .dealer-stat-card:hover {
        border-color: var(--dealer-secondary);
        box-shadow: var(--dealer-shadow-md);
        transform: translateY(-3px);
    }

.dealer-stat-icon {
    font-size: 32px;
    margin-bottom: 15px;
}

.dealer-stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--dealer-primary);
    margin-bottom: 8px;
}

.dealer-stat-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--dealer-text);
    margin-bottom: 8px;
}

.dealer-stat-desc {
    font-size: 13px;
    color: var(--dealer-text-light);
    line-height: 1.5;
}

/* ============================================================
   FAYDA KARTLARI
   ============================================================ */
.dealer-benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.dealer-benefit-card {
    background: var(--dealer-white);
    border: 1px solid var(--dealer-light);
    border-radius: var(--dealer-radius);
    padding: 30px;
    transition: all var(--dealer-transition);
    text-align: center;
}

    .dealer-benefit-card:hover {
        border-color: var(--dealer-secondary);
        box-shadow: var(--dealer-shadow-md);
        transform: translateY(-5px);
    }

.dealer-benefit-icon {
    font-size: 36px;
    margin-bottom: 15px;
}

.dealer-benefit-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--dealer-primary);
    margin-bottom: 12px;
}

.dealer-benefit-card p {
    font-size: 14px;
    color: var(--dealer-text-light);
    line-height: 1.6;
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.dealer-cta-section {
    position: relative;
    background: linear-gradient(135deg, var(--dealer-primary) 0%, var(--dealer-accent) 100%);
    color: var(--dealer-white);
    padding: 80px 0;
    text-align: center;
    overflow: hidden;
}

.dealer-cta-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path d="M0,40 Q300,20 600,40 T1200,40 L1200,120 L0,120 Z" fill="%23ffffff" opacity="0.5"/></svg>');
}

.dealer-cta-content {
    position: relative;
    z-index: 2;
}

.dealer-cta-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.dealer-cta-title {
    font-size: 36px;
    font-weight: 700;
    margin: 20px 0;
    color: var(--dealer-white);
}

.dealer-cta-subtitle {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 15px auto 30px;
}

.dealer-cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 30px 0;
    flex-wrap: wrap;
}

.dealer-btn {
    padding: 12px 28px;
    border-radius: var(--dealer-radius);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: all var(--dealer-transition);
    border: 2px solid transparent;
    display: inline-block;
}

.dealer-btn-primary {
    background: var(--dealer-white);
    color: var(--dealer-primary);
}

    .dealer-btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        text-decoration: none;
    }

.dealer-btn-outline {
    background: transparent;
    color: var(--dealer-white);
    border-color: var(--dealer-white);
}

    .dealer-btn-outline:hover {
        background: rgba(255, 255, 255, 0.1);
        transform: translateY(-2px);
        text-decoration: none;
    }

.dealer-btn-lg {
    padding: 14px 32px;
    font-size: 16px;
}

.dealer-cta-contact-info {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.dealer-cta-info-item {
    font-size: 14px;
}

    .dealer-cta-info-item a {
        color: var(--dealer-white);
        text-decoration: none;
        transition: opacity var(--dealer-transition);
    }

        .dealer-cta-info-item a:hover {
            opacity: 0.8;
        }

/* ============================================================
   FAQ SECTION - ACCORDION
   ============================================================ */
.dealer-faq-section {
    background: var(--dealer-white);
    padding: 60px 0;
    border-bottom: 1px solid var(--dealer-light);
}

.dealer-faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.dealer-faq-item {
    background: var(--dealer-white);
    border: 1px solid var(--dealer-light);
    border-radius: var(--dealer-radius);
    overflow: hidden;
    transition: all var(--dealer-transition);
}

    .dealer-faq-item:hover {
        border-color: var(--dealer-secondary);
        box-shadow: var(--dealer-shadow-md);
    }

.dealer-faq-question {
    padding: 20px;
    background: var(--dealer-lighter);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all var(--dealer-transition);
    user-select: none;
}

    .dealer-faq-question:hover {
        background: rgba(52, 152, 219, 0.05);
    }

    .dealer-faq-question h4 {
        font-size: 15px;
        font-weight: 600;
        color: var(--dealer-primary);
        margin: 0;
        line-height: 1.4;
    }

    .dealer-faq-question::after {
        content: '+';
        font-size: 24px;
        color: var(--dealer-secondary);
        font-weight: 300;
        margin-left: 15px;
        flex-shrink: 0;
        transition: transform var(--dealer-transition);
    }

.dealer-faq-item.active .dealer-faq-question::after {
    transform: rotate(45deg);
}

.dealer-faq-answer {
    padding: 20px;
    max-height: 0;
    overflow: hidden;
    transition: all var(--dealer-transition);
    background: var(--dealer-white);
}

.dealer-faq-item.active .dealer-faq-answer {
    max-height: 500px;
    border-top: 1px solid var(--dealer-light);
}

.dealer-faq-answer p {
    font-size: 14px;
    color: var(--dealer-text-light);
    line-height: 1.6;
    margin: 0;
}

/* ============================================================
   LOADING STATE
   ============================================================ */
.dealer-loading {
    text-align: center;
    padding: 40px;
    color: var(--dealer-text-light);
}

    .dealer-loading p {
        font-size: 16px;
    }

/* ============================================================
   BOŞ STATE
   ============================================================ */
.dealer-no-results {
    grid-column: 1 / -1;
}

.dealer-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--dealer-text-light);
}

    .dealer-empty-state h3 {
        font-size: 20px;
        font-weight: 600;
        color: var(--dealer-primary);
        margin-bottom: 10px;
    }

    .dealer-empty-state p {
        font-size: 14px;
        margin-bottom: 20px;
    }

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */
@media (max-width: 1024px) {
    .dealer-hero-title {
        font-size: 42px;
    }

    .dealer-section-header h2 {
        font-size: 28px;
    }

    .dealer-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dealer-featured-grid,
    .dealer-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .dealer-container {
        padding: 0 20px;
    }

    .dealer-hero-section {
        min-height: 350px;
        padding: 40px 0;
    }

    .dealer-hero-title {
        font-size: 32px;
    }

    .dealer-hero-stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .dealer-filter-section,
    .dealer-featured-section,
    .dealer-grid-section,
    .dealer-stats-section,
    .dealer-benefits-section,
    .dealer-faq-section {
        padding: 40px 0;
    }

    .dealer-section-header h2 {
        font-size: 24px;
    }

    .dealer-stats-grid {
        grid-template-columns: 1fr;
    }

    .dealer-featured-grid,
    .dealer-grid {
        grid-template-columns: 1fr;
    }

    .dealer-filter-buttons {
        flex-direction: column;
    }

    .dealer-filter-btn {
        width: 100%;
    }

    .dealer-cta-buttons {
        flex-direction: column;
    }

    .dealer-btn {
        width: 100%;
        text-align: center;
    }

    .dealer-cta-title {
        font-size: 24px;
    }

    .dealer-faq-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .dealer-hero-container {
        padding: 0 15px;
    }

    .dealer-container {
        padding: 0 15px;
    }

    .dealer-hero-title {
        font-size: 24px;
    }

    .dealer-hero-subtitle {
        font-size: 14px;
    }

    .dealer-stat-number {
        font-size: 28px;
    }

    .dealer-cta-contact-info {
        flex-direction: column;
        gap: 10px;
    }
}

/* ============================================================
   ANİMASYONLAR
   ============================================================ */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}
