/**
 * Age Gate Modal - Стилі для підтвердження віку 18+
 * Version: 1.0
 */

/* Modal overlay */
.age-gate-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 99999;
    justify-content: center;
    align-items: center;
    padding: 20px;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Modal content */
.age-gate-modal {
    background: #ffffff;
    border-radius: 20px;
    max-width: 500px;
    width: 100%;
    padding: 0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease-out;
    overflow: hidden;
}

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

/* Modal header with gradient */
.age-gate-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px 30px;
    text-align: center;
    color: #ffffff;
}

.age-gate-icon {
    font-size: 64px;
    margin-bottom: 16px;
    line-height: 1;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.age-gate-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.age-gate-subtitle {
    font-size: 16px;
    margin: 0;
    opacity: 0.95;
    font-weight: 400;
}

/* Modal body */
.age-gate-body {
    padding: 30px;
}

.age-gate-message {
    font-size: 15px;
    line-height: 1.6;
    color: #4b5563;
    text-align: center;
    margin: 0 0 24px 0;
}

.age-gate-warning {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid #fbbf24;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.age-gate-warning-icon {
    color: #f59e0b;
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.age-gate-warning-text {
    font-size: 14px;
    color: #92400e;
    margin: 0;
    line-height: 1.5;
}

/* Buttons */
.age-gate-buttons {
    display: flex;
    gap: 12px;
}

.age-gate-btn {
    flex: 1;
    padding: 16px 24px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.age-gate-btn-confirm {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.age-gate-btn-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

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

.age-gate-btn-decline {
    background: #f3f4f6;
    color: #6b7280;
}

.age-gate-btn-decline:hover {
    background: #e5e7eb;
    color: #374151;
}

/* Footer info */
.age-gate-footer {
    padding: 0 30px 30px 30px;
    text-align: center;
}

.age-gate-info {
    font-size: 12px;
    color: #9ca3af;
    line-height: 1.5;
    margin: 0;
}

/* Mobile optimization */
@media (max-width: 576px) {
    .age-gate-overlay {
        padding: 16px;
    }

    .age-gate-modal {
        border-radius: 16px;
    }

    .age-gate-header {
        padding: 32px 24px;
    }

    .age-gate-icon {
        font-size: 52px;
    }

    .age-gate-title {
        font-size: 24px;
    }

    .age-gate-subtitle {
        font-size: 14px;
    }

    .age-gate-body {
        padding: 24px;
    }

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

    .age-gate-buttons {
        flex-direction: column;
    }

    .age-gate-btn {
        width: 100%;
        padding: 14px 20px;
        font-size: 15px;
    }

    .age-gate-footer {
        padding: 0 24px 24px 24px;
    }
}

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