/* ========================================
   CUSTOMER ACCOUNT PAGE - COMPLETE CSS
   Save as: public/css/customerAccount.css
   ======================================== */

/* CSS Variables */
:root {
    --fav-primary-orange: #ff7a00;
    --fav-orange-light: #ff9533;
    --fav-orange-dark: #e66a00;
    --fav-white: #ffffff;
    --fav-dark: #0a0a0a;
    --fav-dark-light: #1a1a1a;
    --fav-dark-card: #181818;
    --fav-gradient-primary: linear-gradient(135deg, #ff7a00, #ff9533);
    --fav-gradient-card: linear-gradient(145deg, rgba(24, 24, 24, 0.95), rgba(34, 34, 34, 0.85));
    --fav-shadow-card: 0 20px 60px rgba(0, 0, 0, 0.4);
    --fav-shadow-glow: 0 0 40px rgba(255, 122, 0, 0.6);
    --fav-blur-glass: blur(25px);
    --fav-border-radius: 20px;
    --fav-transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --fav-transition-fast: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Main Wrapper */
.user-profile-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
    background: linear-gradient(135deg, var(--fav-dark) 0%, var(--fav-dark-light) 50%, var(--fav-dark) 100%);
    min-height: 100vh;
    color: var(--fav-white);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 13px;
    line-height: 1.6;
}

/* ========================================
   USER INFO CARD
   ======================================== */
.user-info-card {
    margin-top: 70px;
    background: var(--fav-gradient-card);
    border-radius: var(--fav-border-radius);
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 122, 0, 0.2);
    backdrop-filter: var(--fav-blur-glass);
    box-shadow: var(--fav-shadow-card);
    display: flex;
    align-items: center;
    gap: 30px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.user-avatar-section {
    flex-shrink: 0;
}

.user-avatar {
    margin-left: 27px;
    width: 80px;
    height: 80px;
    background: var(--fav-gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--fav-white);
    box-shadow: 0 10px 30px rgba(255, 122, 0, 0.3);
}

.change-photo-btn {
    background: transparent;
    border: 2px solid var(--fav-primary-orange);
    color: var(--fav-primary-orange);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 13px;
    cursor: pointer;
    margin-top: 10px;
    transition: var(--fav-transition-fast);
}

.change-photo-btn:hover {
    background: var(--fav-primary-orange);
    color: var(--fav-white);
}

.user-basic-info {
    flex-grow: 1;
}

.user-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--fav-white);
    margin-bottom: 15px;
}

.user-details p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-details i {
    color: var(--fav-primary-orange);
    width: 16px;
}

/* ========================================
   EDITABLE FIELDS
   ======================================== */
.editable-field {
    position: relative;
    display: flex;
    margin-bottom: 8px;
}

.editable-field p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.edit-btn {
    background: transparent;
    border: none;
    color: var(--fav-primary-orange);
    cursor: pointer;
    padding: 5px;
    border-radius: 5px;
    transition: var(--fav-transition-fast);
    margin-left: 10px;
    opacity: 0.7;
}

.edit-btn:hover {
    opacity: 1;
    background: rgba(255, 122, 0, 0.1);
}

.edit-form {
    display: none;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    padding: 10px;
    background: rgba(255, 122, 0, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 122, 0, 0.2);
}

.edit-form input {
    flex: 1;
    background: var(--fav-dark-card);
    border: 1px solid rgba(255, 122, 0, 0.3);
    border-radius: 6px;
    padding: 8px 12px;
    color: var(--fav-white);
    font-size: 13px;
}

.edit-form input:focus {
    outline: none;
    border-color: var(--fav-primary-orange);
    box-shadow: 0 0 0 2px rgba(255, 122, 0, 0.2);
}

.save-btn,
.cancel-btn {
    background: transparent;
    border: 2px solid;
    border-radius: 6px;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 12px;
    transition: var(--fav-transition-fast);
}

.save-btn {
    border-color: #10b981;
    color: #10b981;
}

.save-btn:hover {
    background: #10b981;
    color: var(--fav-white);
}

.cancel-btn {
    border-color: #ef4444;
    color: #ef4444;
}

