/* ============================================
   Ad Block Detector - UI Styles
   ============================================ */

/* --- Warning Banner --- */
.wpab-warning-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999998;
    display: flex;
    justify-content: center;
    padding: 0 16px;
    pointer-events: none;
    animation: wpab-slide-up 0.4s ease-out;
}

.wpab-warning-content {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 800px;
    width: 100%;
    padding: 14px 20px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #f0f0f0;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 180, 0, 0.2);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 14px;
    pointer-events: all;
    backdrop-filter: blur(10px);
}

.wpab-warning-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.wpab-warning-text {
    flex: 1;
    line-height: 1.5;
}

.wpab-warning-timer {
    flex-shrink: 0;
    font-weight: 700;
    font-size: 13px;
    color: #ffb400;
    background: rgba(255, 180, 0, 0.1);
    padding: 4px 10px;
    border-radius: 6px;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.wpab-warning-close {
    flex-shrink: 0;
    background: none;
    border: none;
    color: #888;
    font-size: 22px;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    transition: color 0.2s;
}

.wpab-warning-close:hover {
    color: #fff;
}

/* --- Fullscreen Block Overlay --- */
.wpab-block-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 10, 30, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    animation: wpab-fade-in 0.5s ease-out;
}

.wpab-block-modal {
    text-align: center;
    max-width: 460px;
    width: 90%;
    padding: 48px 36px;
    background: linear-gradient(145deg, #1e1e3a, #252550);
    border-radius: 20px;
    box-shadow:
        0 24px 80px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    color: #e8e8f0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    animation: wpab-scale-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.wpab-block-icon {
    font-size: 56px;
    margin-bottom: 16px;
    animation: wpab-pulse 2s ease-in-out infinite;
}

.wpab-block-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 16px;
    background: linear-gradient(135deg, #ff6b6b, #ffa500);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.wpab-block-text {
    font-size: 15px;
    line-height: 1.7;
    margin: 0 0 28px;
    color: #b0b0c8;
}

.wpab-block-btn {
    display: inline-block;
    padding: 14px 36px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #6c63ff, #4834d4);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(108, 99, 255, 0.3);
}

.wpab-block-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(108, 99, 255, 0.45);
    background: linear-gradient(135deg, #7c73ff, #5844e4);
}

.wpab-block-btn:active {
    transform: translateY(0);
}

/* --- Animations --- */
@keyframes wpab-slide-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes wpab-fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes wpab-scale-in {
    from {
        opacity: 0;
        transform: scale(0.85);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes wpab-pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
    }
}

/* --- Responsive --- */
@media (max-width: 600px) {
    .wpab-warning-content {
        flex-wrap: wrap;
        gap: 8px;
        padding: 12px 16px;
        margin-bottom: 12px;
    }

    .wpab-warning-timer {
        width: 100%;
        text-align: center;
    }

    .wpab-block-modal {
        padding: 36px 24px;
    }

    .wpab-block-icon {
        font-size: 42px;
    }

    .wpab-block-title {
        font-size: 19px;
    }
}