/**
* JQuery Age Gate Plugin Styles
* Updated: June 10 2025  with Bootstrap v5.2.3
* Author:  Brocy Centeio
*/


.page-content {
    opacity: 0.3;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.page-content.age-verified {
    opacity: 1;
    pointer-events: auto;
}

.age-gate-modal {
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    max-width: 400px;
    margin: 0 auto;
    border: none;
}

.age-gate-modal .modal-header {
    border: none;
    padding: 30px 30px 20px 30px;
    background: transparent;
}

.age-gate-modal .modal-body {
    padding: 20px 30px 30px 30px;
    background: transparent;
}

.age-gate-modal .modal-title {
    color: white;
    font-weight: 600;
    text-align: center;
    margin-bottom: 0;
    width: 100%;
}

.age-gate-date-inputs {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

.age-gate-date-input {
    background: rgba(255,255,255,0.9);
    border: 2px solid transparent;
    border-radius: 8px;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    flex: 1;
    padding: 12px 8px;
}

.age-gate-date-input:focus {
    background: white;
    border-color: #fff;
    box-shadow: 0 0 0 0.2rem rgba(255,255,255,0.3);
    outline: none;
}

.age-gate-date-input::placeholder {
    color: #666;
    font-weight: 500;
}

.age-gate-submit-btn {
    background: white;
    color: #44a08d;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-weight: 600;
    font-size: 16px;
    width: 100%;
    transition: all 0.3s ease;
    cursor: pointer;
}

.age-gate-submit-btn:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.age-gate-submit-btn:active {
    transform: translateY(0);
}

.age-gate-error {
    background: rgba(220, 53, 69, 0.9);
    color: white;
    padding: 10px;
    border-radius: 6px;
    margin-top: 15px;
    text-align: center;
    font-weight: 500;
    display: none;
}

.modal-backdrop.age-gate-backdrop {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Animation for error shake */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.age-gate-modal.shake {
    animation: shake 0.6s ease-in-out;
}

/* Loading state */
.age-gate-submit-btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.age-gate-submit-btn.loading::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 8px;
    border: 2px solid #44a08d;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .age-gate-modal {
        margin: 20px;
        max-width: none;
    }
    
    .age-gate-modal .modal-header,
    .age-gate-modal .modal-body {
        padding: 20px;
    }
    
    .age-gate-date-inputs {
        gap: 8px;
    }
    
    .age-gate-date-input {
        font-size: 14px;
        padding: 10px 6px;
    }
}