/**
 * PeteITCMS Age Gate Styles
 */

.agegate-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: #0b141a;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.agegate-modal {
    background: #202c33;
    border-radius: 20px;
    padding: 50px 40px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    text-align: center;
    animation: slideUp 0.5s ease;
    border: 1px solid #2a3942;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.agegate-content {
    position: relative;
}

.agegate-icon {
    font-size: 80px;
    line-height: 1;
    margin-bottom: 20px;
    animation: bounce 1s ease infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.agegate-title {
    font-size: 32px;
    font-weight: 700;
    color: #e9edef;
    margin: 0 0 15px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.agegate-text {
    font-size: 18px;
    color: #aebac1;
    line-height: 1.6;
    margin: 0 0 30px 0;
}

.agegate-text strong {
    color: #e9edef;
    font-size: 20px;
}

.agegate-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.agegate-btn {
    padding: 18px 35px;
    font-size: 18px;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.agegate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.agegate-btn:active {
    transform: translateY(0);
}

.agegate-btn-yes {
    background: #00a884;
    color: #111b21;
    font-weight: 700;
}

.agegate-btn-yes:hover {
    background: #06cf9c;
}

.agegate-btn-no {
    background: #dc2626;
    color: white;
}

.agegate-btn-no:hover {
    background: #b91c1c;
}

.agegate-notice {
    font-size: 13px;
    color: #667781;
    margin: 0;
    line-height: 1.5;
}

/* Loading State */
.agegate-btn.loading {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.agegate-btn.loading:after {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-left: 10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 600px) {
    .agegate-modal {
        padding: 40px 25px;
        border-radius: 15px;
    }
    
    .agegate-icon {
        font-size: 60px;
    }
    
    .agegate-title {
        font-size: 26px;
    }
    
    .agegate-text {
        font-size: 16px;
    }
    
    .agegate-text strong {
        font-size: 18px;
    }
    
    .agegate-btn {
        padding: 15px 25px;
        font-size: 16px;
    }
}

/* Prevent body scroll */
body.agegate-active {
    overflow: hidden !important;
    height: 100vh;
}
