/* ===== VARIABLES ===== */
:root {
    --primary-blue: #ff6a00;
    --dark-blue: #111111;
    --light-gray: #f8f9fa;
}

/* ===== BASE STYLES ===== */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #f8f9fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===== NAVBAR STYLES ===== */
.navbar {
    background-color: var(--primary-blue);
    padding: 0.5rem 0;
}

.navbar-brand {
    color: white;
    font-size: 1.8rem;
    font-weight: bold;
}

.nav-link {
    color: rgba(255,255,255,0.9) !important;
    margin: 0 0.5rem;
}

.nav-link:hover {
    color: white !important;
}

.navbar-brand img {
    height: 40px;
}

.search-form {
    min-width: 250px;
}

.cta-btn {
    background-color: #ff6b35;
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
}

.cta-btn:hover {
    background-color: #e55a2b;
    color: white;
}

.btn-warning {
    background-color: #ff6b35 !important;
    border-color: #ff6b35 !important;
}

.btn-warning:hover {
    background-color: #e55a2b !important;
    border-color: #ffffff !important;
}

/* ===== HERO SECTION STYLES ===== */
.hero-section {
    padding: 10px 0;
    background: white;
    color: #333;
}

.main-image-container {
    position: relative;
    height: 100%;
}

.main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

.hero-heading {
    position: absolute;
    top: 10px;
    right: 11px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 12px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.hero-title {
    font-weight: bold;
    font-size: 1.1rem;
    color: #333;
}

.hero-subtitle {
    font-size: 0.9rem;
    color: #666;
    margin-top: 2px;
}

.image-grid {
    display: grid;
    grid-template-rows: repeat(2, 1fr);
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
    height: 100%;
    position: relative;
}

.grid-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    object-position: center;
}

/* Bid Stats - Bottom Left, Single Line */
.bid-stats {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(255, 107, 53, 0.95);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    margin: 0;
    list-style: none;
    display: flex;
    gap: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.bid-stats li {
    display: flex;
    align-items: center;
    gap: 5px;
}

.tag {
    font-size: 0.8rem;
    opacity: 0.9;
}

.value {
    font-weight: bold;
    font-size: 0.95rem;
}

.bid-value {
    color: white;
}

/* Ensure equal height for both columns */
.hero-row {
    min-height: 400px;
    align-items: stretch;
}

.featured-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 4;
    padding: 6px 12px;
    text-transform: uppercase;
    color: #cc0000;
    font-weight: 700;
    font-size: 12px;
    line-height: 1;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.9);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    display: inline-block;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Navigation Arrows */
.nav-arrows {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 3;
    display: flex;
    gap: 5px;
}

.nav-arrow {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.nav-arrow:hover {
    background: white;
    transform: scale(1.1);
}

.nav-arrow i {
    color: #333;
    font-size: 14px;
}

/* ===== AUCTION STYLES ===== */
.auction-filters {
    background: white;
    padding: 20px 0;
    border-bottom: 1px solid #e9ecef;
}

.filter-section {
    margin-bottom: 15px;
}

.filter-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.sort-options {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    align-items: center;
}

.filter-btn {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #495057;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.filter-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.sort-btn {
    background: transparent;
    border: 1px solid #dee2e6;
    color: #6c757d;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.sort-btn:hover,
.sort-btn.selected {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: white;
    text-decoration: none;
}

.auction-listings {
    background: white;
    padding: 30px 0;
}

.auction-card {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    height: 100%;
    margin-bottom: 20px;
}

.auction-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: inherit;
}

.auction-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.auction-content {
    padding: 15px;
}

.auction-time {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 5px;
}

.bid-price {
    font-size: 18px;
    font-weight: bold;
    color: #ff6b35;
    margin-bottom: 10px;
}

.car-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.2;
}

.no-reserve-badge {
    display: inline-block;
    background: #28a745;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 8px;
}

.car-description {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
    margin-bottom: 8px;
}

.car-location {
    font-size: 14px;
    color: #6c757d;
}

