/* ==========================================
   🎨 УНІФІКОВАНІ КНОПКИ НАВБАРУ
   Єдиний сучасний стиль для всіх елементів
   ========================================== */

/* ==========================================
   🔘 БАЗОВИЙ СТИЛЬ - ICON BUTTON
   Для дзвіночка та подібних
   ========================================== */
.navbar-icon-btn {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: white !important;
    text-decoration: none !important;
    transition: all 0.25s ease;
}

.navbar-icon-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    color: white !important;
}

.navbar-icon-btn i {
    font-size: 1.15rem;
    transition: transform 0.2s ease;
}

.navbar-icon-btn:hover i {
    transform: scale(1.1);
}

/* ==========================================
   🔔 ДЗВІНОЧОК СПОВІЩЕНЬ
   ========================================== */
.notification-bell-btn {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: white !important;
    text-decoration: none !important;
    transition: all 0.25s ease;
    padding: 0 !important;
}

.notification-bell-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    color: white !important;
}

.notification-bell-btn i {
    font-size: 1.15rem;
    transition: all 0.2s ease;
}

.notification-bell-btn:hover i {
    transform: scale(1.1);
}

/* Стан коли є непрочитані - легка підсвітка */
.notification-bell-btn.has-unread {
    background: rgba(251, 191, 36, 0.15);
    border-color: rgba(251, 191, 36, 0.3);
    animation: bellGlow 2s ease-in-out infinite;
}

.notification-bell-btn.has-unread i {
    color: #fbbf24;
}

@keyframes bellGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0); }
    50% { box-shadow: 0 0 12px 2px rgba(251, 191, 36, 0.3); }
}

/* Badge - мінімалістичний */
.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    color: white;
    background: #ef4444;
    border-radius: 9px;
    border: 2px solid var(--navbar-bg, #2e7d32);
    display: none;
}

.notification-bell-btn.has-unread .notification-badge {
    display: inline-block;
    animation: badgePop 0.3s ease;
}

@keyframes badgePop {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Анімація дзвіночка при новому сповіщенні */
.notification-bell-ring {
    animation: bellShake 0.6s ease-in-out;
}

@keyframes bellShake {
    0%, 100% { transform: rotate(0); }
    15% { transform: rotate(15deg); }
    30% { transform: rotate(-15deg); }
    45% { transform: rotate(10deg); }
    60% { transform: rotate(-10deg); }
    75% { transform: rotate(5deg); }
    90% { transform: rotate(-5deg); }
}

/* ==========================================
   📧 КНОПКА "НАПИСАТИ"
   ========================================== */
.btn-navbar-contact {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: white !important;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none !important;
    transition: all 0.25s ease;
    cursor: pointer;
    white-space: nowrap;
}

.btn-navbar-contact:hover {
    background: rgba(245, 158, 11, 0.9);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
    color: white !important;
}

.btn-navbar-contact i {
    font-size: 1rem;
}

/* ==========================================
   🔐 КНОПКИ АВТОРИЗАЦІЇ
   ========================================== */

/* Увійти - прозора */
.btn-navbar-login {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: white !important;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none !important;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.btn-navbar-login:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    color: white !important;
}

/* Реєстрація - акцентна зелена */
.btn-navbar-register {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border: none;
    border-radius: 12px;
    color: white !important;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.25);
    white-space: nowrap;
}

.btn-navbar-register:hover {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(34, 197, 94, 0.35);
    color: white !important;
}

/* ==========================================
   👤 КНОПКА ПРОФІЛЮ
   ========================================== */
.btn-navbar-profile {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px 6px 6px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: white !important;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none !important;
    transition: all 0.25s ease;
}

.btn-navbar-profile:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    color: white !important;
}

.btn-navbar-profile .profile-avatar {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

/* ==========================================
   📱 МОБІЛЬНА АДАПТАЦІЯ
   ========================================== */
@media (max-width: 991px) {
    .navbar-icon-btn,
    .notification-bell-btn {
        width: 38px;
        height: 38px;
    }
    
    .navbar-icon-btn i,
    .notification-bell-btn i {
        font-size: 1.1rem;
    }
    
    .btn-navbar-contact span {
        display: none;
    }
    
    .btn-navbar-contact {
        width: 38px;
        height: 38px;
        padding: 0;
        justify-content: center;
    }
}

@media (max-width: 575px) {
    .navbar-icon-btn,
    .notification-bell-btn,
    .btn-navbar-contact {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }
    
    .btn-navbar-login,
    .btn-navbar-register {
        padding: 6px 10px;
        font-size: 0.8rem;
        border-radius: 10px;
    }
    
    .btn-navbar-login i,
    .btn-navbar-register i {
        display: none;
    }
}

/* ==========================================
   🌙 ДЛЯ ТЕМНОГО/СВІТЛОГО ФОНу
   ========================================== */
.navbar-light .navbar-icon-btn,
.navbar-light .notification-bell-btn,
.navbar-light .btn-navbar-contact,
.navbar-light .btn-navbar-login {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
    color: #374151 !important;
}

.navbar-light .navbar-icon-btn:hover,
.navbar-light .notification-bell-btn:hover,
.navbar-light .btn-navbar-contact:hover,
.navbar-light .btn-navbar-login:hover {
    background: rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.15);
    color: #111827 !important;
}

.navbar-light .notification-bell-btn.has-unread {
    background: rgba(251, 191, 36, 0.1);
    border-color: rgba(251, 191, 36, 0.3);
}

.navbar-light .notification-badge {
    border-color: white;
}
