@import url('https://fonts.googleapis.com/css2?family=Noto+Sans&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/css/all.min.css');

html {
    overflow-y: scroll;
}

* {
    box-sizing: border-box;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

body {
    font-family: 'Noto Sans', sans-serif;
    background: #f5f7fb;
    color: #1f2933;
    text-align: center;
}

h1, h2, h3 {
    padding-top: 10px;
    padding-bottom: 10px;
    color: #0b1320;
    font-weight: 400;
}

p {
    margin-bottom: 1rem;
}

a {
    color: #000;
}

a:hover,
a:focus {
    color: #153e9d;
}

img {padding-top:10px;}


.navbar {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid #e4e9f4;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
    padding: 14px 32px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.nav-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: #0f172a;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.brand-title {
    font-weight: 800;
    font-size: 15px;
    letter-spacing: 1.4px;
}

.brand-subtitle {
    font-size: 12px;
    color: #475569;
}

.navbar a {
    text-decoration: none;
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    align-items: center;
}


.nav-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 20px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid #e1e7f3;
    color: #0b1320;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
    position: relative;
    overflow: hidden;
    transition: background 0.25s ease, color 0.25s ease,
                box-shadow 0.25s ease, transform 0.3s ease, border-color 0.25s ease;
}

.nav-item.is-active {
    background: #ffffff;
    color: #0b1320;
    border-color: #cbd5e1;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
}

.nav-item::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 6px;
    width: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.9);
    transform: translateX(-50%);
    transition: width 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

.nav-item:hover,
.nav-item:focus {
    background: #ffffff;
    color: #0b1320;
    border-color: #cbd5e1;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
    text-decoration: none;
    transform: translateY(-2px);
}

.nav-item:hover::after,
.nav-item:focus::after {
    width: 60%;
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    .nav-item {
        transition: none;
    }

    .nav-item::after {
        transition: none;
    }
}

.menu-icon {
    display: none;
    font-size: 24px;
    color: #0b1320;
    cursor: pointer;
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
}

@media (max-width: 600px) {
    .navbar {
        padding: 12px 16px;
    }
    .menu-icon {
        display: block;
    }
    .nav-links {
        display: none;
        flex-direction: column;
        gap: 8px;
        background: #ffffff;
        border: 1px solid #e4e9f4;
        box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 12px 16px 16px;
    }
    .nav-links.active {
        display: flex;
    }
    .nav-item {
        width: 100%;
        justify-content: center;
        padding: 5px 12px;
    }
}

.parts-page .menu-icon {
    color: #0b1320;
}

@media (max-width: 600px) {
    .parts-page .nav-links {
        background: #ffffff;
        border: 1px solid #e4e9f4;
        box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
    }
}

.banner {
    width: 100%;
    height: 190px;
    background: url('banner.jpg') no-repeat center center;
    background-size: cover;
    cursor: default;
}

#searchBar {
    width: 80%;
    padding: 10px;
    margin: 20px 0;
}

#clearSearch, #Dice, #NZ, #Jazz, #Unlisted, #ShowFavs, #toggleCategories {
    padding: 8px 15px;
    margin-left: 5px;
    font-size: 16px;
    cursor: pointer;
    color:#000 !important;
}

.card-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.songs-container {
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
}

.card {
    display: flex;
    position: relative;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    border-radius: 16px;
    padding: 20px;
    margin: 5px;
    width: 220px;
    height: 260px;
    text-align: center;
    background: #ffffff;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 55px rgba(15, 23, 42, 0.15);
}

.card img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 18px;
}

.event-container {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
}
.event {
        border-radius: 16px;
        padding: 24px;
        width:400px;
        margin: 10px;
        text-align: left;
        background: #ffffff;
        box-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event:hover {
        transform: translateY(-6px);
        box-shadow: 0 25px 55px rgba(15, 23, 42, 0.15);
}

#noResults {
    display: none;
    font-size: 18px;
    color: #ababab;
    margin-top: 20px;
}

#backToTop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #ffffff;
    color: #0b1320;
    padding: 12px 18px;
    border: 1px solid #e1e7f3;
    cursor: pointer;
    font-size: 16px;
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease, color 0.25s ease, background 0.25s ease;
    z-index: 9999;
}

