/**
 * WifiPedia Notifications & Soft-Gate UI Theme
 */

/* ── MODAL BACKDROP & CONTAINER ── */
.wp-notif-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    animation: wpFadeIn 0.3s ease;
}

.wp-notif-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 480px;
    padding: 2rem 1.75rem;
    position: relative;
    text-align: center;
}

.wp-notif-icon-bubble {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #0d6efd 0%, #6366f1 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    color: #ffffff;
    font-size: 2rem;
    box-shadow: 0 10px 25px rgba(13, 110, 253, 0.35);
    animation: wpPulse 2s infinite ease-in-out;
}

.wp-notif-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.6rem;
    letter-spacing: -0.02em;
}

.wp-notif-desc {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.55;
    margin-bottom: 1.25rem;
}

.wp-notif-features {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 0.9rem;
    text-align: left;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 360px;
    overflow-y: auto;
}

.wp-notif-feat-item {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px dashed #e2e8f0;
}

.wp-notif-feat-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.wp-notif-feat-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
}

.wp-notif-feat-icon.bg-emerald { background: #dcfce7; color: #16a34a; }
.wp-notif-feat-icon.bg-blue    { background: #dbeafe; color: #2563eb; }
.wp-notif-feat-icon.bg-indigo  { background: #e0e7ff; color: #4f46e5; }
.wp-notif-feat-icon.bg-teal    { background: #ccfbf1; color: #0d9488; }
.wp-notif-feat-icon.bg-amber   { background: #fef3c7; color: #d97706; }

.wp-notif-feat-title {
    font-size: 0.84rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 2px;
    line-height: 1.3;
}

.wp-notif-feat-desc {
    font-size: 0.76rem;
    color: #64748b;
    line-height: 1.38;
}

.wp-notif-actions {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.btn-wp-notif-primary {
    width: 100%;
    padding: 0.85rem 1.25rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #0d6efd 0%, #2563eb 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(13, 110, 253, 0.35);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-wp-notif-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.45);
}

.btn-wp-notif-secondary {
    width: 100%;
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    background: transparent;
    color: #64748b;
    font-weight: 600;
    font-size: 0.88rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-wp-notif-secondary:hover {
    background: #f1f5f9;
    color: #334155;
}

/* ── STICKY WARNING NUDGE BAR (HIGH URGENCY & INTIMIDATING) ── */
.wp-sticky-nudge {
    width: 100%;
    border-radius: 14px;
    margin-bottom: 1.35rem;
    position: relative;
    overflow: hidden;
    animation: wpSlideDown 0.35s ease;
    transition: all 0.3s ease;
}

.wp-sticky-nudge.is-warning {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 1px solid #fde68a;
    color: #92400e;
    box-shadow: 0 4px 15px rgba(217, 119, 6, 0.08);
}

.wp-sticky-nudge.is-warning .pulse-bell {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    font-size: 0.95rem;
    color: #d97706;
    animation: wpPulse 1.8s infinite;
}

.wp-sticky-nudge.is-warning .btn-nudge-action {
    background: #ffffff;
    color: #b45309;
    border: 1px solid #fcd34d;
    font-weight: 700;
    font-size: 0.8rem;
    border-radius: 8px;
    padding: 0.4rem 0.9rem;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: all 0.2s;
}
.wp-sticky-nudge.is-warning .btn-nudge-action:hover {
    background: #b45309;
    color: #ffffff;
}

/* ── INTIMIDATING BUT ELEGANT DANGER STATE (EXECUTIVE RESTRICTED STATE) ── */
.wp-sticky-nudge.is-danger {
    background: linear-gradient(135deg, #090d16 0%, #13111c 50%, #1a0f16 100%);
    border: 1px solid rgba(225, 29, 72, 0.4);
    border-top: 3px solid #f43f5e;
    color: #f8fafc;
    box-shadow: 0 12px 30px -6px rgba(0, 0, 0, 0.5), 0 0 20px -3px rgba(225, 29, 72, 0.18);
    position: relative;
    border-radius: 14px;
}

.wp-sticky-nudge.is-danger .pulse-bell {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(225, 29, 72, 0.12);
    border: 1px solid rgba(225, 29, 72, 0.35);
    color: #fb7185;
    font-size: 1.15rem;
    box-shadow: 0 0 16px rgba(225, 29, 72, 0.2);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.wp-sticky-nudge.is-danger:hover .pulse-bell {
    background: rgba(225, 29, 72, 0.2);
    box-shadow: 0 0 22px rgba(225, 29, 72, 0.35);
    transform: scale(1.04);
}

.wp-sticky-nudge.is-danger .nudge-badge {
    background: rgba(225, 29, 72, 0.15);
    border: 1px solid rgba(225, 29, 72, 0.35);
    color: #fecdd3;
    font-weight: 700;
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    padding: 0.22rem 0.65rem;
    border-radius: 6px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.wp-sticky-nudge.is-danger .nudge-headline {
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
    line-height: 1.4;
}

.wp-sticky-nudge.is-danger .nudge-desc {
    color: #94a3b8;
    font-size: 0.82rem;
    line-height: 1.5;
    margin-top: 0.25rem;
}

.wp-sticky-nudge.is-danger .nudge-desc strong {
    color: #fecdd3;
    font-weight: 600;
}

.wp-sticky-nudge.is-danger .btn-nudge-action {
    background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.83rem;
    border-radius: 9px;
    padding: 0.55rem 1.25rem;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 14px rgba(225, 29, 72, 0.35);
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.wp-sticky-nudge.is-danger .btn-nudge-action:hover {
    background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(225, 29, 72, 0.5);
}

/* ── UNBLOCK GUIDE STEPS ── */
.unblock-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: left;
}

.unblock-step-item {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.85rem 1rem;
}

.unblock-step-item .step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #0d6efd;
    color: #ffffff;
    font-weight: 800;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ── IN-APP NOTIFICATION BELL & DROPDOWN ── */
.wp-notif-bell-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(13, 110, 253, 0.08);
    color: #0d6efd;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.wp-notif-bell-btn:hover {
    background: rgba(13, 110, 253, 0.16);
    transform: scale(1.05);
    color: #0b5ed7;
}

.wp-notif-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #ef4444;
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 0.15em 0.45em;
    border-radius: 999px;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 5px rgba(239, 68, 68, 0.4);
    display: none;
}

.wp-inbox-dropdown {
    width: 340px;
    max-width: 90vw;
    border-radius: 16px;
    box-shadow: 0 20px 35px -5px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
    border: none;
    padding: 0;
    overflow: hidden;
}

@media (max-width: 576px) {
    .wp-inbox-dropdown {
        position: fixed !important;
        top: 60px !important;
        left: 10px !important;
        right: 10px !important;
        width: auto !important;
        max-width: calc(100vw - 20px) !important;
        transform: none !important;
        margin: 0 !important;
        border-radius: 16px !important;
        box-shadow: 0 12px 35px rgba(0, 0, 0, 0.22) !important;
        z-index: 1060 !important;
    }
}

.wp-inbox-header {
    padding: 0.85rem 1rem;
    background: #ffffff;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.wp-inbox-list {
    max-height: 360px;
    overflow-y: auto;
}

.wp-inbox-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid #f8fafc;
    text-decoration: none;
    color: #1e293b;
    transition: background 0.15s ease;
}

.wp-inbox-item:hover {
    background: #f8fafc;
    color: #0f172a;
}

.wp-inbox-item.unread {
    background: rgba(13, 110, 253, 0.04);
}

.wp-inbox-item.unread::before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #0d6efd;
    position: absolute;
    left: 8px;
    margin-top: 6px;
}

.wp-inbox-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.9rem;
}

.wp-inbox-content {
    flex-grow: 1;
    min-width: 0;
}

.wp-inbox-title {
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wp-inbox-body {
    font-size: 0.78rem;
    color: #64748b;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wp-inbox-time {
    font-size: 0.7rem;
    color: #94a3b8;
    margin-top: 3px;
}

/* ── FLOATING TOAST ── */
.wp-floating-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #0f172a;
    color: #ffffff;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
    z-index: 10001;
    max-width: 340px;
}

/* Keyframes */
@keyframes wpFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes wpSlideDown { from { transform: translateY(-15px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes wpPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }

/* ── CONTAINERLESS FLOATING ANNOUNCEMENT MODAL ── */
.wp-announcement-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 15, 30, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    animation: wpFadeIn 0.35s ease;
    overflow-y: auto;
}

.wp-announcement-stage {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 560px;
    width: 100%;
    margin: auto;
    text-align: center;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    animation: wpFloatZoom 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.wp-announcement-stage.is-fullscreen {
    max-width: 860px;
}

/* Floating Close Button with Countdown */
.wp-announcement-close-btn {
    position: absolute;
    top: -20px;
    right: -10px;
    z-index: 10;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #e2e8f0;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.45rem 0.95rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: not-allowed;
    opacity: 0.85;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
    transition: all 0.25s ease;
    user-select: none;
}

.wp-announcement-close-btn.is-ready {
    cursor: pointer;
    opacity: 1;
    background: rgba(239, 68, 68, 0.85);
    border-color: rgba(239, 68, 68, 0.9);
    color: #ffffff;
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.5);
    animation: wpPulseBtn 1.5s infinite ease-in-out;
}

.wp-announcement-close-btn.is-ready:hover {
    background: #dc2626;
    transform: scale(1.06);
}

.wp-announcement-close-btn .countdown-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 800;
}

/* Containerless Artwork (No Card Box!) */
.wp-announcement-artwork-wrapper {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.wp-announcement-artwork {
    max-width: 100%;
    max-height: 52vh;
    object-fit: contain;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    /* Adheres strictly to PNG alpha transparency silhouette! */
    filter: drop-shadow(0 20px 35px rgba(0, 0, 0, 0.65)) drop-shadow(0 4px 10px rgba(0, 0, 0, 0.4));
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.wp-announcement-stage.is-fullscreen .wp-announcement-artwork {
    max-height: 65vh;
}

.wp-announcement-artwork:hover {
    transform: scale(1.02);
}

/* Floating Text Block */
.wp-announcement-text-block {
    margin-top: 1.25rem;
    max-width: 480px;
    text-align: center;
}

.wp-announcement-title {
    font-size: 1.45rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.02em;
    margin-bottom: 0.45rem;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.85);
}

.wp-announcement-desc {
    font-size: 0.95rem;
    color: #e2e8f0;
    line-height: 1.5;
    margin-bottom: 1.25rem;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8);
}

/* Floating CTA Pill */
.wp-announcement-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 0.85rem 2.2rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #0d6efd 0%, #6366f1 100%);
    color: #ffffff !important;
    font-weight: 800;
    font-size: 1rem;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(13, 110, 253, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.2) inset;
    transition: all 0.25s ease;
    cursor: pointer;
}

.wp-announcement-cta-btn:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 15px 35px rgba(99, 102, 241, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.3) inset;
    color: #ffffff !important;
}

.wp-announcement-cta-btn.disabled {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed !important;
    filter: grayscale(0.5);
    box-shadow: none !important;
    transform: none !important;
}

@keyframes wpFloatZoom {
    0% { transform: scale(0.85); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

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

@media (max-width: 576px) {
    .wp-announcement-close-btn {
        top: -42px;
        right: 0;
    }
    .wp-announcement-title {
        font-size: 1.2rem;
    }
    .wp-announcement-desc {
        font-size: 0.88rem;
    }
    .wp-announcement-cta-btn {
        width: 100%;
        padding: 0.8rem 1.5rem;
    }
}