.view-more-section {
    background: white;
}

/* ===== AUTHENTICATION STYLES ===== */
.signup-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
    background-color: #f8f9fa;
}

.signup-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 50px;
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
}

.signup-title {
    font-size: 2rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    text-align: center;
}

.signin-link {
    text-align: center;
    margin-bottom: 30px;
}

.signin-link a {
    color: var(--primary-blue);
    text-decoration: none;
}

.signin-link a:hover {
    text-decoration: underline;
}

.social-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    background: white;
    color: #333;
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: none;
}

.social-btn:hover {
    background: #f8f9fa;
    border-color: #adb5bd;
    text-decoration: none;
    color: #333;
}

.divider {
    text-align: center;
    margin: 30px 0;
    position: relative;
}

.divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #dee2e6;
}

.divider span {
    background: white;
    padding: 0 15px;
    color: #6c757d;
    font-size: 14px;
}

.email-form .form-control {
    padding: 12px;
    font-size: 16px;
}

.email-form .btn {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    font-weight: 600;
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.email-form .btn:hover {
    background-color: var(--dark-blue);
    border-color: var(--dark-blue);
}

.create-account-btn {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    font-weight: 600;
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    margin: 25px 0;
}

.create-account-btn:hover {
    background-color: var(--dark-blue);
    border-color: var(--dark-blue);
}

.terms-text {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 20px;
    text-align: center;
}

.terms-text a {
    color: var(--primary-blue);
    text-decoration: none;
}

.terms-text a:hover {
    text-decoration: underline;
}

.help-link {
    text-align: center;
    margin-top: 20px;
}

.help-link a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
}

.help-link a:hover {
    text-decoration: underline;
}

/* ===== WHY CHOOSE US SECTION ===== */
.why-choose-us {
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-blue);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.testimonial-card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.testimonial-text p {
    font-style: italic;
    color: #555;
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.newsletter-card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.newsletter-card .form-control {
    border-right: 0;
}

.newsletter-card .btn {
    border-left: 0;
    background: var(--primary-blue);
    border-color: var(--primary-blue);
}

.newsletter-card .input-group {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

/* ===== FOOTER STYLES ===== */
.footer {
    background: #1a1a1a !important;
    margin-top: auto;
}

.brand-name {
    font-size: 1.8rem;
    font-weight: bold;
    color: white;
}

.footer-heading {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-link {
    color: #adb5bd;
    text-decoration: none;
    font-size: 14px;
    line-height: 2;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: white;
    text-decoration: none;
}

.footer .btn-outline-light {
    border-color: #6c757d;
    color: #adb5bd;
    font-size: 12px;
    padding: 6px 12px;
}

.footer .btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #adb5bd;
    color: white;
}

/* ===== BUTTON STYLES ===== */
.btn-primary {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--dark-blue);
    border-color: var(--dark-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(43, 87, 151, 0.3);
}

/* ===== FORM STYLES ===== */
.form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.form-control {
    padding: 12px;
    font-size: 16px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
}

.form-control:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.2rem rgba(43, 87, 151, 0.25);
}

.form-text {
    font-size: 14px;
    color: #6c757d;
    margin-top: 5px;
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 991.98px) {
    .search-form {
        margin-top: 10px;
        margin-bottom: 10px;
    }
    
    .hero-row {
        min-height: auto;
    }
    
    .main-image-container {
        height: 300px;
        margin-bottom: 5px;
    }
    
    .col-lg-7, .col-lg-5 {
        padding-left: 5px;
        padding-right: 5px;
    }
}

@media (max-width: 768px) {
    .filter-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .sort-options {
        width: 100%;
        justify-content: flex-start;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .testimonial-author {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .signup-card {
        margin: 20px;
        padding: 40px 30px;
        max-width: 100%;
    }
    
    .footer .d-flex.flex-wrap {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .footer-link {
        line-height: 1.8;
    }
}

@media (max-width: 576px) {
    .signup-card {
        padding: 30px 25px;
        margin: 15px;
    }
}