/**
 * ================================================================
 * CARDS.CSS - CORRECTED VERSION (NO DUPLICATES)
 * ================================================================
 * Only card-specific CSS that's NOT in theme.css
 * 
 * Files consolidated:
 * 1. BrandsGridCard.php (92 lines)
 * 2. CarCard.php (147 lines)
 * 3. SearchCard.php (614 lines)
 *
 * Total: 853 lines
 * 
 * ⚠️ REMOVED: stats.php and testimonial.php 
 * (Already in theme.css as .meb-stats-section and .meb-testimonials-section)
 * ================================================================
 */

/* ================================================================
   BRANDS GRID CARD - BrandsGridCard.php
   Used on: /en/brands page
   ================================================================ */
.brands-grid-section {
    padding: 60px 0;
    background: #0f172a;
    min-height: 400px;
}

.brands-grid-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
}

.brand-card {
    background: #1e293b;
    padding: 30px;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    border: 1px solid rgba(201,162,39,0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.brand-card:hover {
    transform: translateY(-5px);
    border-color: #c9a227;
    box-shadow: 0 10px 30px rgba(201,162,39,0.2);
}

.brand-image {
    height: 100px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.brand-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.brand-letter {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #c9a227, #e0b840);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: bold;
    color: #0f172a;
}

.brand-name {
    font-family: 'Cinzel', serif;
    font-size: 22px;
    color: #c9a227;
    margin-bottom: 10px;
    font-weight: 600;
}

.brand-models {
    color: #94a3b8;
    font-size: 14px;
    margin-bottom: 8px;
}

.brand-country {
    color: #64748b;
    font-size: 13px;
    margin-bottom: 15px;
}

.brand-link {
    color: #c9a227;
    font-size: 14px;
    font-weight: 600;
    margin-top: auto;
}

@media (max-width: 768px) {
    .brands-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }
    .brand-card {
        padding: 25px;
    }
}

/* ================================================================
   CAR CARD - CarCard.php
   Used on: Brand pages, home page
   ================================================================ */
.cars-section {
    padding: 60px 0;
    background: #0f172a;
}

.cars-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-subtitle {
    color: #c9a227;
    font-size: 18px;
    font-weight: 600;
}

.cars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.car-card {
    background: #1e293b;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(201, 162, 39, 0.1);
    display: flex;
    flex-direction: column;
}

.car-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(201, 162, 39, 0.2);
    border-color: #c9a227;
}

.car-image {
    position: relative;
    height: 220px;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.car-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.car-image-placeholder {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #c9a227, #e0b840);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: bold;
    color: #0f172a;
}

.car-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(201, 162, 39, 0.9);
    color: #0f172a;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.car-content {
    padding: 20px;
    flex: 1;
}

.car-name {
    font-family: 'Cinzel', serif;
    font-size: 20px;
    color: #c9a227;
    margin-bottom: 12px;
    font-weight: 600;
}

.car-price {
    margin-bottom: 15px;
}

.price-amount {
    color: #10b981;
    font-size: 28px;
    font-weight: bold;
}

.price-period {
    color: #64748b;
    font-size: 14px;
}

.car-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.spec {
    color: #94a3b8;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.spec svg {
    flex-shrink: 0;
}

.car-availability {
    color: #10b981;
    font-size: 13px;
    font-weight: 600;
}

.car-footer {
    padding: 0 20px 20px 20px;
}

.btn-view-details {
    display: block;
    text-align: center;
    background: #c9a227;
    color: #0f172a;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-view-details:hover {
    background: #e0b840;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .cars-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }
    .car-specs {
        grid-template-columns: 1fr;
    }
}

/* ================================================================
   SEARCH CARD - SearchCard.php (614 lines)
   Used on: Home page, search pages
   ================================================================ */
.meb-search-section {
    padding: 50px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
}

.meb-progress-bar {
    max-width: 1200px;
    margin: 0 auto 20px;
    background: rgba(255,255,255,0.2);
    border-radius: 50px;
    padding: 4px;
    backdrop-filter: blur(10px);
}
.meb-progress-fill {
    height: 8px;
    background: linear-gradient(90deg, #00f260, #0575e6);
    border-radius: 50px;
    width: 0%;
    transition: width 0.5s ease;
}
.meb-progress-text {
    text-align: center;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    margin-top: 8px;
}

.meb-search-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 1200px;
    margin: 0 auto 40px;
}

.meb-search-main {
    position: relative;
    margin-bottom: 30px;
}
.meb-search-input-group {
    display: flex;
    align-items: center;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 50px;
    padding: 8px 16px;
    gap: 6px;
    min-height: 52px;
    transition: all 0.3s;
}
.meb-search-input-group:focus-within {
    background: #fff;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}
.meb-search-icon {
    color: #9ca3af;
    display: flex;
    margin-right: 8px;
    flex-shrink: 0;
}
.meb-search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 0;
    font-size: 16px;
    outline: none;
    min-width: 0;
}

.meb-voice-btn, .meb-image-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    color: #fff;
    font-size: 17px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    margin-left: 0;
    flex-shrink: 0;
}
.meb-voice-btn:hover, .meb-image-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}
.meb-voice-btn:active, .meb-image-btn:active {
    transform: scale(0.95);
}

