/* =========================================
   FUTUREVERSE NOTIFICATIONS
   White Mode + Dark Mode + Shimmer Finish
========================================= */

/* Theme Variables */

:root {
    color-scheme: light;

    --nt-bg: #ffffff;
    --nt-surface: #ffffff;
    --nt-card: #ffffff;
    --nt-hover: #f7f8fb;

    --nt-text: #171923;
    --nt-muted: #737b8c;
    --nt-subtle: #9299a8;

    --nt-border: #e9ebf0;
    --nt-border-strong: #dce0e8;

    --nt-accent: #6565d9;
    --nt-accent-bg: #f0f0ff;
    --nt-accent-border: #dcdcff;

    --nt-unread-dot: #6666df;
    --nt-shadow: 0 3px 16px rgba(20, 25, 45, 0.035);

    --nt-radius: 14px;
}

/* Dark Theme */

html[data-theme="dark"] {
    color-scheme: dark;

    --nt-bg: #080b12;
    --nt-surface: #0d111a;
    --nt-card: #10151f;
    --nt-hover: #151b27;

    --nt-text: #f1f3f7;
    --nt-muted: #98a1b2;
    --nt-subtle: #697488;

    --nt-border: rgba(255, 255, 255, 0.08);
    --nt-border-strong: rgba(255, 255, 255, 0.14);

    --nt-accent: #b3b1ff;
    --nt-accent-bg: rgba(165, 169, 255, 0.1);
    --nt-accent-border: rgba(165, 169, 255, 0.2);

    --nt-unread-dot: #b7b5ff;
    --nt-shadow: none;
}

/* Reset */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--nt-bg);
    scroll-behavior: smooth;
}

body.notification-body {
    min-height: 100vh;
    background: var(--nt-bg);
    color: var(--nt-text);

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    -webkit-font-smoothing: antialiased;
    line-height: 1.5;

    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}

button,
a {
    font: inherit;
}

button {
    color: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--nt-accent);
    outline-offset: 3px;
}

/* Page */

.notification-page {
    width: min(100% - 36px, 820px);
    min-height: 100vh;
    margin: 0 auto;
    padding: 30px 0 24px;
}

/* Header */

.notification-header {
    display: flex;
    align-items: center;
    gap: 13px;

    padding-bottom: 22px;
    margin-bottom: 24px;

    border-bottom: 1px solid var(--nt-border);
}

.back-button {
    width: 38px;
    height: 38px;
    flex-shrink: 0;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid var(--nt-border);
    border-radius: 11px;

    background: var(--nt-card);
    color: var(--nt-muted);

    transition: 0.2s ease;
}

.back-button:hover {
    background: var(--nt-hover);
    color: var(--nt-text);
    border-color: var(--nt-border-strong);
}

.header-content {
    flex: 1;
    min-width: 0;
}

.header-content h1 {
    font-size: 21px;
    font-weight: 750;
    letter-spacing: -0.55px;
    line-height: 1.35;
}

.header-content p {
    margin-top: 3px;
    color: var(--nt-muted);
    font-size: 11px;
}

.mark-all-read {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    flex-shrink: 0;
    padding: 9px 11px;

    border: 1px solid var(--nt-border);
    border-radius: 9px;

    background: var(--nt-card);
    color: var(--nt-text);

    font-size: 10px;
    font-weight: 650;

    cursor: pointer;
    transition: 0.2s ease;
}

.mark-all-read:hover:not(:disabled) {
    background: var(--nt-hover);
    border-color: var(--nt-border-strong);
}

.mark-all-read:disabled {
    opacity: 0.45;
    cursor: default;
}

/* Horizontal Tabs */

.notification-tabs {
    display: flex;
    align-items: center;
    gap: 5px;

    width: 100%;
    margin-bottom: 24px;
    padding: 4px;

    overflow-x: auto;

    border: 1px solid var(--nt-border);
    border-radius: 12px;

    background: var(--nt-surface);

    scrollbar-width: none;
}

.notification-tabs::-webkit-scrollbar {
    display: none;
}

.notification-tab {
    position: relative;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    flex: 1;
    min-width: 0;
    padding: 10px 8px;

    border: 1px solid transparent;
    border-radius: 9px;

    background: transparent;
    color: var(--nt-muted);

    white-space: nowrap;
    font-size: 11px;
    font-weight: 650;

    cursor: pointer;
    transition:
        color 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease;
}

.notification-tab:hover {
    color: var(--nt-text);
    background: var(--nt-hover);
}

.notification-tab.active {
    color: var(--nt-text);
    background: var(--nt-card);
    border-color: var(--nt-border);
    box-shadow: var(--nt-shadow);
}

.tab-count {
    min-width: 19px;
    height: 19px;
    padding: 0 5px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 6px;
    background: var(--nt-hover);
    color: var(--nt-muted);

    font-size: 9px;
    font-weight: 750;
}

.notification-tab.active .tab-count {
    background: var(--nt-accent-bg);
    color: var(--nt-accent);
}

/* List Heading */

