/* ===== УВЕДОМЛЕНИЯ ===== */
.notifications-container {
    position: relative;
    display: inline-block;
    margin-right: 10px;
}

.notifications-bell {
    background: transparent;
    border: none;
    color: #eea21e;
    font-size: 22px;
    cursor: pointer;
    position: relative;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.notifications-bell:hover {
    transform: scale(1.1);
    color: #fe2b0d;
}

.notifications-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: linear-gradient(135deg, #fe2b0d, #eea21e);
    color: black;
    font-size: 10px;
    font-weight: bold;
    min-width: 18px;
    height: 18px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 1px solid black;
}

.notifications-panel {
    position: absolute;
    top: 45px;
    right: 0;
    width: 350px;
    max-height: 400px;
    background: linear-gradient(145deg, #0a0a0a 0%, #1a1a1a 100%);
    border: 2px solid #eea21e;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    z-index: 1000;
    overflow: hidden;
    animation: slideDown 0.3s ease;
}

.notifications-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: rgba(238, 162, 30, 0.1);
    border-bottom: 1px solid rgba(238, 162, 30, 0.2);
}

.notifications-header h3 {
    font-family: 'BebasNeue-Regular', sans-serif;
    color: #eea21e;
    font-size: 18px;
    margin: 0;
    letter-spacing: 1px;
}

.notifications-header button {
    background: transparent;
    border: 1px solid rgba(238, 162, 30, 0.3);
    color: #eea21e;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'aaaiight', sans-serif;
}

.notifications-header button:hover {
    background: rgba(238, 162, 30, 0.1);
    border-color: #eea21e;
}

.notifications-list {
    max-height: 300px;
    overflow-y: auto;
}

.notification-item {
    display: flex;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(238, 162, 30, 0.1);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    color: white;
}

.notification-item:hover {
    background: rgba(238, 162, 30, 0.05);
}

.notification-item.unread {
    background: rgba(238, 162, 30, 0.1);
}

.notification-item.unread::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #eea21e;
}

.notification-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 16px;
    flex-shrink: 0;
}

.notification-icon.tournament {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.notification-icon.track {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.notification-icon.admin {
    background: rgba(238, 162, 30, 0.2);
    color: #eea21e;
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-family: 'BebasNeue-Regular', sans-serif;
    color: white;
    font-size: 14px;
    margin-bottom: 3px;
    letter-spacing: 0.5px;
}

.notification-message {
    font-family: 'aaaiight', sans-serif;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    line-height: 1.4;
}

.notification-time {
    font-family: 'aaaiight', sans-serif;
    color: rgba(255, 255, 255, 0.4);
    font-size: 10px;
    margin-top: 5px;
}

.notifications-footer {
    padding: 12px 20px;
    text-align: center;
    border-top: 1px solid rgba(238, 162, 30, 0.2);
}

.notifications-footer a {
    color: #eea21e;
    text-decoration: none;
    font-family: 'BebasNeue-Regular', sans-serif;
    font-size: 14px;
    letter-spacing: 1px;
}

.notifications-footer a:hover {
    text-decoration: underline;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ===== МОДАЛКА ВСЕХ УВЕДОМЛЕНИЙ ===== */
.notifications-modal {
    max-width: 500px !important;
    width: 95%;
}

.notifications-modal .modal-body {
    padding: 20px;
    max-height: 70vh;
    overflow-y: auto;
}

.notifications-header-modal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    padding-right: 40px;
    border-bottom: 2px solid rgba(238, 162, 30, 0.3);
}

.notifications-modal .close {
    right: 15px;
    top: 15px;
}

.notifications-header-modal h3 {
    font-family: 'BebasNeue-Regular', sans-serif;
    color: #eea21e;
    font-size: 24px;
    margin: 0;
    letter-spacing: 1px;
}

.mark-all-read-btn {
    background: transparent;
    border: 1px solid rgba(238, 162, 30, 0.3);
    color: #eea21e;
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 13px;
    margin-right: 3vw;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'aaaiight', sans-serif;
    display: flex;
    align-items: center;
    gap: 5px;
}

.mark-all-read-btn:hover {
    background: rgba(238, 162, 30, 0.1);
    border-color: #eea21e;
}

.all-notifications-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.all-notifications-list .notification-item {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 15px;
    border-left: 3px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.all-notifications-list .notification-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(5px);
}

.all-notifications-list .notification-item.unread {
    background: rgba(238, 162, 30, 0.1);
    border-left-color: #eea21e;
}

.all-notifications-list .notification-item .notification-time {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 8px;
}

.loading-spinner {
    text-align: center;
    padding: 40px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 16px;
}

.loading-spinner i {
    font-size: 30px;
    color: #eea21e;
    margin-bottom: 10px;
}

/* ===== МОБИЛЬНАЯ АДАПТАЦИЯ ===== */
@media (max-width: 768px) {
    .notifications-panel {
        position: fixed; /* фиксированное позиционирование */
        top: 60px; /* отступ от шапки */
        left: 5%; /* отступ слева 5% */
        right: 5%; /* отступ справа 5% */
        width: 90%; /* ширина 90% экрана */
        max-width: none; /* убираем ограничение */
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .notifications-panel {
        top: 55px;
        left: 3%;
        right: 3%;
        width: 94%;
    }
}

/* для совсем маленьких */
@media (max-width: 360px) {
    .notifications-panel {
        top: 50px;
        left: 2%;
        right: 2%;
        width: 96%;
    }
}

.notifications-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: rgba(238, 162, 30, 0.1);
    border-bottom: 1px solid rgba(238, 162, 30, 0.2);
}

/* адаптив для шапки панели */
@media (max-width: 480px) {
    .notifications-header {
        padding: 12px 15px;
    }
    
    .notifications-header h3 {
        font-size: 16px;
    }
    
    .notifications-header button {
        padding: 4px 8px;
        font-size: 10px;
    }
}

.notifications-list {
    max-height: 300px;
    overflow-y: auto;
}

@media (max-width: 480px) {
    .notifications-list {
        max-height: 50vh;
    }
}

.notification-item {
    display: flex;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(238, 162, 30, 0.1);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    color: white;
}

/* адаптив для элемента уведомления */
@media (max-width: 480px) {
    .notification-item {
        padding: 12px 15px;
    }
    
    .notification-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .notification-title {
        font-size: 14px;
    }
    
    .notification-message {
        font-size: 12px;
        word-break: break-word;
    }
    
    .notification-time {
        font-size: 10px;
    }
}

/* адаптив для модалки всех уведомлений */
@media (max-width: 768px) {
    .notifications-modal {
        width: 95% !important;
        margin: 10px auto !important;
    }
    
    .notifications-header-modal {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .mark-all-read-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .notifications-modal .modal-body {
        padding: 15px;
        max-height: 70vh;
    }
    
    .all-notifications-list .notification-item {
        padding: 12px;
    }
}

