/**
 * Public Pages Styles
 * Consolidated styles for all public-facing pages
 *
 * @package ZeroDetail
 * @subpackage CSS Pages
 */

/* ==================== INDEX/HOME PAGE STYLES ==================== */

/* Hero Section */
.hero-section {
    text-align: center;
    padding: var(--space-16);
    background: linear-gradient(rgba(255,255,255,0.5), rgba(255,255,255,0.5)),
                url('../../../assets/images/hero-bg.png') no-repeat center/cover;
    border-radius: var(--radius-lg);
    margin: var(--space-8) 0;
}

.hero-section h1 {
    font-size: var(--font-3xl);
    margin-bottom: var(--space-4);
    color: var(--color-dark);
}

.hero-section p {
    font-size: var(--font-md);
    color: var(--color-dark);
    margin-bottom: var(--space-8);
}

/* Filters */
.filters {
    background: var(--bg-primary);
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: var(--space-8);
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.filters input,
.filters select {
    padding: var(--space-3);
    border: var(--border-default);
    border-radius: var(--radius-md);
    flex: 1;
    min-width: 200px;
    font-size: var(--font-base);
}

.filters input:focus,
.filters select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

/* Vehicle Grid */
.vehicle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-8);
    margin-bottom: var(--space-12);
}

.vehicle-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    border: 1px solid #e0e0e0;
    height: 100%;
}

.vehicle-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.vehicle-image {
    height: 200px;
    overflow: hidden;
    position: relative;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vehicle-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-base);
}

.vehicle-card:hover .vehicle-image img {
    transform: scale(1.05);
}

.vehicle-price {
    font-size: var(--font-lg);
    font-weight: var(--font-bold);
    color: var(--color-primary);
    margin-bottom: var(--space-4);
}

.vehicle-info {
    padding: var(--space-6);
}

.vehicle-title {
    font-size: var(--font-md);
    font-weight: var(--font-semibold);
    margin-bottom: var(--space-2);
    color: var(--color-dark);
}

.vehicle-details {
    display: flex;
    justify-content: space-between;
    color: var(--text-secondary);
    font-size: var(--font-sm);
    margin-bottom: var(--space-4);
}

.vehicle-meta {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.vehicle-meta i {
    width: 20px;
    text-align: center;
}

.vehicle-features {
    font-size: 0.9rem;
    color: #495057;
}

.vehicle-actions {
    display: flex;
    gap: var(--space-2);
}

/* Section Headings */
.section-heading {
    margin-bottom: var(--space-6);
    color: var(--color-dark);
    font-size: var(--font-xl);
    font-weight: var(--font-semibold);
}

.empty-state {
    text-align: center;
    padding: var(--space-12);
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    color: var(--text-secondary);
}

/* ==================== BROWSE PAGE STYLES ==================== */

/* Certification Badge */
.certification-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(40,167,69,0.9);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    display: inline-block;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: bold;
    margin-right: 10px;
}

.featured-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #ffc107;
    color: #212529;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Filter Sidebar */
.filter-sidebar {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.price-slider .slider-values {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

/* Pagination */
.pagination .page-item.active .page-link {
    background-color: #007bff;
    border-color: #007bff;
}

/* ==================== VEHICLE DETAILS PAGE STYLES ==================== */

/* Vehicle Hero */
.vehicle-hero {
    background: #f8f9fa;
    padding: 30px 0;
    border-bottom: 1px solid #e0e0e0;
}

/* Photo Gallery */
.photo-gallery {
    margin-top: 20px;
}

.photo-thumb {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: transform 0.3s;
}

.photo-thumb:hover {
    transform: scale(1.02);
}

/* Specs Table */
.specs-table th {
    width: 40%;
    background: #f8f9fa;
}

/* KYC Gated Content */
.kyc-gated {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
}

/* Lead Form */
.lead-form {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-top: 30px;
}

/* Score Circle */
.score-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 20px;
}

.score-excellent {
    background: #d4edda;
    color: #155724;
}

.score-good {
    background: #fff3cd;
    color: #856404;
}

.score-fair {
    background: #f8d7da;
    color: #721c24;
}

/* Tabs */
.tab-pane {
    padding: 20px 0;
}

.nav-tabs .nav-link.active {
    border-bottom: 3px solid #007bff;
    font-weight: bold;
}

/* ==================== ABOUT PAGE STYLES ==================== */

/* Step Badge */
.step-badge {
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    line-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Team Images */
.team-img {
    width: 120px;
    height: 120px;
    object-fit: cover;
}

/* Stats Display */
.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
}

/* Icon Sizes */
.icon-3x {
    font-size: 3rem;
}

/* Value Cards */
.value-card {
    transition: transform 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
}

/* CTA Card */
.cta-card {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark, #0056b3) 100%);
}

/* ==================== CONTACT PAGE STYLES ==================== */

/* Contact Hero */
.contact-hero {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 3rem 0;
    margin-bottom: 2rem;
}

/* Contact Card */
.contact-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* Icon Containers */
.contact-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(var(--color-primary-rgb, 0, 123, 255), 0.1);
}

/* Form Styles */
#contactForm .form-control {
    border-radius: 0.375rem;
    padding: 0.75rem;
}

#contactForm .form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 0.2rem rgba(var(--color-primary-rgb, 0, 123, 255), 0.25);
}

/* FAQ Accordion */
#faqAccordion .card {
    border: 1px solid #dee2e6;
    margin-bottom: 0.5rem;
}

#faqAccordion .card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

#faqAccordion .btn-link {
    color: var(--color-text, #333);
    text-decoration: none;
    font-weight: 500;
}

#faqAccordion .btn-link:hover {
    color: var(--color-primary);
    text-decoration: none;
}

/* Business Hours */
.business-hours {
    font-size: 0.9rem;
}

/* Contact Options Grid */
.contact-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

/* ==================== RESPONSIVE STYLES ==================== */

@media (max-width: 768px) {
    .hero-section {
        padding: var(--space-8);
    }

    .hero-section h1 {
        font-size: var(--font-2xl);
    }

    .hero-section p {
        font-size: var(--font-base);
    }

    .filters {
        flex-direction: column;
    }

    .filters input,
    .filters select {
        min-width: 100%;
    }

    .vehicle-grid {
        grid-template-columns: 1fr;
    }
}
