/**
 * CEV Utils Functions - Age Gate Styles
 * Modern and responsive age verification modal
 */

/* Age Gate Overlay */
.cev-age-gate-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: cevFadeIn 0.3s ease-out;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Show age gate only when needed */
.cev-age-gate-overlay.cev-show {
    opacity: 1;
    visibility: visible;
}

/* Age Gate Modal */
.cev-age-gate-modal {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    margin: 20px;
    animation: cevSlideIn 0.4s ease-out;
    position: relative;
    overflow: hidden;
}

/* Modal Content */
.cev-age-gate-content {
    padding: 40px 30px;
    text-align: center;
    position: relative;
}

/* Icon Styling */
.cev-age-gate-icon {
    margin-bottom: 25px;
    color: #e74c3c;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cev-age-gate-icon svg {
    width: 64px;
    height: 64px;
    filter: drop-shadow(0 4px 8px rgba(231, 76, 60, 0.3));
}

/* Title */
.cev-age-gate-title {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 15px 0;
    line-height: 1.2;
}

/* Description */
.cev-age-gate-description {
    font-size: 16px;
    color: #7f8c8d;
    line-height: 1.6;
    margin: 0 0 30px 0;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons Container */
.cev-age-gate-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

/* Button Base Styles */
.cev-btn {
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 140px;
    position: relative;
    overflow: hidden;
}

.cev-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.5s;
}

.cev-btn:hover:before {
    left: 100%;
}

/* Confirm Button */
.cev-btn-confirm {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    box-shadow: 0 8px 20px rgba(46, 204, 113, 0.3);
}

.cev-btn-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(46, 204, 113, 0.4);
    background: linear-gradient(135deg, #229954, #27ae60);
}

.cev-btn-confirm:active {
    transform: translateY(0);
}

/* Deny Button */
.cev-btn-deny {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    box-shadow: 0 8px 20px rgba(231, 76, 60, 0.3);
}

.cev-btn-deny:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(231, 76, 60, 0.4);
    background: linear-gradient(135deg, #c0392b, #a93226);
}

.cev-btn-deny:active {
    transform: translateY(0);
}

/* Disclaimer */
.cev-age-gate-disclaimer {
    font-size: 12px;
    color: #95a5a6;
    margin: 0;
    font-style: italic;
}

/* Shortcode Styles */
.cev-age-gate-shortcode {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    margin: 20px 0;
    transition: all 0.3s ease;
}

.cev-age-gate-shortcode:hover {
    border-color: #e74c3c;
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.1);
}

.cev-age-gate-shortcode .cev-age-gate-icon {
    margin-bottom: 20px;
}

.cev-age-gate-shortcode .cev-age-gate-icon svg {
    width: 48px;
    height: 48px;
}

.cev-age-gate-shortcode h3 {
    font-size: 24px;
    color: #2c3e50;
    margin: 0 0 15px 0;
}

.cev-age-gate-shortcode p {
    color: #7f8c8d;
    margin: 0 0 20px 0;
}

/* Animations */
@keyframes cevFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes cevSlideIn {
    from { opacity: 0; transform: translateY(-50px) scale(0.9); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes cevSlideOut {
    from { opacity: 1; transform: translateY(0) scale(1); }
    to { opacity: 0; transform: translateY(-50px) scale(0.9); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .cev-age-gate-modal { margin: 10px; border-radius: 15px; }
    .cev-age-gate-content { padding: 30px 20px; }
    .cev-age-gate-title { font-size: 24px; }
    .cev-age-gate-description { font-size: 14px; }
    .cev-age-gate-buttons { flex-direction: column; align-items: center; }
    .cev-btn { width: 100%; max-width: 200px; }
    .cev-age-gate-icon svg { width: 56px; height: 56px; }
}

@media (max-width: 480px) {
    .cev-age-gate-content { padding: 25px 15px; }
    .cev-age-gate-title { font-size: 22px; }
    .cev-btn { padding: 12px 25px; font-size: 14px; }
    .cev-age-gate-icon svg { width: 48px; height: 48px; }
}

/* Loading State */
.cev-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.cev-btn.loading:after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: cevSpin 1s linear infinite;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
}

@keyframes cevSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .cev-age-gate-overlay { background: rgba(0, 0, 0, 0.95); }
    .cev-age-gate-modal { border: 2px solid #000; }
    .cev-btn { border: 2px solid currentColor; }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .cev-age-gate-overlay, .cev-age-gate-modal, .cev-btn {
        animation: none;
        transition: none;
    }
    .cev-btn:hover { transform: none; }
}