.list-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    margin-bottom: 13px;
}

.list-heading h2 {
    font-size: 14px;
    font-weight: 750;
    letter-spacing: -0.2px;
}

.list-heading p {
    margin-top: 3px;
    color: var(--nt-muted);
    font-size: 10px;
}

.refresh-btn {
    width: 33px;
    height: 33px;
    flex-shrink: 0;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid var(--nt-border);
    border-radius: 9px;

    background: var(--nt-card);
    color: var(--nt-muted);

    font-size: 11px;
    cursor: pointer;
    transition: 0.2s ease;
}

.refresh-btn:hover {
    background: var(--nt-hover);
    color: var(--nt-text);
}

.refresh-btn.is-refreshing i {
    animation: nt-rotate 0.7s linear infinite;
}

@keyframes nt-rotate {
    to {
        transform: rotate(360deg);
    }
}

/* Single Notification List */

.notification-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
    min-width: 0;
}

/* Notification Card */

.notification-card {
    position: relative;

    display: flex;
    align-items: flex-start;
    gap: 12px;

    min-width: 0;
    padding: 15px;

    border: 1px solid var(--nt-border);
    border-radius: var(--nt-radius);

    background: var(--nt-card);
    box-shadow: var(--nt-shadow);

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease;
}

.notification-card:hover {
    background: var(--nt-hover);
    border-color: var(--nt-border-strong);
}

.notification-card.unread {
    border-color: var(--nt-accent-border);
}

.notification-card.unread::after {
    content: "";

    position: absolute;
    top: 17px;
    right: 15px;

    width: 6px;
    height: 6px;

    border-radius: 50%;
    background: var(--nt-unread-dot);
}

/* Icon */

.notification-icon {
    width: 37px;
    height: 37px;
    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid var(--nt-border);
    border-radius: 11px;

    background: var(--nt-hover);
    color: var(--nt-accent);

    font-size: 14px;
}

/* Content */

.notification-content {
    flex: 1;
    min-width: 0;
    padding-right: 8px;
}

.notification-content h3 {
    padding-right: 10px;

    color: var(--nt-text);
    font-size: 12px;
    font-weight: 750;
    line-height: 1.6;

    overflow-wrap: anywhere;
}

.notification-content p {
    margin-top: 4px;

    color: var(--nt-muted);
    font-size: 11px;
    line-height: 1.7;

    overflow-wrap: anywhere;
}

.notification-time {
    display: block;
    margin-top: 8px;

    color: var(--nt-subtle);
    font-size: 9px;
}

/* Actions */

.notification-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    flex-shrink: 0;
}

.notification-action-btn {
    width: 29px;
    height: 29px;
    flex-shrink: 0;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid var(--nt-border);
    border-radius: 8px;

    background: transparent;
    color: var(--nt-muted);

    font-size: 10px;
    cursor: pointer;
    transition: 0.2s ease;
}

.notification-action-btn:hover {
    background: var(--nt-hover);
    color: var(--nt-text);
    border-color: var(--nt-border-strong);
}

.notification-action-btn.archive-btn:hover {
    color: #21845b;
}

.notification-action-btn.delete-btn:hover {
    color: #dc4057;
}

html[data-theme="dark"]
.notification-action-btn.archive-btn:hover {
    color: #78dfae;
}

html[data-theme="dark"]
.notification-action-btn.delete-btn:hover {
    color: #ff899b;
}

/* Empty State */

.notification-empty {
    min-height: 150px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;

    padding: 24px 16px;

    border: 1px dashed var(--nt-border-strong);
    border-radius: var(--nt-radius);

    background: var(--nt-surface);
    text-align: center;
}

.notification-empty i {
    color: var(--nt-subtle);
    font-size: 23px;
}

.notification-empty p {
    color: var(--nt-muted);
    font-size: 11px;
}

/* Shimmer Finish */

.fv-shimmer {
    position: relative;
    overflow: hidden;

    background: #f1f2f5;
    background-image: linear-gradient(
        100deg,
        #f1f2f5 20%,
        #ffffff 38%,
        #e7e9ef 56%
    );

    background-size: 250% 100%;
    animation: fv-home-shimmer 1.8s linear infinite;
}

html[data-theme="dark"] .fv-shimmer {
    background-color: #141923;
    background-image: linear-gradient(
        100deg,
        #111620 20%,
        #252b36 38%,
        #111620 56%
    );
}

@keyframes fv-home-shimmer {
    0% {
        background-position: 100% 0;
    }

    100% {
        background-position: -150% 0;
    }
}

/* Optional Loading Skeleton */

.notification-skeleton {
    display: flex;
    align-items: flex-start;
    gap: 12px;

    padding: 15px;

    border: 1px solid var(--nt-border);
    border-radius: var(--nt-radius);
    background: var(--nt-card);
}

.skeleton-icon {
    width: 37px;
    height: 37px;
    flex-shrink: 0;
    border-radius: 11px;
}

.skeleton-content {
    flex: 1;
    min-width: 0;
    padding-top: 3px;
}

