/* Genel ayarlar */
* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    text-decoration: none;
    color: #ffffff;}
*:focus {
    outline: none;
}

/* Header ayarları */
header {
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    animation: 1s forwards h;
    background-color: #1c1c1e;
}
.navBar {
    z-index: 999;
    height: 115px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-around;
    position: relative;
}
#logo {
    cursor: pointer;
    z-index: 150;
    user-select: none;
    height: max-content;
    width: max-content;
    background-position: center;
    background-size: cover;
    color: white;
}
#logo a{
    display: flex;
    flex-direction: row;
    font-size: 16px;
    font-style: italic;
    font-weight: 700;
    width: min-content;
    height: min-content;
}
#logo svg{
    height: 85px;
    width: auto;
    vertical-align: middle;
}

/* Arama kutusu ayarları */
.search-box {
    left: 50%;
    transform: translateX(-50%);
    height: 52px;
    position: absolute;
    display: inline-block;
    width: 335px;
    background-color: #12121250;
    backdrop-filter: blur(5px);
    border-radius: 10px;
    overflow: visible; 
    transition: all 0.2s;
}
.search-box input {
    border: none;
    outline: none;
    width: 100%;
    padding: 16px 0px 0px 0px;
    box-sizing: border-box;
}
.search-box #search-icon {
    width: 28px;
    height: 28px;
    background-image: url(../svg/search.svg);
    position: absolute;
    top: 50%;
    left: 13px;
    transform: translateY(-50%);
    cursor:default;
    user-select: none;
    transition: 0.1s;
}

.search-box #close-icon {
    width: 28px;
    height: 28px;
    background-image: url(../svg/close.svg);
    position: absolute;
    top: 50%;
    right: 13px;
    transform: translateY(-50%);
    cursor: pointer;
    display: none;
    transition: 0.1s;
}

/* Arama kutusu aktif olduğunda kapatma simgesini göster */
.search-box.active #close-icon {
    display: block;
}
#input-search {
    margin-left: 51px;
    max-width: 70.5%;
    font-size: 14pt;
    font-weight: 500;
    background-color: transparent;
    color: #ffffff;
}
#input-search::placeholder {
    color: #e8edf0;
    opacity: 1; /* Firefox */
  }
  
#input-search::-ms-input-placeholder { /* Edge 12 -18 */
    color: #e8edf0;
  }

/* Arama sonuçları stili */
.search-results {
    display: none;
    position: absolute;
    top: 85px;
    left: 50%;
    transform: translateX(-50%);
    width: 625px;
    height: max-content;
    overflow-y: auto;
    background-color: #12121250;
    backdrop-filter: blur(5px);
    border-radius: 10px;
    transition: 0.2s;
    z-index: -1;
}
.search-results.active {
    display: block;
}
.search-result-item {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    font-size: 12.5pt;
    padding: 9px 18px;
    cursor: pointer;
    background-color: transparent;
    color: white;
    user-select: none;
    transition: 0.1s;
    flex-direction: row;
    
}
.category-search, .date-search, .time-search {
    cursor: pointer;
    font-family: "Roboto ", sans-serif;
    font-weight: 400!important;
    font-size: 12pt;
    color: #e8edf0;
    background-color: #36363a00;
    margin-left: 10px;
}

.search-result-item-little {
    display: flex;
    flex-direction: row;
    justify-content: center;
    font-size: 12.5pt;
    height: 26px;
    padding-top: 3px;
    padding-bottom: 4px;
    background-color: transparent;
    font-family: "Roboto ", sans-serif;
    color: #e0e5e9;
    background-color: #1b1b1c50;
    cursor: auto;
}
#info{
    font-family: "Roboto ", sans-serif;
    font-weight: 400;
    font-style: italic;
}
.info{
    background-image: url(../svg/info.svg);
    width: 17px;
    height: 17px;
    user-select: none;
}
.search-result-item.selected {
    background-color: #36363a50;
}

#close-icon[data-tooltip]{
    z-index: 1000;
}
#search-icon[data-tooltip]{
    z-index: 1000;
}
/* Menü Toggle */
.menu-toggle {
    display: none;
}
nav{
    z-index: 100;
    font-size: 1.3rem;
}
/* Masaüstü Stili */
.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
}

.nav-links li {
    margin: 0;

}

.nav-links li a {
    color: #fff;
    font-weight: 700;
    font-size: 16pt;
    text-underline-offset: 0px;
    text-decoration: underline 2px #e8e8e800;
    transition: 0.22s;
}
.nav-links li a svg{
    width: 24px;
    height: 24px;
    transition: 0.3s;
    animation: rotating 2s linear infinite;
    animation-play-state: paused;
}
.nav-links li:hover a svg{
    animation-play-state:running;
}

@keyframes rotating {
    from {
        -ms-transform: rotate(0deg);
        -moz-transform: rotate(0deg);
        -webkit-transform: rotate(0deg);
        -o-transform: rotate(0deg);
        transform: rotate(0deg);
      }
      to {
        -ms-transform: rotate(360deg);
        -moz-transform: rotate(360deg);
        -webkit-transform: rotate(360deg);
        -o-transform: rotate(360deg);
        transform: rotate(360deg);
      }
}
.nav-links li a:hover {
    text-underline-offset: 2.6px;
    text-decoration: underline 1.9px #e8e8e8;
}

/* Mobil Stili */
@media (max-width: 768px) {
#logo svg{
    height: 75px;
    width: auto;
}

    .navBar{
        height: fit-content;
        justify-content: space-between;
        padding: 15px 15px 7.5px 15px;
    }

    .nav-links {
        visibility: hidden; /* Başlangıçta görünmez */
        position: absolute;
        top: 0px;
        padding-top: 100px;
        right: 0;
        background: #000;
        width: 100%;
        flex-direction: column;
        align-items: center;
        gap: 0;
        opacity: 0; /* Opaklık sıfır */
        transition:  0.2s ease-out;
        z-index: -1;
    }
    
    .nav-links.active {
        visibility: visible; /* Görünür yap */
        display: flex;
        opacity: 1; /* Aktif olduğunda opaklık artar */
    }
    

    .menu-toggle {
        display: block;
        position: relative;
        font-size: 28pt;
        font-weight: 700;
        width: 20px;
        height: 20px;
        margin-bottom: 5px;
        padding: 0;
        cursor: pointer;
    }
    .menu-toggle svg{
        position: absolute;
        top: 0px;
        right: 0;
    }

    .nav-links li {
        margin: 0 0 17px 0;
    }
}