.cancel-btn:hover {
    background: #ef4444;
    color: var(--fav-white);
}

/* ========================================
   CAR STATISTICS
   ======================================== */
.user-car-stats {
    background: var(--fav-gradient-card);
    border-radius: var(--fav-border-radius);
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 122, 0, 0.2);
    backdrop-filter: var(--fav-blur-glass);
    box-shadow: var(--fav-shadow-card);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease 0.2s forwards;
}

.stats-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--fav-white);
    margin-bottom: 20px;
    text-align: center;
}

.stats-row {
    display: flex;
    justify-content: center;
    gap: 50px;
}

.stat-box {
    text-align: center;
    padding: 20px;
    background: rgba(255, 122, 0, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(255, 122, 0, 0.3);
    min-width: 120px;
    transition: var(--fav-transition-fast);
}

.stat-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 122, 0, 0.2);
}

.stat-number {
    font-size: 22px;
    font-weight: 700;
    color: var(--fav-primary-orange);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

/* ========================================
   FAVORITES SECTION - MODERN DESIGN
   ======================================== */
.user-favorites-section {
    background: linear-gradient(145deg, rgba(24, 24, 24, 0.95), rgba(34, 34, 34, 0.85));
    border-radius: 20px;
    padding: 35px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 122, 0, 0.2);
    backdrop-filter: blur(25px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease 0.4s forwards;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(255, 122, 0, 0.2);
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title i {
    color: #ff7a00;
    font-size: 26px;
}

.count-badge {
    background: linear-gradient(135deg, #ff7a00, #ff9533);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(255, 122, 0, 0.3);
}

.add-more-btn {
    background: transparent;
    border: 2px solid #ff7a00;
    color: #ff7a00;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.add-more-btn:hover {
    background: #ff7a00;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 122, 0, 0.3);
}

/* Grid Layout */
.favorite-cars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

/* Car Card */
.favorite-car-card {
    background: rgba(30, 30, 30, 0.6);
    border: 1px solid rgba(255, 122, 0, 0.15);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    animation: cardFadeIn 0.6s ease forwards;
}

.favorite-car-card:nth-child(1) { animation-delay: 0.1s; }
.favorite-car-card:nth-child(2) { animation-delay: 0.2s; }
.favorite-car-card:nth-child(3) { animation-delay: 0.3s; }
.favorite-car-card:nth-child(4) { animation-delay: 0.4s; }
.favorite-car-card:nth-child(5) { animation-delay: 0.5s; }
.favorite-car-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes cardFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.favorite-car-card:hover {
    transform: translateY(-8px);
    border-color: #ff7a00;
    box-shadow: 0 20px 40px rgba(255, 122, 0, 0.25);
}

/* Car Image */
.car-image-wrapper {
    position: relative;
    height: 200px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    overflow: hidden;
}

.car-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.favorite-car-card:hover .car-image {
    transform: scale(1.1);
}

.car-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    color: rgba(255, 122, 0, 0.3);
}

/* Status Badge */
.status-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-badge.active {
    background: rgba(16, 185, 129, 0.9);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.status-badge.sold {
    background: rgba(239, 68, 68, 0.9);
    color: white;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.status-badge i {
    font-size: 6px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Remove Heart Button */
.remove-heart-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    color: #ff7a00;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.favorite-car-card:hover .remove-heart-btn {
    opacity: 1;
    transform: scale(1);
}

.remove-heart-btn:hover {
    background: #ff7a00;
    color: white;
    transform: scale(1.1);
}

/* Car Details */
.car-details-wrapper {
    padding: 20px;
}

.car-title {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 12px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.car-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    padding: 4px 10px;
    background: rgba(255, 122, 0, 0.1);
    border-radius: 6px;
}

.meta-item i {
    color: #ff7a00;
    font-size: 11px;
}

.car-location {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.car-location i {
    color: #ff7a00;
}

/* Price Section */
.car-price-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-top: 1px solid rgba(255, 122, 0, 0.1);
    border-bottom: 1px solid rgba(255, 122, 0, 0.1);
    margin-bottom: 15px;
}

.price-wrapper {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.currency {
    font-size: 12px;
    color: #ff7a00;
    font-weight: 600;
}

.price-amount {
    font-size: 22px;
    font-weight: 700;
    color: #ff7a00;
}

.favorite-date {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    gap: 5px;
}

.favorite-date i {
    color: #ff7a00;
    font-size: 10px;
}

/* Action Buttons */
.car-actions {
    display: flex;
    gap: 10px;
}

.view-details-btn {
    flex: 1;
    background: linear-gradient(135deg, #ff7a00, #ff9533);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 122, 0, 0.3);
}

.view-details-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 122, 0, 0.4);
    color: white;
    text-decoration: none;
}

.view-details-btn.disabled {
    background: rgba(100, 100, 100, 0.5);
    cursor: not-allowed;
    box-shadow: none;
}

.quick-remove-btn {
    width: 44px;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    padding: 12px;
    border-radius: 10px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quick-remove-btn:hover {
    background: #ef4444;
    color: white;
    transform: scale(1.05);
}

/* Empty State */
.no-favorites-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    background: rgba(255, 122, 0, 0.05);
    border-radius: 16px;
    border: 2px dashed rgba(255, 122, 0, 0.2);
}

.empty-icon {
    font-size: 80px;
    color: rgba(255, 122, 0, 0.3);
    margin-bottom: 20px;
}

.no-favorites-state h3 {
    font-size: 24px;
    color: #ffffff;
    margin-bottom: 10px;
}

.no-favorites-state p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 30px;
}

.browse-cars-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #ff7a00, #ff9533);
    color: white;
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(255, 122, 0, 0.3);
}

.browse-cars-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(255, 122, 0, 0.4);
    color: white;
    text-decoration: none;
}

/* ========================================
   NOTIFICATIONS
   ======================================== */
.success-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--fav-gradient-primary);
    color: var(--fav-white);
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: var(--fav-shadow-card);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
    transform: translateX(100%);
    opacity: 0;
    transition: var(--fav-transition-fast);
    z-index: 1000;
}

