/* PoolPal Vehicle Selection Page Styles
   Created: 2025-05-27
   Description: Enhanced styles for the vehicle selection page with animations and responsive design
*/

/* Reset and Base Styles */
.vs-container * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Main Container Styles */
.vs-main {
    font-family: 'Poppins', sans-serif;
    padding: 7rem 1rem 3rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Card Container Styles */
.vs-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    padding: 3rem 2rem;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.vs-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #ffc107, #ff9800, #ff5722);
}

/* Typography Styles */
.vs-title {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 2.4rem;
    font-weight: 700;
    background: linear-gradient(135deg, #2c3e50, #4a6572);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.vs-subtitle {
    text-align: center;
    color: #7f8c8d;
    margin-bottom: 3rem;
    font-size: 1.1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Vehicle Grid Styles */
.vs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Vehicle Option Styles */
.vs-option {
    background: #fff;
    border-radius: 15px;
    padding: 2rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.vs-option:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: rgba(255, 193, 7, 0.3);
}

.vs-option::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    background-image: radial-gradient(circle, #fff 10%, transparent 10.01%);
    background-repeat: no-repeat;
    background-position: 50%;
    transform: scale(10, 10);
    opacity: 0;
    transition: transform 0.5s, opacity 1s;
}

.vs-option:active::after {
    transform: scale(0, 0);
    opacity: 0.3;
    transition: 0s;
}

.vs-option input {
    position: absolute;
    opacity: 0;
}

.vs-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    position: relative;
    z-index: 2;
}

.vs-icon {
    font-size: 3rem;
    color: #2c3e50;
    transition: all 0.4s ease;
}

.vs-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    transition: all 0.3s ease;
}

.vs-description {
    font-size: 0.9rem;
    color: #95a5a6;
    text-align: center;
    margin-top: 0.5rem;
    transition: all 0.3s ease;
    opacity: 0.8;
}

/* Checked State Styles */
.vs-option input:checked + .vs-content .vs-icon {
    color: #ffc107;
    transform: scale(1.1) translateY(-5px);
}

.vs-option input:checked + .vs-content .vs-name {
    color: #ffc107;
}

.vs-option input:checked + .vs-content .vs-description {
    color: #2c3e50;
    opacity: 1;
}

.vs-option input:checked ~ .vs-check {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

.vs-option input:checked ~ .vs-highlight {
    opacity: 0.1;
}

/* Check Mark Styles */
.vs-check {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #ffc107;
    color: white;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0) rotate(-90deg);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 3;
}

/* Background Highlight Effect */
.vs-highlight {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ffc107;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

/* Button Styles */
.vs-btn {
    background: linear-gradient(135deg, #ffc107, #ff9800);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 400px;
    margin: 1rem auto;
    display: block;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(255, 193, 7, 0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.vs-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(255, 193, 7, 0.3);
}

.vs-btn:active {
    transform: translateY(-1px);
}

.vs-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.7s;
}

.vs-btn:hover::before {
    left: 100%;
}

/* Back Link Styles */
.vs-back {
    display: block;
    text-align: center;
    margin-top: 1.5rem;
    color: #7f8c8d;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem;
}

.vs-back:hover {
    color: #ffc107;
}

.vs-back i {
    margin-right: 5px;
    transition: transform 0.3s ease;
}

.vs-back:hover i {
    transform: translateX(-3px);
}

/* Animation Classes */
.vs-fade-in {
    animation: vsFadeIn 0.8s ease-out forwards;
}

.vs-slide-up {
    animation: vsSlideUp 0.6s ease-out forwards;
}

.vs-scale-in {
    animation: vsScaleIn 0.5s ease-out forwards;
}

/* Keyframe Animations */
@keyframes vsFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes vsSlideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes vsScaleIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Staggered Animation Delays */
.vs-delay-1 {
    animation-delay: 0.1s;
}

.vs-delay-2 {
    animation-delay: 0.2s;
}

.vs-delay-3 {
    animation-delay: 0.3s;
}

.vs-delay-4 {
    animation-delay: 0.4s;
}

/* Responsive Design */
@media (max-width: 992px) {
    .vs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .vs-main {
        padding: 6rem 1rem 2rem;
    }

    .vs-card {
        padding: 2rem 1.5rem;
    }

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

    .vs-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
}

@media (max-width: 576px) {
    .vs-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .vs-card {
        padding: 1.5rem 1rem;
    }

    .vs-option {
        padding: 1.5rem;
    }

    .vs-title {
        font-size: 1.8rem;
    }

    .vs-icon {
        font-size: 2.5rem;
    }

    .vs-name {
        font-size: 1.1rem;
    }

    .vs-btn {
        padding: 0.9rem 1.5rem;
        font-size: 1rem;
    }
}

/* Vehicle Selection Specific Styles */

.vtype-main {
    max-width: 1200px;
    margin: 40px auto 2rem;
    padding: 0 1.5rem;
    position: relative;
    z-index: 1;
}

.vtype-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    padding: 2.5rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 193, 7, 0.1);
    position: relative;
    overflow: hidden;
}

