﻿/* Ana navbar */
.modern-navbar {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  /*padding: 15px;*/
    overflow: visible; /* hidden yerine visible */
    position: relative;
    z-index: 100; /* Yeni ekledik */
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.nav-container {
    display: flex;
    gap: 8px;
    overflow-x: visible;
    overflow-y: visible; /* Ekle */
    padding: 8px;
    scrollbar-width: none;
}


    .nav-container::-webkit-scrollbar {
        display: none;
    }

.nav-item {
    color: #333;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: 12px 24px;
    border-radius: 50px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.05);
    white-space: nowrap;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

    .nav-item::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(45deg, rgba(255,255,255,0.3), transparent);
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .nav-item:hover {
        background: rgba(235, 235, 235, 0.95);
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        color: #111;
        border-color: rgba(0, 0, 0, 0.1);
    }

        .nav-item:hover::before {
            opacity: 1;
        }

    .nav-item.active {
        background: linear-gradient(45deg, #4361ee, #3a0ca3);
        color: white;
        font-weight: 600;
        border: 1px solid rgba(255, 255, 255, 0.2);
        box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
    }

    .nav-item i {
        font-size: 16px;
        transition: transform 0.3s ease;
    }

    .nav-item:hover i {
        transform: scale(1.2);
    }


/* Özel Dropdown Stilleri */
.custom-dropdown-menu {
    max-height: 300px; /* Maksimum yükseklik */
    width: 250px; /* Genişlik */
    overflow: hidden; /* Ana container'da scroll'u gizle */
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: 1px solid rgba(0,0,0,.15);
    padding: 0; /* İç padding'i kaldır */
}
/* Dropdown Konteynerleri için */
.dropdown-container {
    position: relative;
    z-index: auto; /* Her dropdown kendi z-index'ine sahip olacak */
    width: 250px; /* Dropdown menü ile aynı genişlikte */
    min-width: 200px; /* Minimum genişlik garantisi */
}
.dropdown-scroll-container {
    max-height: 300px; /* Maksimum yükseklik */
    overflow-y: auto; /* Dikey scroll */
    padding: 5px 0; /* İç boşluk */
}

    /* Scrollbar özelleştirme */
    .dropdown-scroll-container::-webkit-scrollbar {
        width: 8px; /* Scrollbar genişliği */
    }

    .dropdown-scroll-container::-webkit-scrollbar-track {
        background: #f1f1f1; /* Track rengi */
        border-radius: 4px;
    }

    .dropdown-scroll-container::-webkit-scrollbar-thumb {
        background: #c1c1c1; /* Scrollbar rengi */
        border-radius: 4px;
    }

        .dropdown-scroll-container::-webkit-scrollbar-thumb:hover {
            background: #a8a8a8; /* Hover rengi */
        }

.dropdown-item {
    display: block;
    padding: 8px 20px;
    color: #212529;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap; /* Metin kaymasını önle */
    overflow: hidden;
    text-overflow: ellipsis;
}

    .dropdown-item:hover {
        background-color: #f8f9fa;
        color: #0d6efd;
    }

.dropdown-icon {
    transition: transform 0.3s ease;
    margin-left: auto; /* Sağa yasla */
}

/* Aktif dropdown'ı öne çıkar */
.dropdown-toggle.show {
    z-index: 1001;
}
    /* Dropdown açıkken icon'u döndür */
    .dropdown-toggle.show .dropdown-icon {
        transform: rotate(180deg);
    }

.dropdown-menu.show {
    z-index: 1000;
    display: block;
}

/* Dropdown item hover efekti */
.dropdown-item {
    transition: all 0.2s;
    position: relative;
}

    .dropdown-item:hover {
        background-color: #f8f9fa;
        padding-left: 25px;
    }

        .dropdown-item:hover::before {
            content: "→";
            position: absolute;
            left: 10px;
            color: #3498db;
        }


/* Arama Kutusu Stilleri */
.search-container {
    position: relative;
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border-radius: 30px;
    padding: 8px 15px;
    margin-right: 15px;
    flex: 1;
    max-width: 400px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

    .search-container:focus-within {
        background: #fff;
        box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
        border-color: #3498db;
    }

.search-icon {
    color: #6c757d;
    margin-right: 10px;
    font-size: 0.9rem;
}

.search-input {
    border: none;
    background: transparent;
    outline: none;
    flex: 1;
    padding: 5px 0;
    font-size: 0.9rem;
    color: #495057;
}

    .search-input::placeholder {
        color: #adb5bd;
    }

.search-btn {
    background: none;
    border: none;
    color: #3498db;
    cursor: pointer;
    padding: 5px;
    margin-left: 5px;
    transition: transform 0.2s ease;
}

    .search-btn:hover {
        transform: translateX(2px);
    }



/* Responsive Ayarlar */
@media (max-width: 992px) {
    .nav-container {
        flex-wrap: wrap;
    }

    .search-container {
        order: -1;
        width: 100%;
        max-width: 100%;
        margin-bottom: 15px;
        margin-right: 0;
    }

    .dropdown-container {
        margin-bottom: 10px;
    }
}


/* Medya Türü Filtreleri */
.media-filter-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto; /* Sağa yasla */
    padding: 0 10px;
}

.media-filter-item {
    position: relative;
}

.media-filter-checkbox {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.media-filter-labell {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(235, 235, 235, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.05);
    color: #6c757d;
    cursor: default;
    transition: all 0.3s ease;
}

.media-filter-label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(235, 235, 235, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.05);
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
}


    .media-filter-label:hover {
        background: rgba(235, 235, 235, 0.95);
        color: #495057;
        transform: translateY(-2px);
    }

.media-filter-checkbox:checked + .media-filter-label {
    background: #4361ee;
    color: white;
    box-shadow: 0 3px 10px rgba(67, 97, 238, 0.3);
}

.media-filter-checkbox:focus + .media-filter-label {
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
}

/* Responsive Ayarlar */
@media (max-width: 992px) {
    .media-filter-container {
        margin-left: 0;
        width: 100%;
        justify-content: center;
        order: 2;
        margin-top: 10px;
    }

    .search-container {
        order: 1;
    }

    .dropdown-container {
        order: 3;
    }
}