@font-face {
    font-family: 'Neue Haas Grotesk';
    font-weight: 400;
    font-style: normal;
    src: url('/fonts/Roman.ttf') format('truetype');
}

@font-face {
    font-family: 'Neue Haas Grotesk';
    font-weight: 700;
    font-style: normal;
    src: url('/fonts/Bold.ttf') format('truetype');
}

@font-face {
    font-family: 'Neue Haas Grotesk';
    font-weight: 900;
    font-style: normal;
    src: url('/fonts/Black.ttf') format('truetype');
}

* {
    font-family: 'Neue Haas Grotesk';
}

body {
    background-color: #f4f4f9;
    font-family: 'Neue Haas Grotesk', sans-serif;
    margin: 0;
    padding: 0;
}

::-webkit-scrollbar {
    width: 8px;
    opacity: 1;
}

::-webkit-scrollbar-thumb {
    background-color: #007bff;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #0056b3;
    opacity: 0.5;
}

::-webkit-scrollbar-track {
    background-color: transparent;
    border-radius: 10px;
}

.home {
    margin-top: 50px;
    justify-content: center;
    align-items: center;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to bottom, #181818 0%, transparent 100%);
    padding: 8px 17px;
    color: white;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

.navbar-left, .navbar-center, .navbar-right {
    display: flex;
    align-items: center;
}

.navbar-left {
    justify-content: flex-start;
    gap: 20px;
}

.navbar-center {
    justify-content: center;
    align-items: center;
}

.navbar-right {
    justify-content: flex-end;
    gap: 20px;
    margin-right: 30px;
}

.logo {
    max-width: 100px;
    max-height: 50px;
    object-fit: cover;
    margin-top: 5px;
    margin-right: 20px;
    transition: all 0.3s ease;
}

.menu {
    display: flex;
    gap: 50px;
    position: relative;
    margin-right: 20px;
}

.menu-button {
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    padding: 10px 13px;
    border-radius: 20px;
    transition: all 0.2s ease;
}

.menu-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.menu-popup {
    display: none;
    position: absolute;
    top: 50px;
    left: 0;
    background: #282828;
    border-radius: 5px;
    padding: 10px;
    width: 150px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.menu-popup button {
    display: block;
    width: 100%;
    background: none;
    border: none;
    color: white;
    text-align: left;
    padding: 8px;
    cursor: pointer;
    border-radius: 10px;
}

.menu-popup button:hover {
    background: #404040;
}

.findusers-button {
    width: 100%;
    border: 1px solid transparent;
    margin-top: 30%;
    font-size: 14px;
    padding: 5px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.findusers-button:hover {
    border: 1px solid white;
}

.nav-search-bar {
    display: flex;
    align-items: center;
    background: #282828;
    padding: 8px;
    border-radius: 12px;
    width: 300px;
    border: 1.3px solid transparent;
}

.nav-search-bar.focus {
    border: 1.3px solid #9eccff;
}

.nav-search-bar i {
    color: white;
    margin-right: 10px;
}

.nav-search-bar input {
    flex: 1;
    background: none;
    border: none;
    color: white;
    font-size: 14px;
    outline: none;
}

.search-container {
    position: relative;
    width: 100%;
}

.search-bar {
    display: flex;
    align-items: center;
    background: #282828;
    padding: 8px;
    border-radius: 12px;
    width: 300px;
    border: 1.3px solid transparent;
}

.search-bar.focus {
    border: 1.3px solid #9eccff;
}

.search-bar i {
    color: white;
    margin-right: 10px;
}

.search-bar input {
    flex: 1;
    background: none;
    border: none;
    color: white;
    font-size: 14px;
    outline: none;
}

.page {
    width: 80vw;
    margin: 6% auto;
    padding: 20px;
}

.search-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 20px;
}

#search-input {
    width: 80%;
    padding: 10px;
    font-size: 16px;
}

#search-btn {
    background-color: white;
    color: #1a1a1a;
    border: 1px solid #ccc;
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

#search-btn:hover {
    scale: 1.1;
}

#search-btn:focus {
    border: 1px solid #9eccff;
}

.search-results-wrapper {
    display: flex;
    gap: 20px;
    position: relative;
}

body.dark-mode .search-item::before {
    background: unset;
}

.search-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: darkslategray;
    z-index: -1;
}