.success-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.success-notification i {
    color: var(--fav-white);
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 768px) {
    .user-profile-wrapper {
        padding: 30px 15px;
    }
    
    .user-info-card {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .stats-row {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .favorite-cars-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .section-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .car-image-wrapper {
        height: 180px;
    }

    .price-amount {
        font-size: 20px;
    }
    
    .user-name,
    .stats-title,
    .section-title {
        font-size: 20px;
    }
    
    .edit-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .edit-form input {
        margin-bottom: 10px;
    }
    
    .success-notification {
        right: 10px;
        left: 10px;
        transform: translateY(-100%);
    }
    
    .success-notification.show {
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .user-favorites-section {
        padding: 25px 15px;
    }

    .section-title {
        font-size: 20px;
    }

    .user-avatar {
        width: 60px;
        height: 60px;
        font-size: 20px;
    }
    
    .stat-box {
        min-width: 100px;
        padding: 15px;
    }
    
    .edit-btn {
        margin-left: 5px;
        padding: 3px;
    }

    .car-meta {
        flex-direction: column;
        gap: 8px;
    }

    .car-actions {
        flex-direction: column;
    }

    .quick-remove-btn {
        width: 100%;
    }
}

/* ==== FAVORITES EMPTY STATE ==== */
.fav-empty-wrapper {
    height: 40vh;
    width: 100%;
    background: transparent;
}

.fav-empty-box {
    border-radius: 12px;
    padding: 40px 30px;
    max-width: 360px;
    width: 90%;
    margin: auto;
    color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fav-empty-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}

.fav-empty-icon {
    font-size: 60px;
    color: #ff7b00; /* your orange accent */
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(255, 123, 0, 0.4);
}

.fav-empty-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
}

.fav-empty-text {
    font-size: 0.95rem;
    color: #ccc;
    margin-bottom: 20px;
}

/* CTA Button */
.fav-empty-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #ff7b00;
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(255, 123, 0, 0.3);
    transition: all 0.3s ease;
    margin-top: 10px;
}

.fav-empty-btn:hover {
    background-color: #e56f00;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(255, 123, 0, 0.4);
}

.fav-empty-btn i {
    font-size: 1rem;
}
