/* =======================================================================
   ALGOVESTA - NOTIFICATION BELL SYSTEM CSS
   Premium Glassmorphism Design with Neon Accents
   Supports [data-theme="dark"] and [data-theme="light"]
   ======================================================================= */

/* --- Bell Container --- */
.notif-bell-container {
    position: relative;
    display: flex;
    align-items: center;
}

/* --- Bell Button - Premium Glassmorphism --- */
.notif-bell-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
    overflow: hidden;
}

.notif-bell-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 11px;
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: 0;
}

.notif-bell-btn svg {
    position: relative;
    z-index: 1;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Theme Bell */
[data-theme="dark"] .notif-bell-btn {
    border-color: rgba(0, 242, 254, 0.15);
    color: #8b9cb8;
    background: rgba(15, 23, 42, 0.9);
    /* v15.2 PERFORMANCE: backdrop-filter kaldırıldı */
}

[data-theme="dark"] .notif-bell-btn::before {
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.12), rgba(79, 172, 254, 0.08), rgba(191, 0, 255, 0.06));
}

[data-theme="dark"] .notif-bell-btn:hover {
    border-color: rgba(0, 242, 254, 0.4);
    color: #00f2fe;
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.15), 0 0 40px rgba(0, 242, 254, 0.05), inset 0 0 20px rgba(0, 242, 254, 0.03);
    transform: translateY(-1px);
}

[data-theme="dark"] .notif-bell-btn:hover::before {
    opacity: 1;
}

[data-theme="dark"] .notif-bell-btn:hover svg {
    filter: drop-shadow(0 0 6px rgba(0, 242, 254, 0.5));
}

/* Light Theme Bell */
[data-theme="light"] .notif-bell-btn {
    border-color: rgba(59, 130, 246, 0.15);
    color: #64748b;
    background: rgba(255, 255, 255, 0.95);
    /* v15.2 PERFORMANCE: backdrop-filter kaldırıldı */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .notif-bell-btn::before {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(139, 92, 246, 0.05));
}

[data-theme="light"] .notif-bell-btn:hover {
    border-color: rgba(59, 130, 246, 0.35);
    color: #3b82f6;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.12), 0 1px 3px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}

[data-theme="light"] .notif-bell-btn:hover::before {
    opacity: 1;
}

/* Bell Ring Animation on Hover */
.notif-bell-btn:hover svg {
    animation: bellSwing 0.6s ease-in-out;
}

@keyframes bellSwing {
    0% { transform: rotate(0deg); }
    15% { transform: rotate(12deg); }
    30% { transform: rotate(-10deg); }
    45% { transform: rotate(8deg); }
    60% { transform: rotate(-6deg); }
    75% { transform: rotate(3deg); }
    100% { transform: rotate(0deg); }
}

/* Active/Open State */
.notif-bell-btn:active {
    transform: scale(0.95);
}

/* --- Badge - Premium Animated --- */
.notif-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 10px;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid;
    line-height: 1;
    z-index: 2;
    animation: badgeAppear 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes badgeAppear {
    0% { transform: scale(0); opacity: 0; }
    60% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

/* Badge Pulse Ring */
.notif-badge::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 12px;
    /* v15.2 PERFORMANCE: badgePulse infinite kaldırıldı */
    z-index: -1;
}

@keyframes badgePulse {
    0% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.4); opacity: 0; }
    100% { transform: scale(1); opacity: 0; }
}

