/**
 * IMB Age Verification - Frontend Styles
 */

/* Prevent scrolling when gate is active */
html.imb-age-gate-pending,
html.imb-age-gate-pending body,
html.imb-age-gate-active,
html.imb-age-gate-active body {
    overflow: hidden !important;
    height: 100% !important;
    touch-action: none !important;
}

/* Fullscreen Overlay Container */
.imb-age-gate-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    z-index: 999999999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px !important;
    box-sizing: border-box !important;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s ease;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.imb-age-gate-overlay.imb-visible {
    opacity: 1 !important;
    visibility: visible !important;
}

.imb-age-gate-overlay.imb-age-gate-closing {
    opacity: 0 !important;
    transform: scale(0.97) !important;
    transition: opacity 0.3s ease, transform 0.3s ease !important;
}

/* Backdrop */
.imb-age-gate-backdrop {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(15, 23, 42, 0.82) !important;
    z-index: 1 !important;
}

.imb-age-gate-overlay.imb-blur-enabled .imb-age-gate-backdrop {
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    background: rgba(15, 23, 42, 0.78) !important;
}

/* Modal Box */
.imb-age-gate-modal {
    position: relative !important;
    z-index: 2 !important;
    width: 100% !important;
    max-width: 480px !important;
    background: #ffffff !important;
    border-radius: 20px !important;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.15) !important;
    overflow: hidden !important;
    padding: 36px 32px 30px !important;
    box-sizing: border-box !important;
    text-align: center !important;
    transform: translateY(20px) scale(0.96);
    transition: transform 0.38s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.imb-age-gate-overlay.imb-visible .imb-age-gate-modal {
    transform: translateY(0) scale(1) !important;
}

/* Modal Content */
.imb-age-gate-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

/* Logo */
.imb-age-gate-logo {
    margin-bottom: 18px !important;
    max-width: 220px !important;
}

.imb-age-gate-logo img {
    max-height: 48px !important;
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    margin: 0 auto !important;
    object-fit: contain !important;
}

/* Badge (21+ Restricted) */
.imb-age-gate-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 6px 14px !important;
    background: #ffe4e6 !important;
    color: #e11d48 !important;
    border-radius: 9999px !important;
    font-size: 11.5px !important;
    font-weight: 800 !important;
    letter-spacing: 0.8px !important;
    text-transform: uppercase !important;
    margin-bottom: 16px !important;
    box-shadow: 0 2px 6px rgba(225, 29, 72, 0.15) !important;
}

.imb-age-gate-badge .imb-badge-icon {
    font-size: 13px !important;
    line-height: 1 !important;
}

/* Title */
.imb-age-gate-title {
    margin: 0 0 12px 0 !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    color: #0f172a !important;
    letter-spacing: -0.3px !important;
}

/* Message */
.imb-age-gate-message {
    margin-bottom: 26px !important;
}

.imb-age-gate-message p {
    margin: 0 !important;
    font-size: 14.5px !important;
    line-height: 1.55 !important;
    color: #475569 !important;
}

/* Actions (Buttons) */
.imb-age-gate-actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    width: 100% !important;
    margin-bottom: 20px !important;
}

.imb-age-btn {
    appearance: none !important;
    -webkit-appearance: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    width: 100% !important;
    height: 48px !important;
    min-height: 48px !important;
    border-radius: 12px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    outline: none !important;
    transition: all 0.22s ease !important;
    text-decoration: none !important;
    border: none !important;
    box-sizing: border-box !important;
    user-select: none !important;
}

/* Primary "Yes" Button */
.imb-age-btn-yes {
    background: #f377ae !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(243, 119, 174, 0.4) !important;
}

.imb-age-btn-yes:hover,
.imb-age-btn-yes:focus-visible {
    background: #e05c96 !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(243, 119, 174, 0.5) !important;
}

.imb-age-btn-yes:active {
    transform: translateY(0) !important;
}

/* Secondary "No" Button */
.imb-age-btn-no {
    background: #f8fafc !important;
    color: #64748b !important;
    border: 1px solid #e2e8f0 !important;
}

.imb-age-btn-no:hover,
.imb-age-btn-no:focus-visible {
    background: #fee2e2 !important;
    color: #dc2626 !important;
    border-color: #fca5a5 !important;
}

.imb-age-btn-no:active {
    background: #fecaca !important;
}

.imb-btn-icon {
    font-size: 15px !important;
    line-height: 1 !important;
}

/* Disclaimer text at bottom */
.imb-age-gate-disclaimer {
    width: 100% !important;
    border-top: 1px solid #f1f5f9 !important;
    padding-top: 16px !important;
}

.imb-age-gate-disclaimer p {
    margin: 0 !important;
    font-size: 11.5px !important;
    line-height: 1.5 !important;
    color: #94a3b8 !important;
}

/* Mobile responsiveness */
@media (max-width: 480px) {
    .imb-age-gate-overlay {
        padding: 14px !important;
    }

    .imb-age-gate-modal {
        padding: 28px 20px 22px !important;
        border-radius: 16px !important;
    }

    .imb-age-gate-title {
        font-size: 20px !important;
    }

    .imb-age-gate-message p {
        font-size: 13.5px !important;
    }

    .imb-age-btn {
        height: 46px !important;
        min-height: 46px !important;
        font-size: 14px !important;
    }
}
