/* ==========================================================================
   ParkNow — Facebook-Style Interactive Notification Dropdown & Mobile Panel
   ========================================================================== */

/* Notification Bell Wrapper in Header */
.notification-center-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.notification-bell-btn {
    position: relative;
    outline: none;
    cursor: pointer;
    border: 1px solid var(--brand-border, #ECE8F4);
    background: var(--brand-white, #FFFFFF);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.notification-bell-btn:hover {
    background: var(--brand-lavender, #F0ECF8);
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(75, 63, 114, 0.12);
}

.notification-bell-btn.active {
    background: var(--brand-lavender, #F0ECF8);
    border-color: var(--brand-action, #59468F);
    color: var(--brand-action, #59468F);
}

/* Red Counter Badge on Bell */
.notification-counter-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    border-radius: 9999px;
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    color: #FFFFFF;
    font-size: 0.68rem;
    font-weight: 800;
    font-family: 'Inter', -apple-system, sans-serif;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #FFFFFF;
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.45);
    line-height: 1;
    z-index: 2;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes badgePop {
    0% { transform: scale(0.6); opacity: 0; }
    60% { transform: scale(1.15); }
    100% { transform: scale(1); opacity: 1; }
}

.notification-counter-badge.pop {
    animation: badgePop 0.3s ease-out;
}

/* ==========================================================================
   DESKTOP DROPDOWN PANEL (>= 768px)
   ========================================================================== */
.notification-dropdown-panel {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 420px;
    max-width: calc(100vw - 32px);
    background: #FFFFFF;
    border-radius: 20px;
    border: 1px solid rgba(75, 63, 114, 0.14);
    box-shadow: 0 20px 48px -8px rgba(36, 37, 54, 0.20), 0 4px 16px rgba(36, 37, 54, 0.08);
    z-index: 1060;
    overflow: hidden;
    display: none;
    flex-direction: column;
    opacity: 0;
    transform: translateY(-8px) scale(0.97);
    pointer-events: none;
    transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.notification-dropdown-panel.show {
    display: flex;
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* Top Caret Indicator */
.notification-dropdown-panel::before {
    content: '';
    position: absolute;
    top: -7px;
    right: 14px;
    width: 14px;
    height: 14px;
    background: #FFFFFF;
    transform: rotate(45deg);
    border-left: 1px solid rgba(75, 63, 114, 0.14);
    border-top: 1px solid rgba(75, 63, 114, 0.14);
    z-index: 1;
}

/* ==========================================================================
   MOBILE BOTTOM SHEET OVERRIDES (< 768px)
   ========================================================================== */
.notification-sheet-container {
    max-height: 88vh;
    padding: 10px 14px 20px 14px;
    display: flex;
    flex-direction: column;
}

/* Panel Header */
.notif-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px 10px 16px;
    position: relative;
    z-index: 2;
    background: #FFFFFF;
    border-bottom: 1px solid rgba(75, 63, 114, 0.06);
}

.notif-header-title-box {
    display: flex;
    align-items: center;
    gap: 8px;
}

.notif-header-title {
    font-size: 1.12rem;
    font-weight: 800;
    color: var(--brand-charcoal, #242536);
    letter-spacing: -0.3px;
    margin: 0;
}

.notif-unread-pill {
    background: rgba(89, 70, 143, 0.12);
    color: var(--brand-action, #59468F);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
    letter-spacing: -0.2px;
}

/* Action Buttons */
.btn-mark-all-read {
    border: none;
    background: var(--brand-lavender, #F0ECF8);
    color: var(--brand-action, #59468F);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-mark-all-read:hover {
    background: #E5DEF4;
    color: var(--brand-purple, #4B3F72);
    transform: translateY(-0.5px);
}

.btn-mark-all-read:active {
    transform: scale(0.96);
}

.btn-sheet-close {
    background: #F3F4F6;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #4B5563;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-sheet-close:active {
    background: #E5E7EB;
}

/* Filter Navigation Tabs (Facebook Style) */
.notif-filter-tabs {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: #FAF9FC;
    border-bottom: 1px solid rgba(75, 63, 114, 0.08);
}

.notif-filter-chip {
    border: none;
    background: transparent;
    color: #64748B;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.18s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.notif-filter-chip:hover {
    background: rgba(89, 70, 143, 0.08);
    color: var(--brand-action, #59468F);
}

.notif-filter-chip.active {
    background: var(--brand-action, #59468F);
    color: #FFFFFF;
    box-shadow: 0 3px 10px rgba(89, 70, 143, 0.3);
}

.notif-filter-chip-count {
    font-size: 0.68rem;
    padding: 1px 6px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.08);
    font-weight: 800;
}

.notif-filter-chip.active .notif-filter-chip-count {
    background: rgba(255, 255, 255, 0.25);
    color: #FFFFFF;
}

/* Scrollable Feed Container */
.notif-scroll-feed {
    max-height: 420px;
    min-height: 180px;
    overflow-y: auto;
    padding: 8px 10px;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(75, 63, 114, 0.2) transparent;
}

.notif-scroll-feed::-webkit-scrollbar {
    width: 5px;
}

.notif-scroll-feed::-webkit-scrollbar-thumb {
    background: rgba(75, 63, 114, 0.2);
    border-radius: 10px;
}

/* ==========================================================================
   NOTIFICATION CARD STYLES
   ========================================================================== */
.notif-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    margin-bottom: 6px;
    cursor: pointer;
    position: relative;
    text-decoration: none;
    color: inherit;
    border: 1px solid transparent;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
}

.notif-card:last-child {
    margin-bottom: 0;
}

/* Unread Card Highlight */
.notif-card.unread {
    background: linear-gradient(90deg, rgba(89, 70, 143, 0.07) 0%, rgba(89, 70, 143, 0.015) 100%);
    border-left: 3.5px solid var(--brand-action, #59468F);
    box-shadow: 0 2px 6px rgba(75, 63, 114, 0.03);
}

.notif-card.read {
    background: #FFFFFF;
    border-left: 3.5px solid transparent;
    opacity: 0.92;
}

.notif-card:hover {
    background: rgba(89, 70, 143, 0.06);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(75, 63, 114, 0.06);
}

.notif-card:active {
    transform: scale(0.99);
}

/* 3D / Category Icon Box */
.notif-icon-bubble {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    position: relative;
}

.notif-icon-bubble svg, .notif-icon-bubble i {
    width: 20px;
    height: 20px;
    stroke-width: 2.2;
}

/* Card Content Area */
.notif-content-area {
    flex: 1;
    min-width: 0;
}

.notif-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 4px;
}

.notif-card-title {
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--brand-charcoal, #242536);
    line-height: 1.35;
    margin: 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notif-card.unread .notif-card-title {
    font-weight: 800;
    color: #1E1B4B;
}

.notif-card-time {
    font-size: 0.68rem;
    color: #94A3B8;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}

.notif-card.unread .notif-card-time {
    color: var(--brand-action, #59468F);
    font-weight: 600;
}

.notif-card-desc {
    font-size: 0.77rem;
    color: #475569;
    line-height: 1.45;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Category & Action Meta Row */
.notif-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 4px;
}

.notif-category-badge {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    letter-spacing: -0.1px;
}

.notif-cta-link {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--brand-action, #59468F);
    display: inline-flex;
    align-items: center;
    gap: 3px;
    transition: gap 0.2s ease;
}

.notif-card:hover .notif-cta-link {
    gap: 6px;
    text-decoration: underline;
}

/* Right Unread Indicator Dot */
.notif-status-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    align-self: center;
    flex-shrink: 0;
    min-width: 14px;
}

.notif-dot-btn {
    background: transparent;
    border: none;
    padding: 4px;
    margin: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.18s ease;
}

.notif-dot-btn:hover {
    background: rgba(89, 70, 143, 0.12);
    transform: scale(1.15);
}

.notif-unread-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--brand-action, #59468F);
    box-shadow: 0 0 0 3px rgba(89, 70, 143, 0.25);
    transition: all 0.2s ease;
}

/* ==========================================================================
   PANEL FOOTER
   ========================================================================== */
.notif-panel-footer {
    padding: 10px 16px;
    background: #FAF9FC;
    border-top: 1px solid rgba(75, 63, 114, 0.08);
    text-align: center;
    position: relative;
    z-index: 2;
}

.notif-view-all-btn {
    color: var(--brand-action, #59468F);
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.notif-view-all-btn:hover {
    background: var(--brand-lavender, #F0ECF8);
    color: var(--brand-purple, #4B3F72);
    gap: 10px;
}

/* ==========================================================================
   EMPTY & AUTH STATES
   ========================================================================== */
.notif-empty-state {
    padding: 36px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.notif-empty-icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background: var(--brand-lavender, #F0ECF8);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    color: var(--brand-action, #59468F);
}

.notif-empty-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--brand-charcoal, #242536);
    margin-bottom: 4px;
}

.notif-empty-subtitle {
    font-size: 0.77rem;
    color: #64748B;
    max-width: 280px;
    line-height: 1.45;
    margin: 0 auto;
}
