/**
 * Ultimate Push - Frontend Styles
 * Modern opt-in modal with multiple position variants
 */

/* Modal Container */
.up-optin-modal {
    position: fixed;
    z-index: 999999;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    direction: rtl;
}

.up-optin-modal--visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Position Variants */
.up-optin-modal--bottom-right {
    bottom: 24px;
    right: 24px;
}

.up-optin-modal--bottom-left {
    bottom: 24px;
    left: 24px;
}

.up-optin-modal--top-right {
    top: 24px;
    right: 24px;
}

.up-optin-modal--top-left {
    top: 24px;
    left: 24px;
}

.up-optin-modal--center {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
}

.up-optin-modal--center.up-optin-modal--visible {
    transform: translate(-50%, -50%) scale(1);
}

/* Modal Content */
.up-optin-modal__content {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: 16px;
    padding: 24px;
    max-width: 360px;
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    text-align: center;
}

/* Icon */
.up-optin-modal__icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 16px;
    border: 3px solid rgba(255, 255, 255, 0.1);
}

.up-optin-modal__icon-default {
    font-size: 48px;
    margin-bottom: 16px;
    animation: up-bounce 2s ease-in-out infinite;
}

@keyframes up-bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* Text */
.up-optin-modal__title {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.up-optin-modal__body {
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 20px 0;
}

/* Buttons */
.up-optin-modal__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.up-optin-modal__btn {
    border: none;
    border-radius: 10px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.up-optin-modal__btn--primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
}

.up-optin-modal__btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

.up-optin-modal__btn--secondary {
    background: transparent;
    color: #64748b;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.up-optin-modal__btn--secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #94a3b8;
}

/* Bell Icon */
.up-bell {
    position: fixed;
    z-index: 999998;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
    transition: all 0.3s ease;
    animation: up-pulse 2s ease-in-out infinite;
}

.up-bell:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

@keyframes up-pulse {

    0%,
    100% {
        box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
    }

    50% {
        box-shadow: 0 4px 20px rgba(59, 130, 246, 0.6);
    }
}

/* Bell Position Variants */
.up-bell--bottom-right {
    bottom: 24px;
    right: 24px;
}

.up-bell--bottom-left {
    bottom: 24px;
    left: 24px;
}

.up-bell--top-right {
    top: 24px;
    right: 24px;
}

.up-bell--top-left {
    top: 24px;
    left: 24px;
}

/* Mobile Responsive */
@media (max-width: 480px) {

    .up-optin-modal--bottom-right,
    .up-optin-modal--bottom-left {
        bottom: 12px;
        left: 12px;
        right: 12px;
    }

    .up-optin-modal__content {
        max-width: 100%;
    }

    .up-bell {
        bottom: 12px !important;
        right: 12px !important;
        left: auto !important;
        width: 48px;
        height: 48px;
        font-size: 20px;
    }
}