/* Navbar Özel Stilleri */

/* Top Banner */
.bg-primary {
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-dark) 100%) !important;
}

/* Search Container */
.search-container .form-control {
    border-color: var(--primary-light);
    box-shadow: none;
    font-size: 1rem;
}

.search-container .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(59, 113, 180, 0.25);
}

.search-container .btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.search-container .btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

/* Logo Styling */
.navbar-brand {
    font-size: 1.8rem !important;
    font-weight: 800 !important;
    text-decoration: none !important;
}

/* Header Links */
header a {
    transition: all 0.3s ease;
}

header a:hover {
    color: var(--primary-color) !important;
}

/* Categories Navigation */
nav {
    position: relative;
    z-index: 1000;
}

.categories-nav {
    overflow: hidden;
}

.categories-nav .nav-pills {
    overflow-x: hidden;
    overflow-y: hidden;
}

.nav-pills .nav-link {
    border-radius: 20px;
    transition: none;
    white-space: nowrap;
    font-weight: 300 !important;
    color: #666 !important;
    font-size: 14px;
}

/* Mobile Toggle Button */
.navbar-toggler {
    background: none;
    border: none;
    padding: 0.5rem 0;
    font-size: 14px;
    width: 100%;
    text-align: left;
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

.navbar-toggler:hover {
    color: var(--primary-color);
}

/* Mobile Responsive */
@media (max-width: 767.98px) {
    .categories-nav .collapse:not(.show) {
        display: none !important;
    }
    
    .navbar-brand {
        font-size: 1.25rem !important;
    }
    
    .nav-pills {
        flex-direction: column;
        align-items: flex-start !important;
        padding: 0.5rem 0;
    }
    
    .nav-pills .nav-item {
        margin-right: 0 !important;
        margin-bottom: 0.25rem;
        width: 100%;
    }
    
    .nav-pills .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 13px;
        width: 100%;
        text-align: left;
        border-radius: 8px;
    }
    
    .search-input {
        font-size: 14px;
        padding: 8px 12px;
    }
    
    .btn {
        padding: 8px 12px;
    }
    
    header .gap-2 {
        gap: 0.75rem !important;
    }
    
    header i {
        font-size: 18px;
    }
    
    .badge {
        font-size: 10px !important;
        min-width: 16px;
        height: 16px;
    }
}
    .categories-nav .collapse {
        display: none;
    }
    
    .categories-nav .collapse.show {
        display: block;
    }
    
    .nav-pills {
        flex-direction: column;
        align-items: flex-start !important;
        padding: 0.5rem 0;
    }
    
    .nav-pills .nav-item {
        margin-right: 0 !important;
        margin-bottom: 0.25rem;
        width: 100%;
    }
    
    .nav-pills .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 13px;
        width: 100%;
        text-align: left;
    }
    
    .navbar-brand {
        font-size: 1.3rem !important;
    }
    
    .search-input {
        font-size: 13px;
        padding: 8px 15px;
    }
    
    .search-btn {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    .user-actions a {
        font-size: 11px;
    }
    
    .user-actions i {
        font-size: 16px;
    }
    
    .badge {
        font-size: 9px !important;
        min-width: 14px;
        height: 14px;
    }
}

/* Badges */
.badge {
    font-size: 0.65rem !important;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Dropdown Menu */
.dropdown-menu {
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 0.5rem 0;
    position: absolute;
    z-index: 1000;
    min-width: 200px;
    margin-top: 0.125rem;
}

.dropdown-item {
    padding: 0.6rem 1.5rem;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background-color: var(--primary-lighter);
    color: var(--primary-dark);
    padding-left: 2rem;
}

.dropdown-item i {
    width: 20px;
    color: var(--primary-color);
}

/* Off-canvas Styles */
.offcanvas {
    width: 320px !important;
}

.offcanvas-header {
    border-bottom: 1px solid #dee2e6;
}

.offcanvas-title {
    font-weight: 600;
    color: var(--primary-color);
}

.list-group-item-action:hover {
    background-color: #f8f9fa;
    color: var(--primary-color);
}

/* Mobile hamburger button */
.btn-outline-secondary {
    border-color: #ddd;
    color: #666;
}

.btn-outline-secondary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.4rem !important;
    }
    
    .search-container .form-control {
        font-size: 0.9rem;
    }
    
    .nav-pills {
        padding: 0.5rem 0 !important;
    }
    
    .nav-pills .nav-link {
        padding: 0.5rem 0.8rem !important;
        font-size: 0.85rem;
    }
    
    /* Categories scroll on mobile */
    .nav-pills {
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    
    .nav-pills::-webkit-scrollbar {
        height: 4px;
    }
    
    .nav-pills::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 4px;
    }
    
    .nav-pills::-webkit-scrollbar-thumb {
        background: var(--primary-light);
        border-radius: 4px;
    }
}

/* Search Results */
#search-results {
    max-height: 400px;
    overflow-y: auto;
}

#search-results::-webkit-scrollbar {
    width: 6px;
}

#search-results::-webkit-scrollbar-track {
    background: #f1f1f1;
}

#search-results::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 3px;
}

/* Animation for category hover */
.nav-pills .nav-link i {
    transition: transform 0.3s ease;
}

.nav-pills .nav-link:hover i {
    transform: scale(1.1);
}

/* Special styling for promotional items */
.nav-link .text-danger {
    font-weight: 700 !important;
    text-shadow: 0 1px 2px rgba(220, 53, 69, 0.2);
}