.meb-voice-indicator {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    padding: 20px 30px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    z-index: 100;
}
.meb-pulse-ring {
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #ef4444;
    animation: pulse 1.5s infinite;
}
@keyframes pulse {
    0%, 100% { transform: translateY(-50%) scale(1); opacity: 1; }
    50% { transform: translateY(-50%) scale(1.3); opacity: 0.5; }
}
.meb-voice-text {
    margin-left: 40px;
    font-weight: 600;
    color: #1f2937;
}

.meb-search-clear {
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    font-size: 18px;
    padding: 6px;
    transition: color 0.2s;
    flex-shrink: 0;
}
.meb-search-clear:hover {
    color: #ef4444;
}

.meb-search-suggestions {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    max-height: 450px;
    overflow-y: auto;
    z-index: 1000;
}
.meb-suggestion-group {
    padding: 16px 0;
}
.meb-suggestion-group + .meb-suggestion-group {
    border-top: 1px solid #f3f4f6;
}
.meb-suggestion-label {
    padding: 0 24px 8px;
    font-size: 11px;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.meb-suggestion-item {
    padding: 14px 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: background 0.15s;
}
.meb-suggestion-item:hover {
    background: #f9fafb;
}
.meb-suggestion-icon {
    font-size: 28px;
    flex-shrink: 0;
}
.meb-suggestion-content {
    flex: 1;
    min-width: 0;
}
.meb-suggestion-title {
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 2px;
}
.meb-suggestion-meta {
    font-size: 13px;
    color: #6b7280;
}

.meb-search-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}
.meb-form-field {
    display: flex;
    flex-direction: column;
    position: relative;
}
.meb-form-field label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}
.meb-form-field select,
.meb-form-field input {
    padding: 14px 18px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 15px;
    background: #fff;
    transition: all 0.2s;
}
.meb-form-field select:disabled {
    background: #f3f4f6;
    color: #9ca3af;
    cursor: not-allowed;
}
.meb-form-field select:focus,
.meb-form-field input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.meb-smart-suggestion {
    margin-top: 6px;
    font-size: 12px;
    color: #667eea;
    font-weight: 500;
}

.meb-social-proof {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
    padding: 15px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-radius: 12px;
}
.meb-social-item {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
}

