/* Car Viewer Styles */

.car-viewer-section {
    padding: 6rem 0;
    background: #ffffff;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.car-viewer-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.viewer-title {
    font-family: 'Oswald', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    color: #333;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Color Selector */
.color-selector {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 0.25rem;
}

.color-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    overflow: visible;
}

.color-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.color-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.25);
}

.color-btn.active {
    border-color: #B22222;
    transform: scale(1.15);
    box-shadow: 0 3px 15px rgba(178, 34, 34, 0.4);
}

.color-btn.active::before {
    border-color: rgba(255, 255, 255, 0.6);
}

.color-name {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    text-align: center;
    width: 50px;
}

.color-btn.active .color-name {
    color: #B22222;
    font-weight: 700;
}

/* Car Display Container */
.car-display-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    width: 100%;
    max-width: 900px;
    position: relative;
}

.car-image-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    min-height: 500px;
    justify-content: center;
    background-color: transparent;
    position: relative;
}

.car-image {
    max-width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
    border-radius: 10px;
    background-color: transparent;
    display: block;
}

.position-controls {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 200px;
    height: 60px;
}

.position-indicator {
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 2px;
    white-space: nowrap;
}


/* Rotation Buttons */
.rotate-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid #B22222;
    background: #ffffff;
    color: #B22222;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(178, 34, 34, 0.2);
    flex-shrink: 0;
}

.rotate-btn:hover {
    background: #B22222;
    color: #ffffff;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(178, 34, 34, 0.4);
}

.rotate-btn:active {
    transform: scale(0.95);
}


/* Responsive Design */
@media (max-width: 768px) {
    .car-viewer-section {
        padding: 4rem 0;
    }

    .viewer-title {
        font-size: 2rem;
    }

    .car-display-container {
        flex-direction: column;
        gap: 0;
        padding: 0 1rem;
        position: relative;
    }

    .car-image-wrapper {
        position: relative;
        width: 100%;
    }

    .position-controls {
        position: relative;
        min-width: 180px;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto;
    }

    .position-indicator {
        font-size: 1rem;
    }

    /* Position buttons aligned with position-controls (below the image) on mobile */
    .car-display-container > .rotate-btn {
        position: absolute;
        width: 40px;
        height: 40px;
        font-size: 1rem;
        top: auto;
        bottom: calc(32px + 0.5rem + 25px);
        transform: translateY(0);
    }

    .car-display-container > .rotate-btn.rotate-left {
        left: 0;
    }

    .car-display-container > .rotate-btn.rotate-right {
        right: 0;
    }

    .car-display-container > .rotate-btn:hover {
        transform: scale(1.1);
    }

    .car-display-container > .rotate-btn:active {
        transform: scale(0.95);
    }

    .color-selector {
        gap: 0.6rem;
        margin-top: 0.5rem;
        justify-content: center;
        width: 100%;
    }

    .color-btn {
        width: 32px;
        height: 32px;
    }

    .color-name {
        font-size: 0.65rem;
        bottom: -18px;
        width: 45px;
    }

    .car-image-wrapper {
        min-height: 400px;
        width: 100%;
    }

    .car-image {
        max-height: none;
        width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .viewer-title {
        font-size: 1.5rem;
    }

    .car-display-container > .rotate-btn {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .position-controls {
        min-width: 160px;
        height: 45px;
    }

    .position-indicator {
        font-size: 0.9rem;
    }

    .color-btn {
        width: 30px;
        height: 30px;
    }

    .color-name {
        font-size: 0.6rem;
        bottom: -16px;
        width: 40px;
    }

    .car-image-wrapper {
        min-height: 300px;
    }

    .car-image {
        max-height: none;
        width: 100%;
        height: auto;
    }
}

