@font-face {
    font-family: Artifakt-Element;
    src: url("/Universal/assets/ArtifaktElement.ttf");
}

@font-face {
    font-family: 'Helvetica';
    src: url("/Universal/assets/Helvetica.ttf");
}

* {
    margin: 0;
    padding: 0;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: rgb(0,216,255);
}

.nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav a {
    text-decoration: none;
    color: #333;
    font-size: 1.2rem;
    font-family: 'Helvetica', sans-serif;
    transition: 0.3s;
}

.nav a:hover {
    color: #005ab6;
}

.login_btn {
    background-color: #409fff;
    color: #fff!important;
    padding: 10px 20px;
    border: none;
    border-radius: 15px;
    font-size: 1rem;
    cursor: pointer;
    font-family: 'Helvetica', sans-serif;
    transition: background-color 0.3s, transform 0.3s;
}

.login_btn:hover {
    background-color: #005ab6;
    transform: scale(1.05);
}


.hamburger_menu {
    display: none; /* Hide by default */
    flex-direction: column;
    cursor: pointer;
    z-index: 1000; /* Ensure it appears above other content */
}

.hamburger_menu div {
    width: 35px;
    height: 5px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 5px;
    display: block;
}

.active .line1 {
    transform: rotate(45deg) translate(10px, 5px);
}

.active .line2 {
    opacity: 0;
}

.active .line3 {
    transform: rotate(-45deg) translate(10px, -5px);
}

.page_title_container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.page_title {
    font-size: 2rem;
    font-family: Helvetica, sans-serif;
    color: #333;
    font-weight: bold;
}

.site_title {
    font-family: Helvetica, sans-serif;
    color: #333;
    font-style: italic;
}

.top_bar_container {
    padding: 10px 20px;
}

.top_bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #b6b6b6;
    padding: 20px;
    border-radius: 10px;
}

.top_bar_search_container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.top_bar_search {
    padding: 10px;
    border: none;
    border-radius: 5px;
    width: 300px;
    font-size: 1rem;
    font-family: 'Helvetica', sans-serif;
    transition: 0.3s;
}

.top_bar_search:focus {
    outline: none;
    transform: scale(1.01);
}

.top_bar_search_btn, .top_bar_basket_btn {
    background-color: #fff;
    color: #fff;
    padding: 10px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    font-family: 'Helvetica', sans-serif;
    transition: 0.3s;
}

.top_bar_search_btn:hover, .top_bar_basket_btn:hover {
    background-color: #ddd;
}

.basket_tooltip {
    position: relative;
    display: inline-block;
}

.basket_tooltip .basket_tooltiptext {
    visibility: visible;
    width: max-content;
    background-color: #000;
    color: #fff;
    text-align: center;
    padding: 5px 10px;
    border-radius: 6px;
    position: absolute;
    z-index: 1;
    top: 15%;
    right: 115%;
    animation: fadeInOpacity 0.5s ease-in-out;
}

.basket_tooltip .basket_tooltiptext::after {
    content: " ";
    position: absolute;
    top: 50%;
    left: 100%; /* To the right of the tooltip */
    margin-top: -4px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent transparent black;
}

@keyframes fadeInOpacity {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.resources_listings_container {
    display: flex;
    flex-direction: row;
    padding: 10px 20px;
    gap: 20px;
}

.filters_sidebar {
    flex: 0 0 calc(25% - 25px);
    padding: 20px;
    background-color: #b6b6b6;
    border-radius: 10px;
    min-height: calc(100vh - 280px); /* Adjust based on header height */
}

.listings_container {
    flex: 0 0 calc(70% - 25px);
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
    justify-items: center;
    height: fit-content;
    position: relative;
}

.filters_sidebar_title {
    font-size: 1.5rem;
    font-family: 'Helvetica', sans-serif;
    color: #fff;
    margin-bottom: 10px;
    font-weight: bold;
    letter-spacing: 1px;
}

.filter_category_container, .filter_price, .filter_rating {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.filter_category_container label, .filter_price label, .filter_rating label {
    font-size: 1.2rem;
    font-family: 'Helvetica', sans-serif;
    color: #fff;
}

.applied_tag_filters_container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.applied_tag {
    display: flex;
    align-items: center;
    gap: 5px;
    background-color: #409fff;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.9rem;
    width: fit-content;
}

.applied_tag_name {
    font-family: 'Helvetica', sans-serif;
}

.remove_tag_btn {
    background-color: #ff4d4d;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 2px 5px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: 0.3s;
    font-family: 'Helvetica', sans-serif;
}

.remove_tag_btn:hover {
    background-color: #e60000;
}

.filter_category_select {
    padding: 10px;
    border: none;
    border-radius: 5px;
    width: 100%;
    font-size: 1rem;
    font-family: 'Helvetica', sans-serif;
    background-color: #fff;
    color: #333;
}

.filter_category_select:focus {
    outline: none;
}

.filter_price_range {
    display: flex;
    flex-direction: row;
    gap: 5px;
    align-items: center;
    width: 100%;
}

#filter_price_value_min, #filter_price_value_max {
    font-family: 'Helvetica', sans-serif;
    color: #333;
}

.filter_price_range_slider_container {
    position: relative;
    width: 100%;
}

.filter_price_range_input {
    width: 100%;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    outline: none;
    position: absolute;
    margin: auto;
    top: 0;
    bottom: 0;
    background-color: transparent;
    pointer-events: none;
}

.filter_price_slider_track {
    width: 100%;
    height: 5px;
    background-color: #4a8cd9;
    position: absolute;
    top: 0;
    bottom: 0;
    margin: auto;
    border-radius: 5px;
}

.filter_price_range_input::-webkit-slider-runnable-track {
    -webkit-appearance: none;
    height: 5px;
}

.filter_price_range_input::-moz-range-track {
    -moz-appearance: none;
    height: 5px;
}

.filter_price_range_input::-ms-track {
    appearance: none;
    height: 5px;
}

.filter_price_range_input::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 15px;
    height: 15px;
    background-color: #409fff;
    border-radius: 50%;
    cursor: pointer;
    margin-top: -5px; /* Center the thumb */
    pointer-events: auto;
}

