/* ==========================================
   AntalyaCar - Page Styles (Light Theme)
   ========================================== */

.page-section { padding-top: calc(var(--header-height) + var(--space-10)); }

.section-header { text-align: center; margin-bottom: var(--space-12); }

.section-header h2 {
    font-size: var(--font-size-3xl);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.section-header p {
    color: var(--text-secondary);
    font-size: var(--font-size-lg);
    max-width: 520px;
    margin: 0 auto;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    background: var(--color-primary-50);
    color: var(--color-primary);
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--space-4);
}

/* ============ HOME PAGE ============ */
.hero {
    position: relative;
    min-height: 88vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: var(--header-height);
    background: var(--bg-hero);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg-pattern {
    position: absolute;
    right: -100px;
    top: 50%;
    transform: translateY(-50%);
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--color-primary-50) 0%, transparent 70%);
    z-index: 0;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-8);
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 620px;
}

.hero-banner-container {
    flex: 1;
    max-width: 500px;
    animation: slide-up 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
    opacity: 0;
}

.hero-banner-card {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: var(--radius-2xl);
    padding: var(--space-3);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    transform: rotate(1deg);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.hero-banner-card:hover {
    transform: rotate(0deg) scale(1.02);
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.12);
}

.hero-banner-img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-xl);
    display: block;
    object-fit: cover;
    aspect-ratio: 1 / 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: var(--color-primary-50);
    border: 1px solid var(--color-primary-100);
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: var(--space-6);
    animation: slide-up 0.5s ease forwards;
}

.hero h1 {
    font-size: var(--font-size-5xl);
    font-weight: 900;
    line-height: 1.12;
    margin-bottom: var(--space-5);
    color: var(--text-primary);
    letter-spacing: -1px;
    animation: slide-up 0.5s ease 0.1s forwards;
    opacity: 0;
}

.hero h1 .highlight { color: var(--color-primary); }

.hero-description {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-8);
    animation: slide-up 0.5s ease 0.2s forwards;
    opacity: 0;
    max-width: 480px;
}

.hero-actions {
    display: flex;
    gap: var(--space-3);
    animation: slide-up 0.5s ease 0.3s forwards;
    opacity: 0;
}

.hero-stats {
    display: flex;
    gap: var(--space-10);
    margin-top: var(--space-12);
    animation: slide-up 0.5s ease 0.4s forwards;
    opacity: 0;
}

.hero-stat-value {
    font-size: var(--font-size-3xl);
    font-weight: 800;
    color: var(--text-primary);
}

.hero-stat-label {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    margin-top: 2px;
}

/* Hero Search */
.hero-search {
    position: relative;
    z-index: 2;
    margin-top: -40px;
    margin-bottom: var(--space-16);
}

/* Featured Section */
.featured-section { padding: var(--space-16) 0; }

.vehicles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: var(--space-6);
}

.vendors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: var(--space-6);
}

/* How it works */
.how-it-works {
    padding: var(--space-20) 0;
    background: var(--bg-secondary);
    border-radius: var(--radius-2xl);
    margin: 0 var(--space-6);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
}

.step-card {
    text-align: center;
    padding: var(--space-6) var(--space-4);
}

.step-number {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-lg);
    background: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-xl);
    font-weight: 800;
    color: white;
    margin: 0 auto var(--space-4);
}

.step-card h3 {
    font-size: var(--font-size-base);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.step-card p {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    line-height: 1.7;
}

/* CTA Section */
.cta-section { padding: var(--space-16) 0; }

.cta-card {
    background: var(--color-primary);
    border-radius: var(--radius-2xl);
    padding: var(--space-16) var(--space-10);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    right: -80px;
    top: -80px;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
}

.cta-card::after {
    content: '';
    position: absolute;
    left: -60px;
    bottom: -60px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
}

.cta-card h2 {
    font-size: var(--font-size-3xl);
    font-weight: 800;
    color: white;
    margin-bottom: var(--space-3);
    position: relative;
}

.cta-card p {
    font-size: var(--font-size-lg);
    color: rgba(255,255,255,0.85);
    margin-bottom: var(--space-8);
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.cta-card .btn {
    position: relative;
    background: white;
    color: var(--color-primary);
}

.cta-card .btn:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }

/* ============ VEHICLES PAGE ============ */
.vehicles-page {
    padding-top: calc(var(--header-height) + var(--space-8));
    min-height: 80vh;
}

.vehicles-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: var(--space-8);
}

.vehicles-sidebar {
    position: sticky;
    top: calc(var(--header-height) + var(--space-6));
    height: fit-content;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
}

.vehicles-sidebar h3 {
    font-size: var(--font-size-base);
    font-weight: 700;
    margin-bottom: var(--space-5);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.vehicles-sidebar h3 svg { color: var(--text-muted); }

.vehicles-main { min-width: 0; }

.vehicles-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-6);
    flex-wrap: wrap;
    gap: var(--space-4);
}

.vehicles-count { font-size: var(--font-size-sm); color: var(--text-secondary); }
.vehicles-count strong { color: var(--text-primary); }