/* Card highlight effect */
.vtype-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: linear-gradient(
        125deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 30%,
        rgba(255, 255, 255, 0.4) 50%,
        rgba(255, 255, 255, 0.3) 70%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: translateX(-100%);
    animation: cardShine 3s infinite;
}

@keyframes cardShine {
    0% {
        transform: translateX(-100%);
    }
    20%, 100% {
        transform: translateX(100%);
    }
}

.vtype-title {
    text-align: center;
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.vtype-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 3rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.vtype-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2.5rem;
}

/* Vehicle Option Styles */
.vtype-option {
    background: #ffffff;
    border-radius: 20px;
    padding: 1.8rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.vtype-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.15);
    border-color: rgba(255, 193, 7, 0.3);
}

.vtype-content, .vtype-subcontent {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    position: relative;
    z-index: 1;
}

.vtype-icon, .vtype-subicon {
    font-size: 2rem;
    color: #ffc107;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 193, 7, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.vtype-name, .vtype-subname {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
}

.vtype-description, .vtype-subdescription {
    font-size: 0.95rem;
    color: #666;
    margin-top: 0.5rem;
    line-height: 1.5;
}

.vtype-check {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: #ffc107;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    font-size: 1.4rem;
}

.vtype-option.selected {
    border-color: #ffc107;
    background: rgba(255, 193, 7, 0.02);
}

.vtype-option.selected .vtype-check {
    opacity: 1;
}

.vtype-option.selected .vtype-icon {
    background: rgba(255, 193, 7, 0.2);
    transform: scale(1.1);
}

/* Sub-options Styles */
.vtype-suboptions {
    margin-left: 3.5rem;
    margin-top: -0.5rem;
    margin-bottom: 1rem;
    padding-top: 0.8rem;
    animation: vtypeSlideDown 0.4s ease-in-out;
}

.vtype-suboption {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 15px;
    padding: 1.2rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid transparent;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.vtype-suboption:hover {
    transform: translateX(8px);
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.1);
}

.vtype-suboption.selected {
    border-color: #ffc107;
    background: rgba(255, 193, 7, 0.02);
}

/* Animation Keyframes */
@keyframes vtypeSlideDown {
    from { 
        opacity: 0;
        transform: translateY(-15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Button Styles */
.vtype-btn {
    background: #ffc107;
    color: #2c3e50;
    border: none;
    padding: 1.2rem 2.5rem;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.2);
}

.vtype-btn:hover {
    background: #ffb300;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.3);
}

.vtype-back {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.vtype-back:hover {
    color: #ffc107;
    gap: 0.8rem;
}

.vtype-back i {
    font-size: 1.1rem;
}

/* Hide Radio Buttons but Keep Functionality */
.vtype-option input[type="radio"],
.vtype-suboption input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .vtype-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .vtype-main {
        margin: 30px auto 1rem;
        padding: 0 1rem;
    }

    .vtype-card {
        padding: 1.5rem;
    }

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

    .vtype-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .vtype-option {
        padding: 1.5rem;
    }

    .vtype-icon {
        width: 40px;
        height: 40px;
        font-size: 1.6rem;
    }

    .vtype-suboptions {
        margin-left: 2rem;
    }
}

@media (max-width: 480px) {
    .vtype-grid {
        grid-template-columns: 1fr;
    }

    .vtype-name {
        font-size: 1.2rem;
    }

    .vtype-description {
        font-size: 0.9rem;
    }

    .vtype-btn {
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }
}
