/* ==========================================================================
   EZ Ad Redirect v1.1.0 - Frontend Dialog Styles
   ========================================================================== */

/* Dialog Overlay */
.ezar-dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    padding: 20px;
    box-sizing: border-box;
}

.ezar-dialog-overlay.ezar-dialog-visible {
    background: rgba(0, 0, 0, 0.55);
}

/* Dialog Box */
.ezar-dialog {
    background: #fff;
    border-radius: 20px;
    padding: 40px 36px 36px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    position: relative;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
    transform: scale(0.8) translateY(30px);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}

.ezar-dialog-visible .ezar-dialog {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* Close button */
.ezar-dialog-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    color: #94a3b8;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    line-height: 1;
    padding: 0;
}

.ezar-dialog-close:hover {
    background: #f1f5f9;
    color: #475569;
}

/* Icon */
.ezar-dialog-icon {
    margin-bottom: 18px;
}

.ezar-dialog-icon svg {
    opacity: 0.9;
}

/* Banner */
.ezar-dialog-banner {
    margin-bottom: 18px;
    text-align: center;
    max-width: 100%;
    overflow: hidden;
}

.ezar-dialog-banner img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Text */
.ezar-dialog-text {
    font-size: 16px;
    color: #475569;
    line-height: 1.6;
    margin: 0 0 24px;
    font-weight: 500;
}

/* Button */
.ezar-dialog-btn {
    display: inline-block;
    padding: 14px 40px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.35);
    letter-spacing: 0.3px;
    min-width: 200px;
}

.ezar-dialog-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.45);
    filter: brightness(1.08);
}

.ezar-dialog-btn:active {
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 480px) {
    .ezar-dialog {
        padding: 32px 24px 28px;
        border-radius: 16px;
        max-width: 340px;
    }

    .ezar-dialog-text {
        font-size: 15px;
    }

    .ezar-dialog-btn {
        padding: 12px 32px;
        font-size: 15px;
        min-width: 160px;
    }

    .ezar-dialog-icon svg {
        width: 40px;
        height: 40px;
    }
}