.vehicles-sort {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.vehicles-sort label { font-size: var(--font-size-sm); color: var(--text-secondary); white-space: nowrap; }

/* ============ VEHICLE DETAIL ============ */
.vehicle-detail-page {
    padding-top: calc(var(--header-height) + var(--space-6));
    min-height: 80vh;
}

.vehicle-detail-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: var(--space-8);
    align-items: start;
}

.vehicle-detail-breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-5);
    font-size: var(--font-size-sm);
    color: var(--text-muted);
}

.vehicle-detail-breadcrumb a { color: var(--text-secondary); }
.vehicle-detail-breadcrumb a:hover { color: var(--color-primary); }

.vehicle-detail-title {
    font-size: var(--font-size-4xl);
    font-weight: 800;
    margin-bottom: 4px;
    letter-spacing: -0.5px;
}

.vehicle-detail-subtitle {
    color: var(--text-secondary);
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-6);
}

.vehicle-detail-features {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: var(--space-4);
    margin: var(--space-6) 0;
    padding: var(--space-5);
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
}

.detail-feature {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.detail-feature-icon { color: var(--color-primary); flex-shrink: 0; }
.detail-feature-icon svg { width: 20px; height: 20px; }

.detail-feature-label { font-size: var(--font-size-xs); color: var(--text-muted); }
.detail-feature-value { font-weight: 600; font-size: var(--font-size-sm); }

/* Booking Card */
.booking-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    position: sticky;
    top: calc(var(--header-height) + var(--space-6));
    box-shadow: var(--shadow-sm);
}

.booking-card-price {
    text-align: center;
    margin-bottom: var(--space-5);
    padding-bottom: var(--space-5);
    border-bottom: 1px solid var(--border-color);
}

.booking-price-main {
    font-size: var(--font-size-4xl);
    font-weight: 900;
    color: var(--color-primary);
}

.booking-price-period { color: var(--text-muted); font-size: var(--font-size-sm); }

.booking-vendor {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4);
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-4);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.booking-vendor:hover { background: var(--bg-tertiary); }

.booking-vendor-logo {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: white;
    flex-shrink: 0;
}

.booking-vendor-info h4 { font-weight: 700; font-size: var(--font-size-sm); }
.booking-vendor-info p { font-size: var(--font-size-xs); color: var(--text-muted); }

.booking-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.booking-actions .btn { width: 100%; justify-content: center; }

/* ============ VENDOR PROFILE ============ */
.vendor-profile-page {
    padding-top: calc(var(--header-height) + var(--space-6));
    min-height: 80vh;
}

.vendor-profile-header {
    display: flex;
    align-items: center;
    gap: var(--space-8);
    margin-bottom: var(--space-10);
    padding: var(--space-8);
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
}

.vendor-profile-logo {
    width: 88px;
    height: 88px;
    border-radius: var(--radius-lg);
    background: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    font-weight: 900;
    color: white;
    flex-shrink: 0;
}

.vendor-profile-info h1 {
    font-size: var(--font-size-2xl);
    font-weight: 800;
    margin-bottom: var(--space-2);
}

.vendor-profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    margin-bottom: var(--space-3);
}

.vendor-profile-meta span { display: flex; align-items: center; gap: 4px; }
.vendor-profile-meta svg { width: 14px; height: 14px; }

/* ============ AUTH PAGES ============ */
.auth-page {
    padding-top: calc(var(--header-height) + var(--space-10));
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
}

.auth-card {
    width: 100%;
    max-width: 460px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: var(--space-10);
    box-shadow: var(--shadow-md);
}

.auth-card h1 {
    font-size: var(--font-size-2xl);
    font-weight: 800;
    text-align: center;
    margin-bottom: var(--space-2);
}

.auth-subtitle { text-align: center; color: var(--text-secondary); margin-bottom: var(--space-8); font-size: var(--font-size-sm); }

.auth-footer {
    text-align: center;
    margin-top: var(--space-6);
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.auth-footer a { color: var(--color-primary); font-weight: 600; }
.auth-footer a:hover { text-decoration: underline; }

.demo-box {
    margin-top: var(--space-6);
    padding: var(--space-4);
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

.demo-box strong { color: var(--text-secondary); }

/* ============ PANEL ============ */
.panel-page {
    padding-top: calc(var(--header-height) + var(--space-6));
    min-height: 100vh;
    background: var(--bg-secondary);
}

.panel-layout {
    display: grid;
    grid-template-columns: var(--sidebar-width) 1fr;
    gap: var(--space-6);
    min-height: calc(100vh - var(--header-height));
}

.panel-sidebar {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    height: fit-content;
    position: sticky;
    top: calc(var(--header-height) + var(--space-6));
}

.panel-sidebar-header {
    text-align: center;
    padding-bottom: var(--space-5);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: var(--space-4);
}

.panel-sidebar-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    margin: 0 auto var(--space-3);
}

.panel-sidebar-header h3 { font-size: var(--font-size-base); font-weight: 700; }
.panel-sidebar-header p { font-size: var(--font-size-sm); color: var(--text-muted); }

.panel-nav { display: flex; flex-direction: column; gap: 2px; }

.panel-nav-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: 10px var(--space-4);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.panel-nav-item svg { width: 18px; height: 18px; flex-shrink: 0; }
.panel-nav-item:hover { background: var(--bg-secondary); color: var(--text-primary); }
.panel-nav-item.active { background: var(--color-primary-50); color: var(--color-primary); font-weight: 600; }

.panel-content { min-width: 0; }

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-6);
}

