/**
 * Age Verification Frontend Styles
 */

/* Overlay */
#age-verification-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999998;
    display: block;
}

/* Modal */
#age-verification-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 999999;
    max-width: 500px;
    width: 90%;
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    text-align: center;
}

/* Content */
.age-verification-content {
    width: 100%;
}

.age-verification-logo {
    margin-bottom: 20px;
}

.age-verification-logo img {
    max-width: 200px;
    height: auto;
}

.age-verification-headline {
    font-size: 28px;
    font-weight: bold;
    margin: 0 0 15px 0;
    color: #333;
}

.age-verification-message {
    font-size: 16px;
    color: #666;
    margin: 0 0 30px 0;
    line-height: 1.5;
}

/* Form */
.age-verification-form {
    margin: 30px 0;
}

/* Buttons */
.age-verification-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.age-verification-button {
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
}

.age-verification-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.age-verification-button:active {
    transform: translateY(0);
}

/* Slider Method */
.age-verification-slider-container {
    padding: 10px 0;
}

.age-verification-label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

.age-slider-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.age-slider-value,
.age-slider-max {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    min-width: 30px;
}

.age-slider {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    border-radius: 5px;
    background: #ddd;
    outline: none;
}

.age-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #4CAF50;
    cursor: pointer;
    transition: all 0.3s ease;
}

.age-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.age-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #4CAF50;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.age-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
}

.age-slider-display {
    text-align: center;
    margin-bottom: 20px;
}

.age-slider-display span {
    font-size: 18px;
    color: #333;
}

#age-slider-display-value {
    font-weight: bold;
    font-size: 24px;
    color: #4CAF50;
    margin-left: 5px;
}

/* Birthdate Method */
.age-verification-birthdate-container {
    padding: 10px 0;
}

.birthdate-inputs {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.birthdate-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.birthdate-field label {
    font-size: 12px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
}

.birthdate-input {
    padding: 10px;
    font-size: 14px;
    border: 2px solid #ddd;
    border-radius: 5px;
    background-color: #fff;
    color: #333;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.birthdate-input:focus {
    outline: none;
    border-color: #4CAF50;
}

.birthdate-input:hover {
    border-color: #999;
}

/* Error Message */
.age-verification-error {
    margin-top: 20px;
    padding: 15px;
    background-color: #ffebee;
    color: #c62828;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 600px) {
    #age-verification-modal {
        padding: 30px 20px;
        max-width: 95%;
    }

    .age-verification-headline {
        font-size: 24px;
    }

    .age-verification-message {
        font-size: 14px;
    }

    .age-verification-button {
        padding: 12px 20px;
        font-size: 14px;
        min-width: 120px;
    }

    .birthdate-inputs {
        flex-direction: column;
        gap: 15px;
    }

    .birthdate-field {
        width: 100%;
    }

    .birthdate-input {
        width: 100%;
    }
}

/* Prevent body scrolling when modal is active */
body.age-verification-active {
    overflow: hidden;
}