.search-item::after {
    content: '';
    position: absolute;
    inset: -5px;
    background-image: var(--item-bg);
    background-size: cover;
    background-position: center;
    filter: blur(8px);
    opacity: 0.3;
    z-index: -2;
}

.search-item .name {
    font-size: 11px;
    font-weight: bold;
    margin-top: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-item .artists {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.filters {
    width: 20%;
    border: 1px solid darkslategray;
    padding: 30px;
    border-radius: 40px;
    max-height: 300px;
}

.filters select, .filters input {
    width: 100%;
    padding: 5px;
    font-size: 14px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.filters label {
    font-weight: bold;
    margin-top: 10px;
    display: block;
}

.filters select option {
    font-family: 'Neue Haas Grotesk', sans-serif;
    font-weight: normal;
}

.results-container {
    padding: 20px;
    width: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    gap: 20px;
}

.results-category {
    margin-bottom: 20px;
}

.results-category h2 {
    font-size: 18px;
    margin-bottom: 10px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.search-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    padding: 6px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    border: 0.5px solid transparent;
    width: 130px;
}

.top-result {
    display: flex;
    width: 15vw;
    height: 95px;
    justify-content: center;
}

.auth-banner {
    width: 100%;
    background: linear-gradient(90deg, #1db954 0%, #1ed760 100%);
    color: white;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    margin-bottom: 15px;
    border-radius: 18px;
}

.banner-content {
    display: flex;
    align-items: center;
    gap: 30px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.banner-text {
    flex-grow: 1;
}

.banner-text h3 {
    margin: 0 0 5px 0;
    font-size: 1.2em;
}

.banner-text p {
    margin: 0;
    opacity: 0.9;
    font-size: 0.95em;
}

.banner-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 5px;
    font-size: 1.2em;
    margin-left: 15px;
}

.banner-close:hover i {
    color: red;
}

body.dark-mode .auth-banner {
    background: linear-gradient(90deg, #158f40 0%, #1aa34a 100%);
}

.auth-banner .spotify-button {
    padding: 3px 8px;
    white-space: nowrap;
}

.auth-banner .spotify-button i {
    margin-right: 8px;
}

@keyframes slideUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-100%);
    }
}

@media screen and (max-width: 1300px) {
    .top-result {
        width: 20vw;
    }
    .page {
        width: 90vw;
    }
    .grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media screen and (max-width: 1060px) {
    .grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.top-result-div {
    display: flex;
    align-items: center;
    gap: 20px;
}

.spotdb-logo-container {
    display: flex;
    justify-content: center;
}

.spotdb-logo {
    width: 200px;
    height: auto;
    cursor: help;
}

.search-item:hover {
    border: 0.5px solid #1a1a1a;
}

body.dark-mode .search-item:hover {
    border: 0.5px solid white;
}

.search-item img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 5px;
    aspect-ratio: 1;
    margin-top: 3px;
}

.search-item .content {
    width: 90%;
    flex-grow: 1;
}

.search-item .name {
    font-size: 13px;
    font-weight: bold;
    margin-top: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-item .artists {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

.content .type {
    border: 1px solid #999;
    color: #999;
    padding: 5px 7px;
    width: 34px;
    border-radius: 15px;
    font-size: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.top-result-div .content .name {
    font-size: 14px;
} 

.top-result-div img {
    width: 90px;
    height: 90px;
    margin-top: 0;
}

.search-item .content .name,
search-item .content .artists {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
}

#search-input {
    font-family: 'Neue Haas Grotesk';
    width: 100%;
    padding: 10px;
    border-radius: 12px;
    border: 1.3px solid #ccc;
    font-size: 14px;
    outline: none;
}

#search-input:focus {
    border: 1.3px solid #9eccff;
}

.explicit-tag {
    display: inline-block;
    background-color: #404040;
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 4px;
    margin-left: 4px;
    border-radius: 2px;
}

.tabs-container {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    background: transparent;
}

.tab-btn {
    background-color: #1a1a1a;
    color: white;
    border: 1px solid transparent;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    border-radius: 20px;
}

.tab-btn:hover {
    border: 1px solid white;
}

.tab-btn.active {
    background: #1db954;
}

.spotify-button {
    background-color: #1db954;
    color: white;
    border: 2px solid transparent;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    border-radius: 20px;
    transition: background-color 0.3s ease;
}

.spotify-button:hover {
    background-color: #1E90FF;
    border: 2px solid #1db954;
}

.search-section {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

.main-search-bar {
    width: 300px;
    display: flex;
    align-items: center;
    background: #282828;
    padding: 8px;
    border-radius: 12px;
    border: 1.3px solid transparent;
}

.main-search-bar i {
    color: white;
    margin-right: 10px;
}

.search-input {
    width: 100%;
    padding: 10px;
    border-radius: 12px;
    border: 1px solid #282828;
    font-size: 14px;
    outline: none;
}

.search-input:focus {
    border: 1px solid #9eccff;
}

.secondary-buttons {
    display: flex;
    align-items: center;
}

.faq-btn {
    background-color: field;
    color: #1a1a1a;
    border: 1px solid #282828;
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-btn:hover {
    background-color: #9a9a9a;
}

.faq-btn:focus {
    border: 1px solid #9eccff;
}

.close-btn {
    width: 100%;
    background-color: transparent;
    color: white;
    border: none;
    padding: 20px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    margin-bottom: 20px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.close-btn:hover {
    background-color: #ff4d4d;
}

@media screen and (max-width: 690px) {
    .navbar-right, .m-h {
        display: none;
    }
    .navbar {
        justify-content: center;
    }
}

@media screen and (max-width: 930px) {
    .navbar-left {
        display: none;
    }

    .search-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-top: 20px;
        background-color: #181818;
        border-radius: 20px;
    }

    #search-input {
        width: 80%;
        padding: 12px;
        font-size: 16px;
        border-radius: 12px;
        margin-bottom: 10px;
        margin-top: 15px;
    }

    #search-btn {
        width: 80%;
        padding: 12px;
        font-size: 14px;
        border-radius: 12px;
        background-color: #666;
        color: white;
        cursor: pointer;
        border: none;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        margin-bottom: 15px;
    }

    .grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    .filters {
        display: inline;
        width: 85%;
        margin-top: 20px;
    }

    .filters h3 {
        display: none;
    }

    .findusers-button {
        margin-top: 10px;
    }

    .filters select,
    .filters input {
        width: 45%;
        margin-bottom: 10px;
    }

    .filters label {
        display: none;
    }

    .results-container {
        width: 100%;
        margin-top: 20px;
    }

    .search-item {
        padding: 10px;
        text-align: center;
    }

    .search-item img {
        width: 80px;
        height: 80px;
    }

    .tr-div .grid {
        display: block;
        gap: 10px;
    }

    .top-result {
        width: auto;
        margin-bottom: 10px;
    }

    .tabs-container {
        display: flex;
        justify-content: center;
        gap: 5px;
        flex-wrap: wrap;
        padding: 10px 0;
    }

    .tab-btn {
        padding: 8px 15px;
        font-size: 16px;
        border-radius: 12px;
    }

    .search-section {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .search-results-wrapper {
        display: flex;
        width: 90vw;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    h3, h4, p {
        font-size: 16px;
        text-align: center;
    }

    .spotify-button, .faq-btn, .menu-button {
        padding: 10px;
        font-size: 14px;
    }
}

@media screen and (max-width: 570px) {
    .search-container {
        margin-top: 5%;
    }
}

@media screen and (max-width: 420px) {
    .search-container {
        margin-top: 15%;
    }
}

             

body.dark-mode {
    background-color: #2a2a2a;
    color: #f4f4f4;
}

body.dark-mode * {
    color: #f4f4f4
}

body.dark-mode a {
    color: #1E90FF;
}

body.dark-mode #search-input {
    border: 1px solid white;
}

body.dark-mode #search-btn {
    background-color: #1a1a1a;
    color: white;
    border: 1.3px solid white;
}

body.dark-mode #search-btn:hover {
    scale: 1.1;
}

body.dark-mode .search-item, body.dark-mode .findusers-button {
    background-color: #1a1a1a;
    color: white;
}

body.dark-mode input, body.dark-mode select {
    background-color: #1a1a1a;
}

body.dark-mode .search-bar input {
    background-color: #282828;
}

body.dark-mode .secondary-buttons button {
    background-color: #1a1a1a;
    color: white;
}

body.dark-mode .secondary-buttons button:hover {
    background-color: #404040;
}

#nav-search-input {
    background: #282828;
}

.search-item .type, .lol {
    font-size: 12px;
    color: #999;
    margin-top: 5px;
    display: flex;
    justify-content: center;
}