/* Enhanced Car Details Styling */

/* Vehicle Type Badge */
.vehicle-type-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 10;
    text-transform: uppercase;
}

.car-header {
    position: relative;
}

/* Enhanced Gallery Styling */
.car-gallery {
    margin-bottom: 30px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0;
}

.main-image-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background-color: rgba(18, 18, 20, 0.7);
    max-width: 100%;
    box-sizing: border-box;
}

.main-image-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.main-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; /* Ensure the entire image is visible without cropping */
    border-radius: 12px;
    transition: all 0.3s ease;
    max-width: 100%;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .main-image-container {
        padding-bottom: 66.67%; /* 3:2 aspect ratio on tablets */
    }
    
    .car-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .car-btn {
        width: 100%;
    }
    
    .car-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .car-price {
        margin-top: 10px;
    }
}

@media (max-width: 480px) {
    .main-image-container {
        padding-bottom: 75%; /* 4:3 aspect ratio on small mobile */
    }
    
    .car-title {
        font-size: 24px;
    }
    
    .car-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

/* High-resolution displays */
@media (min-width: 1200px) {
    .main-image-container {
        max-height: 600px;
        padding-bottom: 40%; /* Wider aspect ratio on large screens */
    }
    
    .car-container {
        max-width: 1200px;
        margin: 0 auto;
    }
}

/* Fullscreen Image View */
.fullscreen-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.fullscreen-image-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.fullscreen-image-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0, 255, 204, 0.3);
}

.close-fullscreen {
    position: absolute;
    top: -40px;
    right: 0;
    background: transparent;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
    outline: none;
}

.thumbnails-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.thumbnail {
    position: relative;
    height: 0;
    padding-bottom: 75%; /* 4:3 aspect ratio */
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.thumbnail:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 255, 204, 0.3);
}

.thumbnail.active {
    border-color: #00ffcc;
    box-shadow: 0 0 10px #00ffcc;
}

/* Responsive Adjustments for Thumbnails */
@media (max-width: 768px) {
    .thumbnails-container {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }
}

@media (max-width: 480px) {
    .thumbnails-container {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    }
}

/* Responsive gallery */
@media (max-width: 768px) {
    .car-thumbnails {
        justify-content: center;
    }
    
    .car-thumbnails .placeholder-image {
        width: 100px;
        height: 50px;
    }
    
    .main-image-container {
        height: 300px;
    }
}

@media (max-width: 576px) {
    .main-image-container {
        height: 250px;
    }
    
    .car-thumbnails .placeholder-image {
        width: 85px;
        height: 42px;
    }
}

/* Empty gallery state */
.car-thumbnails:empty::after,
.no-images-message {
    content: 'No gallery images available';
    display: block;
    width: 100%;
    padding: 20px;
    text-align: center;
    color: var(--light-gray);
    font-style: italic;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-top: 15px;
}

.no-images-message {
    content: none;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .main-image-container {
        height: 250px;
    }
    
    .car-thumbnails .placeholder-image {
        width: 70px;
        height: 50px;
    }
}

/* Car Details Enhancements */
.car-details-section {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--dark) 0%, var(--darker) 100%);
}

.car-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.car-subtitle {
    font-size: 1.2rem;
    color: var(--light-gray);
    margin-bottom: 20px;
}

.car-description {
    line-height: 1.8;
    margin-bottom: 30px;
    color: var(--light);
}

.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.features-list li:hover {
    background-color: rgba(108, 99, 255, 0.1);
    transform: translateX(3px);
}

.features-list li i {
    color: var(--primary);
    font-size: 18px;
}

/* Car details page specific styling for action buttons */
.car-info .car-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
    width: 100%;
    justify-content: space-between;
}

.car-btn {
    flex: 1;
    min-width: 120px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.car-info .view-car-btn {
    padding: 12px 25px;
    font-size: 14px;
    font-weight: 600;
    min-width: 150px;
    transition: all 0.3s ease;
    text-align: center;
}

.car-info .view-car-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.car-info .view-car-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.car-info .marketplace-btn {
    background-color: #00b894;
    color: white;
}

.car-info .rental-btn {
    background-color: #ff9f43;
    color: white;
}

/* Responsive adjustments for action buttons */
@media (max-width: 768px) {
    .car-info .car-buttons {
        flex-direction: row;
        justify-content: center;
    }
    
    .car-info .view-car-btn {
        flex: 1;
        max-width: 200px;
    }
}

@media (max-width: 576px) {
    .car-info .car-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .car-info .view-car-btn {
        width: 100%;
        max-width: 100%;
    }
}

/* Booking Card Enhancements */
.booking-card {
    background: rgba(18, 18, 24, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(108, 99, 255, 0.2);
    transition: transform 0.3s ease;
}

.booking-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    border-color: rgba(108, 99, 255, 0.4);
}

.booking-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
}

.booking-form input, 
.booking-form select {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    transition: all 0.2s ease;
}

.booking-form input:focus, 
.booking-form select:focus {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
    outline: none;
}

.booking-form label {
    color: var(--light-gray);
    margin-bottom: 8px;
    display: block;
}

.booking-form button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 10px;
}

.booking-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 99, 255, 0.3);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .car-details-container {
        flex-direction: column;
    }
    
    .booking-sidebar {
        margin-top: 40px;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .features-list {
        grid-template-columns: 1fr 1fr;
    }
    
    .car-title {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .features-list {
        grid-template-columns: 1fr;
    }
    
    .car-title {
        font-size: 1.8rem;
    }
}

/* Enhanced Blockchain Verification Section */
.blockchain-verification {
    margin: 40px 0;
    padding: 20px;
    background: rgba(10, 10, 20, 0.7);
    border-radius: 5px;
    border: 1px solid rgba(0, 255, 200, 0.3);
    box-shadow: 0 0 20px rgba(0, 255, 200, 0.1);
    position: relative;
    overflow: hidden;
}

.blockchain-verification::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0, 255, 200, 0.05), rgba(108, 99, 255, 0.05));
    z-index: 0;
}