#backToTop i {
    color: currentColor;
    margin-right: 8px;
    transition: color 0.25s ease;
}

#backToTop.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    animation: backToTopPulse 2.4s ease-in-out infinite;
}

#backToTop:hover,
#backToTop:focus {
    background: #ffffff;
    color: #0b1320;
    border-color: #cbd5e1;
    box-shadow: 0 14px 26px rgba(15, 23, 42, 0.18);
}

#backToTop:hover i,
#backToTop:focus i {
    color: currentColor;
}

@keyframes backToTopPulse {
    0%,
    100% {
        transform: translateY(0);
        box-shadow: 0 14px 26px rgba(15, 23, 42, 0.3);
    }
    50% {
        transform: translateY(-6px);
        box-shadow: 0 22px 32px rgba(15, 23, 42, 0.38);
    }
}

.hero {
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 24px 80px;
    display: flex;
    align-items: center;
    gap: 48px;
}

.hero-text {
    text-align: left;
}

.hero-text p {
    max-width: 520px;
}

.hero-text .link {
    font-weight: 600;
}

.hero-slideshow {
    position: relative;
    width: 440px;
    height: 440px;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.16);
}

.hero-slideshow img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.hero-slideshow img.active {
    opacity: 1;
}

@media (max-width: 900px) {
    .hero {
        flex-direction: column-reverse;
        padding: 40px 20px 60px;
    }

    .hero-slideshow {
        width: 100%;
        max-width: 500px;
        height: 360px;
    }

    .hero-text {
        text-align: center;
    }

    .hero-text p {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

/* Scroll Bar Styles */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: white;
}

::-webkit-scrollbar-thumb {
    background: #ababab;
}

.parts-page {
    background: linear-gradient(180deg, #fdfefe 0%, #f5f7fb 100%);
    color: #0b1320;
}

.parts-page .navbar {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
    border: 1px solid #e4e9f4;
    justify-content: center;
    gap: 18px;
    padding: 14px 32px;
    position: sticky;
    top: 0;
    flex-wrap: wrap;
}

.parts-page .nav-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: #0f172a;
}

.parts-page .nav-links {
    gap: 10px;
}

.parts-page .nav-item {
    background: #ffffff;
    color: #0b1320;
    border: 1px solid #e1e7f3;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
}

.parts-page .nav-item:hover,
.parts-page .nav-item:focus,
.parts-page .nav-item.is-active {
    background: #ffffff;
    color: #0b1320;
    border-color: #cbd5e1;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
}

.parts-page main {
    max-width: 1200px;
    margin: 0 auto;
}

.parts-page h1 {
    color: #0b1320;
    letter-spacing: 0.3px;
}

.parts-search {
    max-width: 960px;
    margin: 12px auto 24px;
    padding: 14px 18px;
    background: #ffffff;
    border: 1px solid #e4e9f4;
    border-radius: 16px;
    box-shadow: 0 18px 32px rgba(15, 23, 42, 0.12);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.parts-page #searchBar {
    flex: 1;
    min-width: 260px;
    max-width: 100%;
    border: 1px solid #dfe5f2;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
    padding: 12px 14px;
}

.search-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.search-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.pill-btn {
    border: 1px solid #dfe5f2;
    background: #ffffff !important;
    border-radius: 12px;
    padding: 10px 14px;
    font-weight: 700;
    color: #0b1320 !important;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.pill-btn:hover,
.pill-btn:focus {
    background: #ffffff !important;
    color: #0b1320 !important;
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 14px 26px rgba(15, 23, 42, 0.12);
}

.pill-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

#categoryButtons {
    width: 100%;
    flex-direction: column;
    align-items: center;
}

#categoryList {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
}

.category-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: 100%;
}

.category-chip .chip-btn {
    width: 100%;
    justify-content: center;
}

@media (max-width: 640px) {
    #categoryList {
        grid-template-columns: 1fr;
    }
}

.chip-btn {
    border: 1px solid #e1e7f3;
    background: #ffffff !important;
    color: #0f172a !important;
    border-radius: 999px;
    padding: 8px 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.08);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.chip-btn:hover,
