/**
 * notifications-hub.css
 * Ultra-clean, modern white theme for FRYNZY Notification Hub & Extension Activation Modal
 */

/* ── Notification Bell Badge in Top Bar ───────────────────────────────────── */
.header-notif-btn {
    position: relative;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #ffffff;
    color: #1e293b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.header-notif-btn:hover {
    background: #f8fafc;
    border-color: rgba(255, 0, 127, 0.3);
    color: #ff007f;
    transform: translateY(-1px);
}

.notif-unread-dot {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 9px;
    height: 9px;
    background: #ff007f;
    border: 2px solid #ffffff;
    border-radius: 50%;
    animation: notifPulse 2s infinite;
}

@keyframes notifPulse {
    0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(255, 0, 127, 0.7); }
    70% { transform: scale(1.15); box-shadow: 0 0 0 7px rgba(255, 0, 127, 0); }
    100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(255, 0, 127, 0); }
}

/* ── Notification Modal Backdrop & Dialog (100% Full Screen) ─────────────── */
.notification-modal-backdrop {
    position: fixed;
    inset: 0;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: #ffffff;
    display: none;
    align-items: stretch;
    justify-content: stretch;
    z-index: 10000;
    padding: 0;
    margin: 0;
    opacity: 0;
    transition: opacity 0.2s ease;
    overflow: hidden;
}

.notification-modal-backdrop.active {
    display: flex;
    opacity: 1;
}

.notification-modal-dialog {
    background: #ffffff;
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
    box-shadow: none;
    border: none;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: none;
    color: #1e293b;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    padding: 0;
}

.notification-modal-backdrop.active .notification-modal-dialog {
    transform: none;
}

/* ── Modal Header ─────────────────────────────────────────────────────────── */
.notif-modal-header {
    background: #ffffff;
    border-bottom: 1px solid #f1f5f9;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.notif-modal-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.notif-header-icon-box {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255, 0, 127, 0.12), rgba(139, 92, 246, 0.12));
    color: #ff007f;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.notif-header-title-wrap h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.notif-count-pill {
    background: #ff007f;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 99px;
    letter-spacing: 0.3px;
}

.notif-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.notif-btn-mark-all {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #64748b;
    padding: 7px 14px;
    border-radius: 99px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.notif-btn-mark-all:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.notif-btn-close {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: none;
    background: #f1f5f9;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.15s ease;
}

.notif-btn-close:hover {
    background: #e2e8f0;
    color: #0f172a;
    transform: rotate(90deg);
}

/* ── Modal Tabs ───────────────────────────────────────────────────────────── */
.notif-modal-tabs {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: #fafafa;
    border-bottom: 1px solid #f1f5f9;
    flex-shrink: 0;
}

.notif-tab-btn {
    background: transparent;
    border: none;
    color: #64748b;
    font-weight: 600;
    font-size: 0.88rem;
    padding: 7px 16px;
    border-radius: 99px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.notif-tab-btn:hover {
    color: #0f172a;
    background: #f1f5f9;
}

.notif-tab-btn.active {
    background: #0f172a;
    color: #ffffff;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.15);
}

/* ── Body Container with Views (List & Detail) ────────────────────────────── */
.notif-modal-body {
    flex: 1;
    overflow-y: auto;
    position: relative;
    background: #ffffff;
    width: 100%;
    box-sizing: border-box;
}

/* ── Notification List ────────────────────────────────────────────────────── */
.notif-list-container {
    max-width: 860px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
    padding: 24px 20px 60px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.notif-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 18px;
    border-radius: 16px;
    background: #ffffff;
    border: 1.5px solid #f1f5f9;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.notif-card:hover {
    border-color: #e2e8f0;
    background: #fafcff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.notif-card.unread {
    background: #fff8fb;
    border-color: rgba(255, 0, 127, 0.22);
}

.notif-card.unread::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    bottom: 14px;
    width: 4px;
    border-radius: 0 4px 4px 0;
    background: #ff007f;
}

/* Circular avatar */
.notif-avatar-col {
    position: relative;
    flex-shrink: 0;
}

.notif-avatar-img {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ff007f;
    box-shadow: 0 3px 10px rgba(255, 0, 127, 0.25);
    background: #f1f5f9;
}

.notif-avatar-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: #10b981;
    color: #ffffff;
    font-size: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
}

.notif-content-col {
    flex: 1;
    min-width: 0;
}

.notif-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.notif-sender-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 6px;
}

.notif-verified-icon {
    color: #0284c7;
    font-size: 0.78rem;
}

.notif-meta-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.notif-time-text {
    font-size: 0.76rem;
    color: #94a3b8;
}

.notif-card-title {
    margin: 0 0 6px 0;
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
}

.notif-card-snippet {
    margin: 0;
    font-size: 0.86rem;
    color: #475569;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notif-arrow-col {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    padding-top: 14px;
    font-size: 0.9rem;
    transition: transform 0.15s ease, color 0.15s ease;
}

.notif-card:hover .notif-arrow-col {
    color: #ff007f;
    transform: translateX(3px);
}

/* ── Message Detail View (Pure Text & Professional) ───────────────────────── */
.notif-detail-view {
    display: none;
    max-width: 860px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
    padding: 24px 20px 60px;
    animation: fadeInSlide 0.2s ease-out;
}

@keyframes fadeInSlide {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.notif-back-btn {
    background: #f1f5f9;
    border: none;
    outline: none;
    color: #475569;
    padding: 9px 18px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    transition: background 0.15s ease;
}

.notif-back-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.notif-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 18px;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.notif-detail-sender {
    display: flex;
    align-items: center;
    gap: 14px;
}

.notif-detail-sender-name {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
}

.notif-detail-tag {
    font-size: 0.78rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 6px;
    background: #eff6ff;
    color: #2563eb;
    border: none;
}

/* Status Banner inside Detail */
.ext-live-status-card {
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    border: none;
    transition: all 0.2s ease;
}

.ext-live-status-card.active {
    background: #f0fdf4;
    color: #166534;
}

.ext-live-status-card.inactive {
    background: #f8fafc;
    color: #1e293b;
}

.ext-status-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ext-status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.ext-live-status-card.active .ext-status-dot {
    background: #16a34a;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.2);
}

.ext-live-status-card.inactive .ext-status-dot {
    background: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

.ext-status-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 2px 0;
    color: #0f172a;
}

.ext-status-desc {
    font-size: 0.85rem;
    margin: 0;
    color: #64748b;
}

/* Clean, Solid, Borderless Action Buttons */
.guide-btn-primary {
    background: #2563eb !important;
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    padding: 12px 24px !important;
    border-radius: 8px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 9px !important;
    box-shadow: none !important;
    border: none !important;
    outline: none !important;
    cursor: pointer !important;
    transition: background-color 0.15s ease !important;
}

.guide-btn-primary:hover {
    background: #1d4ed8 !important;
    box-shadow: none !important;
    transform: none !important;
}

.guide-btn-store {
    background: #2563eb !important;
    border: none !important;
    outline: none !important;
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    font-size: 0.88rem !important;
    padding: 10px 18px !important;
    border-radius: 8px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    transition: background-color 0.15s ease !important;
}

.guide-btn-store:hover {
    background: #1d4ed8 !important;
    color: #ffffff !important;
    border: none !important;
}