.meb-results-section {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    max-width: 1200px;
    margin: 0 auto;
}
.meb-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f3f4f6;
    flex-wrap: wrap;
    gap: 15px;
}
.meb-results-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}
.meb-results-count {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}
.meb-ar-btn {
    background: linear-gradient(135deg, #f093fb, #f5576c);
    border: none;
    color: #fff;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}
.meb-ar-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(245, 87, 108, 0.3);
}

.meb-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}
.meb-ghost-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
}
.meb-ghost-image {
    width: 100%;
    height: 200px;
    background: #e5e7eb;
}
.meb-ghost-content {
    padding: 20px;
}
.meb-ghost-title {
    height: 24px;
    background: #e5e7eb;
    border-radius: 4px;
    margin-bottom: 12px;
}
.meb-ghost-text {
    height: 16px;
    background: #e5e7eb;
    border-radius: 4px;
    margin-bottom: 12px;
    width: 70%;
}
.meb-ghost-price {
    height: 28px;
    background: #e5e7eb;
    border-radius: 4px;
    width: 50%;
}
.shimmer {
    background: linear-gradient(90deg, #e5e7eb 25%, #f3f4f6 50%, #e5e7eb 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}
@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.meb-car-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
}
.meb-car-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}
.meb-car-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.meb-car-info {
    padding: 20px;
}
.meb-car-name {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 8px 0;
}
.meb-car-type {
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 12px 0;
}
.meb-car-price {
    font-size: 24px;
    font-weight: 700;
    color: #667eea;
    margin: 0 0 8px 0;
}
.meb-car-location {
    font-size: 13px;
    color: #9ca3af;
}
.meb-quick-book-trigger {
    width: 100%;
    margin-top: 12px;
    padding: 10px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}
.meb-quick-book-trigger:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.meb-load-more-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    color: #fff;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}
.meb-load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.meb-achievement-popup {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    animation: slideIn 0.5s ease;
}
@keyframes slideIn {
    from { transform: translateX(400px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
.meb-achievement-content {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    padding: 25px 30px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    max-width: 350px;
}
.meb-achievement-icon {
    font-size: 48px;
    text-align: center;
    margin-bottom: 10px;
}
.meb-achievement-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    text-align: center;
}
.meb-achievement-desc {
    font-size: 14px;
    margin-bottom: 12px;
    text-align: center;
    opacity: 0.9;
}
.meb-achievement-reward {
    background: rgba(255,255,255,0.2);
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
}

.meb-quick-book-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.2);
    z-index: 9999;
    max-height: 70vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}
@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}
.meb-quick-book-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 2px solid #f3f4f6;
}
.meb-quick-book-header h4 {
    margin: 0;
    font-size: 20px;
    color: #1f2937;
}
.meb-panel-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #9ca3af;
    cursor: pointer;
    padding: 5px 10px;
}
.meb-quick-book-content {
    padding: 20px;
}
.meb-payment-options {
    display: flex;
    gap: 15px;
    padding: 20px;
    border-top: 2px solid #f3f4f6;
}
.meb-apple-pay-btn, .meb-google-pay-btn {
    flex: 1;
    padding: 15px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
}
.meb-apple-pay-btn {
    background: #000;
    color: #fff;
    border-color: #000;
}
.meb-apple-pay-btn:hover {
    background: #333;
}
.meb-google-pay-btn {
    background: #fff;
    color: #3c4043;
    border-color: #dadce0;
}
.meb-google-pay-btn:hover {
    background: #f8f9fa;
}
.apple-pay-icon {
    font-size: 20px;
}
.google-pay-icon {
    font-weight: 700;
    font-size: 18px;
}

.meb-context-banner {
    display: flex;
    gap: 20px;
    justify-content: center;
    padding: 15px;
    margin-top: 20px;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(59, 130, 246, 0.1));
    border-radius: 12px;
    border: 1px solid rgba(34, 197, 94, 0.2);
}
.meb-context-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
}
.meb-context-item span:first-child {
    font-size: 20px;
}

.meb-preloading-indicator {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 13px;
    z-index: 9998;
    display: none;
}
.meb-preloading-indicator.active {
    display: block;
}

@media (max-width: 768px) {
    .meb-search-card { padding: 24px; }
    .meb-search-form { grid-template-columns: 1fr; }
    .meb-results-section { padding: 24px; }
    .meb-results-grid { grid-template-columns: 1fr; }
    .meb-results-header { flex-direction: column; align-items: flex-start; }
    .meb-social-proof { flex-direction: column; gap: 10px; }
}

/* ================================================================
   END OF CARDS.CSS
   ================================================================
   Total: 853 lines (NO DUPLICATES)
   Stats + Testimonials CSS is in theme.css
   ================================================================ */