.filter_price_range_input::-moz-range-thumb {
    -webkit-appearance: none;
    width: 15px;
    height: 15px;
    background-color: #409fff;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: auto;
}

.filter_price_range_input::-ms-thumb {
    appearance: none;
    width: 15px;
    height: 15px;
    background-color: #409fff;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: auto;
}

.filter_price_range_input:focus::-webkit-slider-thumb {
    box-shadow: 0 0 0 3px rgba(64, 159, 255, 0.5);
}

.filter_price_range_input:focus::-moz-range-thumb {
    box-shadow: 0 0 0 3px rgba(64, 159, 255, 0.5);
}

.filter_price_range_input:focus::-ms-thumb {
    box-shadow: 0 0 0 3px rgba(64, 159, 255, 0.5);
}

.filter_rating_stars {
    display: flex;
    gap: 5px;
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.filter_star {
    width: 20px;
    height: 20px;
    background-color: #fff;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    cursor: pointer;
    transition: 0.3s;
}

.filter_star:hover {
    transform: scale(1.2);
}

.filter_star:hover ~ .filter_star {
    transform: scale(1.2);
}

.filter_btn_container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.filter_clear_btn, .filter_apply_btn {
    background-color: #409fff;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    font-family: 'Helvetica', sans-serif;
    transition: background-color 0.3s;
}

.filter_clear_btn:hover, .filter_apply_btn:hover {
    background-color: #005ab6;
}

.resource_listing {
    background-color: #e7e7e7;
    border-radius: 10px;
    padding: 20px;
    width: 300px;
    height: calc(100% - 40px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
}

.image_preview_item {
    width: 300px;
    height: 200px;
    object-fit: cover;
    object-position: 0 0;
    border-radius: 10px;
}


.resource_details {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.resource_title {
    font-size: 1.5rem;
    font-family: 'Helvetica', sans-serif;
    color: #333;
    font-weight: bold;
    text-align: center;
}

.resource_mini_description {
    font-size: 1rem;
    font-family: 'Helvetica', sans-serif;
    color: #666;
}

.resource_tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.tag {
    background-color: #409fff;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.9rem;
    font-family: 'Helvetica', sans-serif;
}

.resource_price_rating {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.resource_price {
    font-size: 1.4rem;
    font-family: 'Helvetica', sans-serif;
    color: #333;
    font-weight: bold;
}

.resource_rating {
    display: flex;
    gap: 5px;
    align-items: center;
    font-size: 1rem;
    font-family: 'Helvetica', sans-serif;
    color: #666;
}

.resource_star {
    width: 20px;
    height: 20px;
    background-color: #ecb500; /* Gold color for stars */
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.resource_action_buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

.view_details_btn, .add_to_basket_btn {
    background-color: #409fff;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    font-family: 'Helvetica', sans-serif;
    transition: background-color 0.3s;
}

.add_to_basket_btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #b6b6b6;
}

.add_to_basket_btn.disabled:hover {
    background-color: #b6b6b6; /* No hover effect for disabled button */
}

.view_details_btn:hover, .add_to_basket_btn:hover {
    background-color: #005ab6;
}

@media (max-width: 650px) {

    .hamburger_menu {
        display: flex; /* Show the hamburger menu on smaller screens */
    }

    .nav {
        display: none; /* Hide the navigation links on smaller screens */
        position: absolute;
        top: 0;
        right: 0;
        background-color: #409fff;
        width: 100vw;
        height: 100vh;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        z-index: 999; /* Ensure it appears above other content */
        transition: 0.3s;
    }

    .nav a:hover {
        color: #fff;
    }

    .login_btn {
        background-color: #005ab6;
    }

    .login_btn:hover {
        background-color: #004080;
    }

    .top_bar {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .top_bar_basket_btn, .basket_tooltip, .top_bar_search_container, .top_bar_search {
        width: 100%;
    }

    .basket_tooltiptext {
        display: none;
    }

}