.blockchain-verification .section-title {
    position: relative;
    z-index: 1;
    color: rgba(0, 255, 200, 0.9);
    margin-bottom: 25px;
    text-shadow: 0 0 10px rgba(0, 255, 200, 0.5);
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    letter-spacing: 1px;
}

/* Verification Badge Styles */
.verification-badge {
    display: flex;
    align-items: flex-start;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.verification-badge.unverified {
    background: rgba(30, 20, 30, 0.7);
    border: 1px solid rgba(255, 42, 109, 0.5);
    box-shadow: 0 0 15px rgba(255, 42, 109, 0.1);
}

.verification-badge.verified {
    background: rgba(20, 40, 30, 0.7);
    border: 1px solid rgba(0, 255, 128, 0.5);
    box-shadow: 0 0 15px rgba(0, 255, 128, 0.2);
    display: flex;
    align-items: center;
}

.verification-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
}

.verification-badge.unverified .verification-icon {
    background: rgba(255, 42, 109, 0.1);
    border: 1px solid rgba(255, 42, 109, 0.3);
}

.verification-badge.verified .verification-icon {
    background: rgba(0, 255, 128, 0.2);
    border: 1px solid rgba(0, 255, 128, 0.3);
}

.verification-badge.unverified .verification-icon i {
    color: rgba(255, 42, 109, 0.9);
    font-size: 24px;
}

.verification-badge.verified .verification-icon i {
    color: rgba(0, 255, 128, 0.9);
    font-size: 24px;
}

.verification-content {
    flex-grow: 1;
}

.verification-content h3 {
    margin: 0 0 10px 0;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.verification-badge.unverified .verification-content h3 {
    color: rgba(255, 42, 109, 0.9);
}

.verification-badge.verified .verification-content h3 {
    color: rgba(0, 255, 128, 0.9);
}

.verification-content p {
    margin: 0 0 15px 0;
    color: rgba(220, 220, 240, 0.8);
    font-size: 15px;
    line-height: 1.5;
}

/* Button Styles */
.btn-verify, .btn-view-verification {
    padding: 8px 16px;
    border-radius: 4px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
    text-transform: uppercase;
    font-size: 14px;
}

.btn-verify {
    background: rgba(255, 42, 109, 0.2);
    color: rgba(255, 42, 109, 0.9);
    border: 1px solid rgba(255, 42, 109, 0.5);
}

.btn-verify:hover {
    background: rgba(255, 42, 109, 0.3);
    box-shadow: 0 0 15px rgba(255, 42, 109, 0.3);
    transform: translateY(-2px);
}

.btn-view-verification {
    background: rgba(0, 255, 128, 0.2);
    color: rgba(0, 255, 128, 0.9);
    border: 1px solid rgba(0, 255, 128, 0.5);
}

.btn-view-verification:hover {
    background: rgba(0, 255, 128, 0.3);
    box-shadow: 0 0 15px rgba(0, 255, 128, 0.3);
    transform: translateY(-2px);
}

/* Verification Details Styles */
.verification-details {
    background: rgba(20, 20, 40, 0.8);
    border: 1px solid rgba(108, 99, 255, 0.5);
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    box-shadow: 0 0 15px rgba(108, 99, 255, 0.1);
}

.verification-details h4 {
    color: rgba(108, 99, 255, 0.9);
    margin-top: 0;
    margin-bottom: 15px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.verification-detail {
    display: flex;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(108, 99, 255, 0.2);
}

.verification-detail:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.detail-label {
    width: 150px;
    font-weight: bold;
    color: rgba(180, 180, 200, 0.9);
    flex-shrink: 0;
}

.detail-value {
    font-family: monospace;
    color: rgba(0, 255, 200, 0.9);
    word-break: break-all;
}

/* Blockchain Hash */
.blockchain-hash {
    background: rgba(20, 20, 40, 0.8);
    border: 1px solid rgba(108, 99, 255, 0.5);
    padding: 20px;
    border-radius: 5px;
    margin-top: 20px;
}

.hash-label {
    display: block;
    margin-bottom: 10px;
    color: rgba(180, 180, 200, 0.9);
}

.hash-value {
    display: block;
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 3px;
    font-family: monospace;
    color: rgba(0, 255, 128, 0.9);
    word-break: break-all;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 255, 128, 0.3);
}

/* Verification Benefits */
.verification-benefits {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 20px;
}

.verification-benefit {
    width: 48%;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.verification-benefit i {
    color: rgba(0, 255, 128, 0.9);
    margin-right: 10px;
}

.verification-benefit span {
    color: rgba(220, 220, 240, 0.9);
}

/* Animation for verification process */
@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 5px rgba(0, 255, 200, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(0, 255, 200, 0.8);
    }
    100% {
        box-shadow: 0 0 5px rgba(0, 255, 200, 0.5);
    }
}

.verifying {
    animation: pulse-glow 1.5s infinite;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .verification-badge {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .verification-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .verification-detail {
        flex-direction: column;
    }
    
    .detail-label {
        width: 100%;
        margin-bottom: 5px;
    }
    
    .verification-benefit {
        width: 100%;
    }
}

/* Hide elements with the hidden class */
.hidden {
    display: none !important;
}