.skeleton-line {
    height: 9px;
    margin-bottom: 10px;
    border-radius: 5px;
}

.skeleton-title {
    width: 55%;
}

.skeleton-message {
    width: 85%;
}

.skeleton-time {
    width: 25%;
    height: 7px;
    margin-top: 12px;
}

/* Footer */

.notification-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    margin-top: 32px;
    padding: 18px 0 8px;

    border-top: 1px solid var(--nt-border);

    color: var(--nt-subtle);
    font-size: 10px;
}

.footer-brand {
    color: var(--nt-muted);
    font-weight: 750;
    letter-spacing: 0.3px;
}

/* Tablet and Desktop */

@media (min-width: 700px) {
    .notification-page {
        padding-top: 42px;
    }

    .notification-header {
        margin-bottom: 27px;
    }

    .notification-card {
        padding: 17px;
    }

    .notification-content h3 {
        font-size: 13px;
    }

    .notification-content p {
        font-size: 12px;
    }
}

/* Mobile */

@media (max-width: 520px) {
    .notification-page {
        width: calc(100% - 28px);
        padding-top: 20px;
        padding-bottom: 22px;
    }

    .notification-header {
        gap: 9px;
        padding-bottom: 19px;
        margin-bottom: 20px;
    }

    .back-button {
        width: 34px;
        height: 34px;
        border-radius: 10px;
    }

    .header-content h1 {
        font-size: 19px;
        letter-spacing: -0.4px;
    }

    .header-content p {
        font-size: 10px;
    }

    .mark-all-read {
        gap: 5px;
        padding: 8px;
        font-size: 9px;
    }

    .mark-all-read i {
        font-size: 9px;
    }

    .notification-tabs {
        gap: 3px;
        margin-bottom: 21px;
        padding: 3px;
    }

    .notification-tab {
        gap: 5px;
        padding: 9px 5px;
        font-size: 10px;
    }

    .tab-count {
        min-width: 17px;
        height: 17px;
        padding: 0 4px;
        font-size: 8px;
    }

    .list-heading h2 {
        font-size: 13px;
    }

    .list-heading p {
        font-size: 9px;
    }

    .notification-card {
        gap: 9px;
        padding: 12px 10px;
        border-radius: 12px;
    }

    .notification-icon {
        width: 32px;
        height: 32px;
        border-radius: 9px;
        font-size: 12px;
    }

    .notification-content {
        padding-right: 4px;
    }

    .notification-content h3 {
        font-size: 11px;
    }

    .notification-content p {
        font-size: 10px;
    }

    .notification-time {
        font-size: 8px;
    }

    .notification-card.unread::after {
        top: 13px;
        right: 10px;
        width: 5px;
        height: 5px;
    }

    .notification-actions {
        gap: 3px;
    }

    .notification-action-btn {
        width: 25px;
        height: 25px;
        font-size: 9px;
    }

    .notification-empty {
        min-height: 125px;
    }

    .notification-footer {
        margin-top: 25px;
        font-size: 9px;
    }
}

/* Very Small Screens */

@media (max-width: 360px) {
    .notification-page {
        width: calc(100% - 20px);
    }

    .header-content h1 {
        font-size: 17px;
    }

    .header-content p {
        font-size: 9px;
    }

    .mark-all-read {
        padding: 7px 6px;
    }

    .notification-tab {
        font-size: 9px;
        gap: 4px;
    }

    .notification-card {
        gap: 7px;
        padding: 10px 8px;
    }

    .notification-icon {
        width: 28px;
        height: 28px;
    }

    .notification-actions {
        flex-direction: column;
    }
}

/* Accessibility */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
















/* =========================================
   DESKTOP ONLY — NOTIFICATION PAGE CONTAINER
   Mobile layout remains unchanged
========================================= */

@media (min-width: 768px) {
    body.notification-body {
        background: #f3f5f9;
        min-height: 100vh;
        padding: 36px 24px;
    }

    html[data-theme="dark"] body.notification-body {
        background: #080b12;
    }

    .notification-page {
        width: min(100%, 1000px);
        min-height: calc(100vh - 72px);
        margin: 0 auto;
        padding: 34px 38px 26px;

        background: var(--nt-bg);
        border: 1px solid var(--nt-border);
        border-radius: 20px;

        box-shadow: 0 12px 40px rgba(25, 35, 55, 0.07);
    }

    html[data-theme="dark"] .notification-page {
        background: #0d111a;
        border-color: rgba(255, 255, 255, 0.08);
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
    }

    .notification-header {
        padding-bottom: 24px;
        margin-bottom: 26px;
    }

    .notification-tabs {
        background: var(--nt-hover);
        padding: 5px;
    }

    .notification-content-section {
        min-height: 280px;
        padding: 22px;
        border: 1px solid var(--nt-border);
        border-radius: 16px;
        background: var(--nt-surface);
    }

    .notification-card {
        background: var(--nt-card);
    }

    .notification-empty {
        min-height: 180px;
        background: var(--nt-card);
    }

    .notification-footer {
        margin-top: 26px;
    }
}