/* ===================================
   RESPONSIVE NAVIGATION STYLES
   Wishlist.com.ua
   =================================== */

/* ===== Breakpoint Variables ===== */
:root {
    --breakpoint-lg: 992px;
    --breakpoint-xl: 1200px;
    --breakpoint-xxl: 1400px;
}

/* ===== Large Screens (1200px - 1399px) ===== */
@media (min-width: 1200px) and (max-width: 1399px) {
    .navbar-nav .nav-link {
        padding: 0.5rem 0.6rem;
        font-size: 0.9rem;
    }
    
    .navbar-brand-custom {
        font-size: 1rem;
    }
    
    .navbar-brand-emoji {
        font-size: 1.1rem;
        margin-right: 0.4rem;
    }
    
    .user-name {
        max-width: 100px;
        font-size: 0.9rem;
    }
}

/* ===== Medium Screens (992px - 1199px) ===== */
@media (min-width: 992px) and (max-width: 1199px) {
    .navbar-nav .nav-link {
        padding: 0.4rem 0.5rem;
        font-size: 0.85rem;
    }
    
    .navbar-brand-custom {
        font-size: 0.95rem;
    }
    
    .navbar-brand-emoji {
        font-size: 1rem;
        margin-right: 0.3rem;
    }
    
    .user-name {
        max-width: 90px;
        font-size: 0.85rem;
    }
    
    .logout-btn {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }
}

/* ===== Tablet Screens (768px - 991px) ===== */
@media (min-width: 768px) and (max-width: 991px) {
    .navbar-nav {
        background: white;
        border-radius: 0.5rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        margin-top: 1rem;
        padding: 0.5rem 0;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }
    
    /* Адаптация иконки добавления желания для планшетов */
    .add-wish-notification {
        width: 38px;
        height: 38px;
    }
    
    .add-wish-notification .add-wish-icon {
        font-size: 1.1rem;
    }
    
    /* Адаптация мобильной иконки добавления желания для планшетов */
    .extra-mobile-add-wish-notification {
        width: 38px;
        height: 38px;
    }
    
    .extra-mobile-add-wish-notification .extra-mobile-add-wish-icon {
        font-size: 1.1rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid #f0f0f0;
        font-size: 1rem;
        text-align: center;
    }
    
    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }
    
    .navbar-nav .nav-link:hover {
        background-color: #f8f9fa;
    }
    
    .navbar-brand-custom {
        font-size: 0.9rem;
    }
    
    .navbar-brand-emoji {
        font-size: 0.95rem;
        margin-right: 0.3rem;
    }
    
    .user-name {
        max-width: 80px;
        font-size: 0.8rem;
    }
    
    .logout-btn {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
}

/* ===== Mobile Screens (up to 767px) ===== */
@media (max-width: 767px) {
    .navbar-nav {
        background: white;
        border-radius: 0.5rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        margin-top: 1rem;
        padding: 0.5rem 0;
        width: 100%;
    }
    
    /* Адаптация иконки добавления желания для мобильных */
    .add-wish-notification {
        width: 36px;
        height: 36px;
    }
    
    .add-wish-notification .add-wish-icon {
        font-size: 1rem;
    }
    
    /* Адаптация мобильной иконки добавления желания */
    .extra-mobile-add-wish-notification {
        width: 36px;
        height: 36px;
    }
    
    .extra-mobile-add-wish-notification .extra-mobile-add-wish-icon {
        font-size: 1rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid #f0f0f0;
        font-size: 1rem;
        text-align: center;
    }
    
    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }
    
    .navbar-nav .nav-link:hover {
        background-color: #f8f9fa;
    }
    
    .navbar-brand-custom {
        font-size: 0.85rem;
    }
    
    .navbar-brand-emoji {
        font-size: 0.9rem;
        margin-right: 0.25rem;
    }
    
    .user-name {
        max-width: 70px;
        font-size: 0.75rem;
    }
    
    .logout-btn {
        font-size: 0.7rem;
        padding: 0.25rem 0.4rem;
    }
    
    .user-avatar {
        width: 28px !important;
        height: 28px !important;
    }
}

/* ===== Extra Small Screens (up to 480px) ===== */
@media (max-width: 480px) {
    .navbar-brand-custom {
        font-size: 0.8rem;
    }
    
    /* Адаптация иконки добавления желания для очень маленьких экранов */
    .add-wish-notification {
        width: 32px;
        height: 32px;
    }
    
    .add-wish-notification .add-wish-icon {
        font-size: 0.9rem;
    }
    
    /* Адаптация мобильной иконки добавления желания для очень маленьких экранов */
    .extra-mobile-add-wish-notification {
        width: 32px;
        height: 32px;
    }
    
    .extra-mobile-add-wish-notification .extra-mobile-add-wish-icon {
        font-size: 0.9rem;
    }
    
    .navbar-brand-emoji {
        font-size: 0.85rem;
        margin-right: 0.2rem;
    }
    
    .user-name {
        max-width: 60px;
        font-size: 0.7rem;
    }
    
    .logout-btn {
        font-size: 0.65rem;
        padding: 0.2rem 0.3rem;
    }
    
    .user-avatar {
        width: 24px !important;
        height: 24px !important;
    }
}

/* ===== Smooth Transitions ===== */
.navbar-nav .nav-link,
.navbar-brand-custom,
.navbar-brand-emoji,
.user-name,
.logout-btn,
.user-avatar {
    transition: all 0.3s ease;
}

/* ===== Hover Effects ===== */
.navbar-nav .nav-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand-custom:hover {
    transform: scale(1.05);
}

/* ===== Focus States for Accessibility ===== */
.navbar-nav .nav-link:focus {
    outline: 2px solid var(--primary-500);
    outline-offset: 2px;
    border-radius: 0.25rem;
}

.navbar-brand-custom:focus {
    outline: 2px solid var(--primary-500);
    outline-offset: 2px;
    border-radius: 0.25rem;
}

/* ===== Loading States ===== */
.navbar-nav.loading .nav-link {
    opacity: 0.7;
    pointer-events: none;
}

/* ===== Print Styles ===== */
@media print {
    .navbar {
        position: static !important;
        box-shadow: none !important;
    }
    
    .navbar-nav {
        display: none !important;
    }
    
    .user-section {
        display: none !important;
    }
    
    .main-content-container {
        padding-top: 1rem !important;
    }
} 