.panel-header h1 { font-size: var(--font-size-2xl); font-weight: 800; }

/* Dashboard Stats */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: var(--space-4);
    margin-bottom: var(--space-8);
}

/* Panel Vehicle List */
.panel-vehicle-list { display: flex; flex-direction: column; gap: var(--space-3); }

.panel-vehicle-item {
    display: flex;
    align-items: center;
    gap: var(--space-5);
    padding: var(--space-4);
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
}

.panel-vehicle-item:hover { border-color: var(--border-color-hover); box-shadow: var(--shadow-sm); }

.panel-vehicle-image {
    width: 110px;
    height: 72px;
    border-radius: var(--radius-md);
    background: var(--bg-tertiary);
    overflow: hidden;
    flex-shrink: 0;
}

.panel-vehicle-image img, .panel-vehicle-image svg { width: 100%; height: 100%; object-fit: cover; }

.panel-vehicle-info { flex: 1; min-width: 0; }
.panel-vehicle-info h3 { font-size: var(--font-size-sm); font-weight: 700; margin-bottom: 2px; }

.panel-vehicle-price { font-weight: 700; color: var(--color-primary); white-space: nowrap; font-size: var(--font-size-sm); }

.panel-vehicle-actions { display: flex; gap: var(--space-1); }

/* ============ ADMIN ============ */
.admin-page {
    padding-top: calc(var(--header-height) + var(--space-6));
    min-height: 100vh;
    background: var(--bg-secondary);
}

.admin-vendor-row {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.admin-vendor-logo {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-md);
    background: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    font-size: var(--font-size-xs);
    flex-shrink: 0;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
    .vehicles-layout { grid-template-columns: 1fr; }
    .vehicles-sidebar { position: static; display: none; }
    .vehicles-sidebar.show-mobile { display: block; }
    .vehicle-detail-layout { grid-template-columns: 1fr; }
    .booking-card { position: static; }
    .panel-layout { grid-template-columns: 1fr; }
    .panel-sidebar { position: static; }
    .hero h1 { font-size: var(--font-size-4xl); }
    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: var(--space-6);
        padding-bottom: var(--space-10);
    }
    .hero-content {
        max-width: 100% !important;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .hero-banner-container {
        max-width: 440px;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .vehicles-grid { grid-template-columns: 1fr; }
    .vendors-grid { grid-template-columns: 1fr; }
    .steps-grid { grid-template-columns: 1fr 1fr; }
    .hero-actions { flex-direction: column; }
    .hero-stats { flex-wrap: wrap; gap: var(--space-6); }
    .vendor-profile-header { flex-direction: column; text-align: center; }
    .vendor-profile-meta { justify-content: center; }
    .dashboard-stats { grid-template-columns: 1fr 1fr; }
    .panel-vehicle-item { flex-direction: column; align-items: stretch; }
    .panel-vehicle-image { width: 100%; height: 140px; }
    .how-it-works { margin: 0; border-radius: 0; }
}

@media (max-width: 480px) {
    .steps-grid { grid-template-columns: 1fr; }
    .dashboard-stats { grid-template-columns: 1fr; }
}

/* ==========================================
   CUSTOMER SEARCH PAGE STYLES
   ========================================== */
.customer-search-page {
    padding-top: calc(var(--header-height) + var(--space-10));
    min-height: 80vh;
}

.customer-search-box {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    box-shadow: var(--shadow-md);
    margin-bottom: var(--space-6);
}

.customer-report {
    margin-top: var(--space-6);
}

.customer-profile-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: var(--space-6);
}

.customer-profile-header {
    padding: var(--space-6);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-4);
}

.customer-profile-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
}

.customer-profile-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: var(--space-4);
    padding: var(--space-5);
    border-top: 1px solid var(--border-color);
}

.customer-stat-item {
    text-align: center;
}

.customer-stat-value {
    font-size: var(--font-size-2xl);
    font-weight: 800;
    color: var(--text-primary);
}

.customer-stat-label {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
}

.bl-entry-card {
    background: white;
    border: 1px solid #fecaca;
    border-radius: var(--radius-md);
    padding: var(--space-4);
    margin-bottom: var(--space-3);
}

.customer-details-box {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--space-4);
    margin-top: var(--space-4);
}

.customer-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-3);
    font-size: var(--font-size-xs);
}

.customer-not-found {
    text-align: center;
    padding: var(--space-10);
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px dashed var(--border-color);
    margin-top: var(--space-6);
}

