@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');
:root {


    --dark:#00246B;
    --light:#CADCFC;


    --new-25:#00246B40;
    --new-50:#00246B80;
    --new-75:#00246BBF;

}

* {
    font-family: "Segoe UI", "Helvetica Neue", Helvetica, Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", sans-serif;
    font-style: normal;
    font-weight: 400;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body{
    background-color: #F4F6F9;
}
a {
    text-decoration: none;
    color: inherit;
}

.NavBar {
    background-color: #00246B;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
}

.NavBarLeft {
    display: flex;
    align-items: center;
    gap: 20px; 
}
.NavBar span {
    font-family: 'Bebas Neue', sans-serif;
    color: #CADCFC;
    font-size: 50px;
    padding: 10px 20px 0px 20px;
    font-weight: bold;
}

.search-box {
    position: relative;
    width: 100%; 
    display: flex;
    align-items: center;
}

.search-box input {
    width: 600px;
    padding: 12px 50px 12px 15px;
    font-size: 16px;
    border: 2px solid #444;
    border-radius: 8px;
    background-color: #f0f0f0;
    color: black;
    outline: none;
    transition: all 0.3s ease-in-out;
    transform: translateY(-2px); 

}

.search-box input:focus {
    border-color: #CADCFC;
    box-shadow: 0 0 8px rgba(214, 90, 49, 0.5);
}

.search-box button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-55%);
    background-color: #00246B;
    color: white;
    border: none;
    padding: 8px 13px;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
}


.NavBarRight a {
    font-family: 'Oswald', sans-serif;
    font-size: 18px;
    font-weight: bold;
    color: #00246B;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px 20px;
    border: 2px solid transparent;
    border-radius: 6px;
    transition: all 0.3s ease-in-out;
    
}

.login-btn {
    align-items: center;
    height: 50px;
    background-color: #CADCFC; 
}

/* SEARCH BAR *//* SEARCH BAR *//* SEARCH BAR *//* SEARCH BAR *//* SEARCH BAR *//* SEARCH BAR *//* SEARCH BAR */

.search-results  {
    font-style: normal;
    font-weight: 400;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    background-color: white;
    max-height: 300px;
    overflow-y: auto;
    z-index: 100;
    display: none;
    border-radius: 5px;

    scrollbar-width: thin;
    scrollbar-color: var(--light) #f5f7fa;
}



.notifications {
    position: absolute;
    top: 220%;
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    max-width: 90vw; /* Ekranı geçmesin */
    min-width: 293px;
    background-color: white;
    color: #333;
    border-radius: 10px;
    border: 1px solid var(--light);
    box-shadow: 0 4px 15px rgba(0, 36, 107, 0.1);
    z-index: 1000;
    overflow-y: auto;
    max-height: 350px;
    padding: 10px 0;

    scrollbar-width: thin;
    scrollbar-color: var(--light) #f5f7fa;
    display: none;
}

.notification-item {
    max-width: 16.5vw; /* Ekranı geçmesin */
    min-width: 50px;
    box-sizing: border-box;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    background-color: #fff;
    transition: background-color 0.2s ease;
    cursor: pointer;
    word-wrap: break-word;
    overflow-wrap: anywhere;
}


.notification-item .title {
    font-weight: bold;
    color: #00246B;
    margin-bottom: 5px;
    font-size: 15px;
    line-height: 1.4;
}

.notification-item .comment {
    font-size: 14px;
    color: #444;
    margin-bottom: 5px;
    font-style: italic;
    line-height: 1.4;
}

.notification-item .time {
    font-size: 12px;
    color: gray;
    white-space: nowrap;
}




  
  .search-results:not(.hidden) {
    display: block;
  }
  .search-post {
    border: 1px solid var(--light);
    border-radius: 8px;
    margin-bottom: 5px;
    background-color: #fff;
    transition: background-color 0.3s;
    margin-right: 5px;
    margin-left: 5px;
    margin-top: 5px;
}

.search-link {
    display: block;
    padding: 15px;
    color: black;
}

.search-link:hover {
    background-color: #f9f9f9;
}

.search-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.search-title {
    font-size: 20px;
    font-weight: bold;
    color: #00246B;
}

.search-category {
    color: #00246B;
    padding: 4px 10px;
    border-radius: 5px;
    font-size: 14px;
}

.search-excerpt {
    font-size: 15px;
    color: #444;
}


/* all pages spinner */
.spinner {
    margin-top: 10px;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3; /* açık gri */
    border-top: 4px solid #3498db; /* mavi */
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: auto;
    margin-right: auto;
  }
  
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }



@media (max-width: 875px) {
    .NavBar {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 15px;
    }

    .NavBarLeft {
        flex-direction: column;
        gap: 10px;
    }

    .search-box {
        width: 100%;
        max-width: 350px;
    }

    .NavBarRight {
        margin-top: 10px;
    }
}


@media (max-width: 768px) {
    .notifications {
        width: 90vw;
        max-width: 95vw;
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 480px) {
    .notifications {
        width: 95vw;
        font-size: 14px;
        max-height: 300px;
        padding: 8px 0;
    }

    .notification-item {
        padding: 12px 15px;
    }

    .notification-item .title {
        font-size: 15px;
    }

    .notification-item .time {
        font-size: 11px;
    }
}

