/*
Theme Name: Vehica Child
Description: Child theme for Vehica
Author: Abdo
Template: vehica
Version: 2.0.1
*/

/* ---  My Code  ---  */







/* ========================================
   PERFORMANCE OPTIMIZATIONS
   ======================================== */

/* Reduce animation duration for faster perceived performance */
* {
    animation-duration: 0.2s !important;
    transition-duration: 0.2s !important;
}

/* Optimize font loading */
body {
    font-display: swap;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* GPU acceleration for smoother animations */
.vehica-listing-card,
.vehicle-card,
.btn,
button {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

/* ========================================
   SIMPLIFIED HEADER DESIGN
   ======================================== */

/* Cleaner, minimal header */
.site-header {
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    padding: 15px 0;
}

/* Simplified navigation */
.main-navigation {
    font-weight: 500;
}

.main-navigation a {
    padding: 12px 18px;
    color: #333;
    transition: color 0.15s;
}

.main-navigation a:hover {
    color: var(--primary-color, #007bff);
}

/* Cleaner header buttons */
.header-button {
    border-radius: 6px;
    padding: 10px 24px;
    font-weight: 600;
    transition: all 0.15s;
}

/* ========================================
   SIMPLIFIED VEHICLE CARDS
   ======================================== */

/* Cleaner vehicle listing cards */
.vehica-listing-card,
.vehicle-card {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.15s;
    background: #fff;
    overflow: hidden;
}

.vehica-listing-card:hover,
.vehicle-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* Simplified card images */
.vehica-listing-card img,
.vehicle-card img {
    transition: transform 0.15s;
}

.vehica-listing-card:hover img,
.vehicle-card:hover img {
    transform: scale(1.03);
}

/* Cleaner card content */
.vehica-listing-card__content,
.vehicle-card__content {
    padding: 20px;
}

/* Simplified price display */
.vehica-listing-card__price,
.vehicle-card__price {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color, #007bff);
    margin-bottom: 10px;
}

/* ========================================
   SIMPLIFIED BUTTONS
   ======================================== */

/* Cleaner button design */
.btn,
button:not(.close),
input[type="submit"],
.vehica-button {
    border-radius: 6px;
    font-weight: 600;
    padding: 12px 28px;
    border: none;
    cursor: pointer;
    transition: all 0.15s;
    display: inline-block;
}

.btn-primary,
.vehica-button--primary {
    background: var(--primary-color, #007bff);
    color: #fff;
}

.btn-primary:hover,
.vehica-button--primary:hover {
    background: var(--primary-color-dark, #0056b3);
    transform: translateY(-1px);
}

/* Secondary buttons */
.btn-secondary,
.vehica-button--secondary {
    background: #f8f9fa;
    color: #333;
}

.btn-secondary:hover,
.vehica-button--secondary:hover {
    background: #e9ecef;
}

/* ========================================
   SIMPLIFIED SEARCH FORM
   ======================================== */

/* Cleaner search form */
.vehica-search-form {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    padding: 30px;
}

/* Simplified form fields */
.vehica-search-form input,
.vehica-search-form select {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 12px 16px;
    transition: border-color 0.15s;
}

.vehica-search-form input:focus,
.vehica-search-form select:focus {
    border-color: var(--primary-color, #007bff);
    outline: none;
}

/* ========================================
   SIMPLIFIED SINGLE LISTING PAGE
   ======================================== */

/* Cleaner listing header */
.vehica-single-listing__header {
    margin-bottom: 30px;
}

.vehica-single-listing__title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #1a1a1a;
}

/* Simplified gallery */
.vehica-gallery {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 30px;
}

/* Cleaner info sections */
.vehica-listing-section {
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.vehica-listing-section__title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #1a1a1a;
}

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

/* Cleaner footer */
.site-footer {
    background: #2c3e50;
    color: #fff;
    padding: 40px 0 20px;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.15s;
}

.site-footer a:hover {
    color: #fff;
}

/* ========================================
   SIMPLIFIED USER PANEL
   ======================================== */

/* Cleaner user panel */
.vehica-panel {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 25px;
}

.vehica-panel__menu {
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

/* ========================================
   SIMPLIFIED FORMS
   ======================================== */

/* General form improvements */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
textarea,
select {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 12px 16px;
    transition: border-color 0.15s;
    width: 100%;
    font-size: 15px;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
    border-color: var(--primary-color, #007bff);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

/* ========================================
   REMOVE UNNECESSARY ELEMENTS
   ======================================== */

/* Hide decorative elements for cleaner look */
.vehica-decoration,
.vehica-pattern {
    display: none !important;
}

/* Simplify borders */
.vehica-border-complex {
    border: 1px solid #e0e0e0 !important;
}

/* ========================================
   MOBILE RESPONSIVENESS
   ======================================== */

@media (max-width: 768px) {
    /* Simplified mobile header */
    .site-header {
        padding: 10px 0;
    }
    
    /* Smaller text on mobile */
    .vehica-single-listing__title {
        font-size: 24px;
    }
    
    /* Adjust card padding */
    .vehica-listing-card__content,
    .vehicle-card__content {
        padding: 15px;
    }
    
    /* Smaller buttons on mobile */
    .btn,
    button:not(.close),
    input[type="submit"],
    .vehica-button {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* ========================================
   PERFORMANCE: REDUCE MOTION FOR USERS WHO PREFER IT
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}