.chip-btn:focus {
    background: #ffffff !important;
    color: #0f172a !important;
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 12px 20px rgba(15, 23, 42, 0.12);
}

.parts-page .card-container {
    gap: 18px;
    justify-content: flex-start;
}

@media (max-width: 700px) {
    .parts-page .card-container {
        justify-content: center;
    }
}

.parts-page .card {
    width: 260px;
    min-height: 270px;
    text-align: left;
    align-items: flex-start;
    border: 1px solid #e4e9f4;
    background: linear-gradient(180deg, #ffffff 0%, #f3f6fd 100%);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.1);
    padding: 18px 18px 30px;
    gap: 12px;
}

.parts-page .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.14);
}

.parts-page .card img {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    margin-top: auto;
    align-self: center;
}

.parts-page .card-meta-bar {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.parts-page .card-category {
    background: #0f1c34;
    color: #eaf1ff;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.parts-page .card-price {
    font-weight: 700;
    color: #0b1320;
}

.parts-page .card-price:empty,
.parts-page .card-code:empty {
    display: none;
}

.parts-page .card-title-row {
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.parts-page .card-title {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.4;
    margin: 0;
    padding: 0;
}

.parts-page .card-code {
    font-size: 13px;
    color: #44557a;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 8px;
    background: #e9eefb;
    white-space: nowrap;
}

.parts-page .fav-btn {
    position: absolute;
    bottom: 14px;
    right: 14px;
    background: #ffffff;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    box-shadow: 0 12px 22px rgba(15, 23, 42, 0.16);
    border: 1px solid #e4e9f4;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
    color: #94a3b8 !important;
}

.parts-page .fav-btn:hover,
.parts-page .fav-btn:focus,
.parts-page .fav-btn.active {
    background: #ffecc7;
    border-color: #ffd166;
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(244, 158, 26, 0.25);
}

.parts-page .fav-btn i {
    color: inherit !important;
}

.parts-page #backToTop {
    background: #ffffff;
    color: #0b1320;
    border-color: #e1e7f3;
}

::-webkit-scrollbar-thumb:hover {
    background: #ababab;
}

/* Link Styles */
a {
    text-decoration: none;
    color: #000;
    font-weight: 600;
    transition: color 0.2s ease;
}

a:hover,
a:focus {
    text-decoration: underline;
    color: #333;
}

a.link-nochange,
a.link-nochange:hover {
    font-weight: 500;
    text-decoration: none;
    color: #000;
}

.library-layout {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 5% 80px;
}

.library-content {
    flex: 1;
    text-align: left;
    max-width: 780px;
    width: 100%;
}

.library-content section {
    margin-bottom: 48px;
}

.library-content section:last-of-type {
    margin-bottom: 0;
}

.library-content .section-body {
    margin-top: 16px;
    display: grid;
    gap: 1rem;
}

.subnav {
    background-color: #f5f7fb;
    padding: 24px 20px;
    border-radius: 18px;
    position: sticky;
    top: 120px;
    z-index: 900;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 220px;
    align-self: flex-start;
    transition: background-color 0.2s ease;
}

.subnav:hover {
    background-color: #ffffff;
}

.subnav a {
    display: block;
    padding: 10px 12px;
    margin: 0;
    color: rgba(31, 41, 51, 0.7);
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.subnav a:hover,
.subnav a:focus {
    background: rgba(29, 78, 216, 0.12);
    color: #1d4ed8;
    transform: translateX(2px);
    text-decoration: none;
}

#learn,
#history,
#song {
    scroll-margin-top: 140px;
}

@media (max-width: 900px) {
    .library-layout {
        flex-direction: column;
        padding: 32px 5% 60px;
    }

    .subnav {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        padding: 16px;
        box-shadow: none;
    }

    .subnav a {
        padding: 10px 18px;
    }

    #learn,
    #history,
    #song {
        scroll-margin-top: 90px;
    }
}

.fav-btn:hover {
  color: #d4af37 !important;
}

.fav-btn:hover i {
  color: #d4af37 !important;
}

.fav-btn.active i {
  color: #d4af37 !important;
}

.fa-solid {color:#000 !important; }

.fav-btn {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 1.2em;
  color: #b0b8c5 !important;
  transition: transform 0.2s ease;
}