[data-theme="dark"] .notif-badge {
    background: linear-gradient(135deg, #ef4444, #f97316);
    border-color: #0f172a;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.4), 0 0 20px rgba(239, 68, 68, 0.15);
}

[data-theme="dark"] .notif-badge::after {
    background: rgba(239, 68, 68, 0.3);
}

[data-theme="light"] .notif-badge {
    background: linear-gradient(135deg, #ef4444, #f97316);
    border-color: #ffffff;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

[data-theme="light"] .notif-badge::after {
    background: rgba(239, 68, 68, 0.2);
}

/* --- Dropdown - Premium Glass Panel --- */
.notif-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: -8px;
    width: 380px;
    border-radius: 16px;
    border: 1px solid;
    z-index: 1000;
    overflow: hidden;
    animation: dropdownSlide 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: top right;
}

@keyframes dropdownSlide {
    0% { opacity: 0; transform: translateY(-8px) scale(0.97); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

[data-theme="dark"] .notif-dropdown {
    background: rgba(15, 23, 42, 0.98);
    /* v15.2 PERFORMANCE: backdrop-filter kaldırıldı */
    border-color: rgba(0, 242, 254, 0.12);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 242, 254, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

[data-theme="light"] .notif-dropdown {
    background: rgba(255, 255, 255, 0.98);
    /* v15.2 PERFORMANCE: backdrop-filter kaldırıldı */
    border-color: rgba(59, 130, 246, 0.12);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.1), 0 4px 16px rgba(0, 0, 0, 0.06);
}

/* --- Dropdown Header - Premium --- */
.notif-dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px 14px;
    border-bottom: 1px solid;
}

[data-theme="dark"] .notif-dropdown-header {
    border-color: rgba(51, 65, 85, 0.5);
    background: rgba(15, 23, 42, 0.4);
}

[data-theme="light"] .notif-dropdown-header {
    border-color: #f1f5f9;
    background: rgba(248, 250, 252, 0.5);
}

.notif-dropdown-title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

[data-theme="dark"] .notif-dropdown-title {
    background: linear-gradient(135deg, #e2e8f0, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="light"] .notif-dropdown-title {
    color: #1e293b;
}

.notif-mark-all-btn {
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px 10px;
    border-radius: 6px;
    transition: all 0.2s ease;
    letter-spacing: 0.02em;
}

[data-theme="dark"] .notif-mark-all-btn {
    color: #00f2fe;
}

[data-theme="dark"] .notif-mark-all-btn:hover {
    background: rgba(0, 242, 254, 0.1);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.08);
}

[data-theme="light"] .notif-mark-all-btn {
    color: #3b82f6;
}

[data-theme="light"] .notif-mark-all-btn:hover {
    background: rgba(59, 130, 246, 0.08);
}

/* --- Dropdown List --- */
.notif-dropdown-list {
    max-height: 320px;
    overflow-y: auto;
    scrollbar-width: thin;
}

[data-theme="dark"] .notif-dropdown-list {
    scrollbar-color: #334155 transparent;
}

/* --- Notification Item - Enhanced --- */
.notif-item {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    border-bottom: 1px solid;
    position: relative;
}

[data-theme="dark"] .notif-item {
    border-bottom-color: rgba(51, 65, 85, 0.4);
}

[data-theme="light"] .notif-item {
    border-bottom-color: #f1f5f9;
}

[data-theme="dark"] .notif-item:hover {
    background: rgba(0, 242, 254, 0.04);
}

[data-theme="light"] .notif-item:hover {
    background: rgba(59, 130, 246, 0.04);
}

.notif-item.unread {
    background: rgba(34, 211, 238, 0.04);
}

[data-theme="dark"] .notif-item.unread {
    background: rgba(0, 242, 254, 0.04);
}

[data-theme="light"] .notif-item.unread {
    background: rgba(59, 130, 246, 0.03);
}

/* Unread dot indicator */
.notif-item.unread::after {
    content: '';
    position: absolute;
    top: 16px;
    right: 14px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

[data-theme="dark"] .notif-item.unread::after {
    background: #00f2fe;
    box-shadow: 0 0 6px rgba(0, 242, 254, 0.5);
}

[data-theme="light"] .notif-item.unread::after {
    background: #3b82f6;
    box-shadow: 0 0 6px rgba(59, 130, 246, 0.4);
}

/* --- Type Colors with Glow --- */
.notif-item-type-info    { border-left-color: #3b82f6; }
.notif-item-type-success { border-left-color: #22c55e; }
.notif-item-type-warning { border-left-color: #f59e0b; }
.notif-item-type-error   { border-left-color: #ef4444; }

[data-theme="dark"] .notif-item-type-info:hover    { box-shadow: inset 3px 0 12px -4px rgba(59, 130, 246, 0.2); }
[data-theme="dark"] .notif-item-type-success:hover { box-shadow: inset 3px 0 12px -4px rgba(34, 197, 94, 0.2); }
[data-theme="dark"] .notif-item-type-warning:hover { box-shadow: inset 3px 0 12px -4px rgba(245, 158, 11, 0.2); }
[data-theme="dark"] .notif-item-type-error:hover   { box-shadow: inset 3px 0 12px -4px rgba(239, 68, 68, 0.2); }

/* --- Item Content --- */
.notif-item-body {
    flex: 1;
    min-width: 0;
}

.notif-item-title {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

[data-theme="dark"] .notif-item-title {
    color: #e2e8f0;
}

[data-theme="light"] .notif-item-title {
    color: #1e293b;
}

.notif-item-text {
    font-size: 11px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

[data-theme="dark"] .notif-item-text {
    color: #64748b;
}

[data-theme="light"] .notif-item-text {
    color: #94a3b8;
}

.notif-item-time {
    font-size: 10px;
    margin-top: 4px;
}

[data-theme="dark"] .notif-item-time {
    color: #475569;
}

[data-theme="light"] .notif-item-time {
    color: #cbd5e1;
}

/* --- Unread Dot --- */
.notif-unread-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22d3ee;
    flex-shrink: 0;
    margin-top: 4px;
}

.notif-item.read .notif-unread-dot {
    background: transparent;
}

/* --- Empty State --- */
.notif-empty-state {
    padding: 32px 16px;
    text-align: center;
    font-size: 12px;
}

[data-theme="dark"] .notif-empty-state {
    color: #475569;
}

[data-theme="light"] .notif-empty-state {
    color: #94a3b8;
}

/* --- Dropdown Footer - Premium --- */
.notif-dropdown-footer {
    padding: 12px 16px;
    border-top: 1px solid;
    text-align: center;
}

[data-theme="dark"] .notif-dropdown-footer {
    border-color: rgba(51, 65, 85, 0.5);
    background: rgba(15, 23, 42, 0.8);
}

[data-theme="light"] .notif-dropdown-footer {
    border-color: #f1f5f9;
    background: #fafbfc;
}

.notif-view-all-link {
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    letter-spacing: 0.02em;
    padding: 4px 12px;
    border-radius: 6px;
}

[data-theme="dark"] .notif-view-all-link {
    color: #00f2fe;
}

[data-theme="dark"] .notif-view-all-link:hover {
    color: #67e8f9;
    background: rgba(0, 242, 254, 0.08);
}

[data-theme="light"] .notif-view-all-link {
    color: #3b82f6;
}

[data-theme="light"] .notif-view-all-link:hover {
    color: #1d4ed8;
    background: rgba(59, 130, 246, 0.06);
}

/* =======================================================================
   FULL NOTIFICATIONS PAGE (notifications.html)
   ======================================================================= */

.notif-page-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 24px 16px;
}

.notif-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.notif-page-title {
    font-size: 22px;
    font-weight: 700;
}

[data-theme="dark"] .notif-page-title {
    color: #e2e8f0;
}

[data-theme="light"] .notif-page-title {
    color: #1e293b;
}

.notif-page-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.notif-back-link {
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 8px;
    border: 1px solid;
    transition: all 0.2s;
}

[data-theme="dark"] .notif-back-link {
    color: #94a3b8;
    border-color: #334155;
}

[data-theme="dark"] .notif-back-link:hover {
    background: #1e293b;
    color: #e2e8f0;
}

[data-theme="light"] .notif-back-link {
    color: #64748b;
    border-color: #e2e8f0;
}

[data-theme="light"] .notif-back-link:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.notif-mark-all-page-btn {
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    background: none;
    border: 1px solid;
    padding: 6px 14px;
    border-radius: 8px;
    transition: all 0.2s;
}

[data-theme="dark"] .notif-mark-all-page-btn {
    color: #22d3ee;
    border-color: rgba(34, 211, 238, 0.3);
}

[data-theme="dark"] .notif-mark-all-page-btn:hover {
    background: rgba(34, 211, 238, 0.1);
}

[data-theme="light"] .notif-mark-all-page-btn {
    color: #3b82f6;
    border-color: rgba(59, 130, 246, 0.3);
}

[data-theme="light"] .notif-mark-all-page-btn:hover {
    background: rgba(59, 130, 246, 0.08);
}

/* --- Filter Bar --- */
.notif-filter-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.notif-filter-btn {
    font-size: 12px;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid;
    cursor: pointer;
    transition: all 0.2s;
    background: transparent;
}

[data-theme="dark"] .notif-filter-btn {
    color: #94a3b8;
    border-color: #334155;
}

[data-theme="dark"] .notif-filter-btn:hover {
    background: #1e293b;
    color: #e2e8f0;
}

[data-theme="dark"] .notif-filter-btn.active {
    background: rgba(34, 211, 238, 0.15);
    color: #22d3ee;
    border-color: rgba(34, 211, 238, 0.4);
}

[data-theme="light"] .notif-filter-btn {
    color: #64748b;
    border-color: #e2e8f0;
}

[data-theme="light"] .notif-filter-btn:hover {
    background: #f1f5f9;
    color: #1e293b;
}

[data-theme="light"] .notif-filter-btn.active {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border-color: rgba(59, 130, 246, 0.4);
}

/* --- Date Group --- */
.notif-date-group-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 8px 0;
    margin-top: 12px;
}

[data-theme="dark"] .notif-date-group-title {
    color: #475569;
}

[data-theme="light"] .notif-date-group-title {
    color: #94a3b8;
}

/* --- Full Page Notification Card --- */
.notif-full-card {
    display: flex;
    gap: 14px;
    padding: 16px;
    border-radius: 10px;
    border: 1px solid;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.15s;
    border-left: 4px solid transparent;
}

[data-theme="dark"] .notif-full-card {
    background: #0f172a;
    border-color: #1e293b;
}

[data-theme="dark"] .notif-full-card:hover {
    background: #1e293b;
}

[data-theme="dark"] .notif-full-card.unread {
    background: rgba(34, 211, 238, 0.03);
    border-color: #334155;
}

[data-theme="light"] .notif-full-card {
    background: #ffffff;
    border-color: #f1f5f9;
}

[data-theme="light"] .notif-full-card:hover {
    background: #f8fafc;
}

[data-theme="light"] .notif-full-card.unread {
    background: rgba(59, 130, 246, 0.03);
    border-color: #e2e8f0;
}

.notif-full-card-body {
    flex: 1;
    min-width: 0;
}

.notif-full-card-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
}

[data-theme="dark"] .notif-full-card-title {
    color: #e2e8f0;
}

[data-theme="light"] .notif-full-card-title {
    color: #1e293b;
}

.notif-full-card-text {
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 8px;
}

[data-theme="dark"] .notif-full-card-text {
    color: #94a3b8;
}

[data-theme="light"] .notif-full-card-text {
    color: #64748b;
}

.notif-full-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
}

[data-theme="dark"] .notif-full-card-meta {
    color: #475569;
}

[data-theme="light"] .notif-full-card-meta {
    color: #cbd5e1;
}

.notif-type-pill {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.notif-type-pill-info {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.notif-type-pill-success {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.notif-type-pill-warning {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.notif-type-pill-error {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

/* --- Responsive --- */
@media (max-width: 480px) {
    .notif-dropdown {
        width: 300px;
        right: -60px;
    }

    .notif-page-header {
        flex-direction: column;
        align-items: flex-start;
    }
}
