
/* ============================================
   NOTIFIKACE
   ============================================ */

.notification-wrapper {
    position: relative;
    z-index: 9999;
}

/* Zajistit, že header je nad obsahem a neořezává dropdown */
.header {
    position: sticky;
    z-index: 10000;
    overflow: visible !important;
}

.notification-bell {
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-sm);
    color: var(--text-secondary);
    transition: color var(--transition-fast);
    position: relative;
}

.notification-bell:hover {
    color: var(--text-primary);
}

.notification-bell svg {
    width: 22px;
    height: 22px;
}

.notification-bell.has-notifications {
    color: var(--accent-primary);
}

.notification-count {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--accent-danger);
    color: white;
    font-size: 10px;
    font-weight: 600;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.notification-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 360px;
    max-height: 480px;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    z-index: 9999;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.notification-dropdown.active {
    display: flex;
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
    font-weight: 500;
}

.notification-mark-all {
    background: none;
    border: none;
    color: var(--accent-primary);
    cursor: pointer;
    font-size: var(--font-size-sm);
    padding: 0;
}

.notification-mark-all:hover {
    text-decoration: underline;
}

.notification-list {
    overflow-y: auto;
    max-height: 400px;
}

.notification-empty {
    padding: var(--spacing-xl);
    text-align: center;
    color: var(--text-muted);
}

.notification-item {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    text-decoration: none;
    transition: background-color var(--transition-fast);
}

.notification-item:hover {
    background: var(--bg-medium);
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-medium);
    border-radius: 50%;
    color: var(--text-secondary);
}

.notification-icon svg {
    width: 16px;
    height: 16px;
}

.notification-content {
    flex: 1;
    min-width: 0;
    font-size: var(--font-size-sm);
    line-height: 1.4;
}

.notification-content strong {
    color: var(--accent-primary);
}

.notification-time {
    color: var(--text-muted);
    font-size: var(--font-size-xs);
    margin-top: var(--spacing-xs);
}

/* Typy notifikací - barvy ikon */
.notification-item[data-type="vote"] .notification-icon {
    color: var(--accent-warning);
}

.notification-item[data-type="comment"] .notification-icon {
    color: var(--accent-primary);
}

.notification-item[data-type="threshold_lost"] .notification-icon {
    color: var(--accent-danger);
    background: rgba(231, 76, 60, 0.1);
}

.notification-item[data-type="threshold_gained"] .notification-icon {
    color: var(--accent-success);
    background: rgba(39, 174, 96, 0.1);
}

.notification-item[data-type="new_registration"] .notification-icon {
    color: var(--accent-primary);
    background: rgba(45, 156, 219, 0.1);
}

/* Responzivita */
@media (max-width: 480px) {
    .notification-dropdown {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        width: 100%;
        max-height: calc(100vh - var(--header-height));
        border-radius: 0;
    }
}
