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

body {
    font-family: 'Jost', sans-serif;
    background: #0F172A;
    background: linear-gradient(39deg, rgb(4, 6, 16) 0%, rgba(10, 15, 27, 1) 80%, rgba(90, 8, 142, 1) 100%);
    color: #ffffff;
    min-height: 100vh;
}

/* Development Banner */
.dev-banner {
    background: #dc2626;
    color: #ffffff;
    text-align: center;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 200px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.nav-left,
.nav-right {
    display: flex;
    gap: 30px;
    flex: 1;
}

.nav-right {
    justify-content: flex-end;
}

/* Prevent flash of Account text before auth loads */
#account-link,
#account-link-mobile,
#logout-link,
#logout-link-mobile {
    opacity: 0;
    transition: opacity 0.2s;
}

#account-link.auth-loaded,
#account-link-mobile.auth-loaded,
#logout-link.auth-loaded,
#logout-link-mobile.auth-loaded {
    opacity: 1;
}

.nav-center {
    flex: 0;
}

.nav-link {
    color: #b2bbd6;
    text-decoration: none;
    font-size: 20px;
    font-weight: 400;
    transition: color 0.3s;
}

.nav-link.active {
    color: #8B5CF6;
}

.nav-link:hover {
    color: #8B5CF6;
}

.pricing-highlight {
    color: #8B5CF6;
    font-weight: 500;
}

.logo {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background-color: #ffffff;
    margin: 3px 0;
    transition: all 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(2, 4, 16, 0.98);
    z-index: 1000;
    padding: 80px 40px;
    flex-direction: column;
    gap: 30px;
    align-items: center;
    justify-content: center;
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu .nav-link {
    font-size: 24px;
    text-align: center;
}

/* Hero Section */
.hero {
    padding: 40px 0;
    text-align: center;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 200px;
}

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

/* Center hero title and description when not in hero-content wrapper */
.hero > .hero-title,
.hero > .hero-description {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.hero-image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image img {
    width: 100%;
    height: auto;
    max-width: 600px;
    border-radius: 8px;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: 8px;
    line-height: 1.3;
    margin-bottom: 20px;
}

.red-text {
    color: #8B5CF6;
}

.hero-description {
    font-size: 24px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    max-width: 600px;
}

/* Main Content */
.main-content {
    display: flex;
    flex-direction: column;
    padding: 40px 200px;
    gap: 40px;
    max-width: 1600px;
    margin: 0 auto;
}

/* Filters */
.filters {
    width: 100%;
}

.filters h3 {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 20px;
}

.filter-group {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    opacity: 1;
    transition: opacity 0.2s;
}

/* Hide filters on catalogue and admin pages until loaded to prevent flash */
body:has(.catalogue-header) .filter-group,
body:has(.admin-container) .filter-group {
    opacity: 0;
}

body:has(.catalogue-header) .filter-group.filters-loaded,
body:has(.admin-container) .filter-group.filters-loaded {
    opacity: 1;
}

.filter-btn {
    background: transparent;
    border: none;
    color: #ffffff;
    padding: 10px 15px;
    text-align: left;
    font-family: 'Jost', sans-serif;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 20px;
}

.filter-btn.active {
    background: linear-gradient(135deg, #8B5CF6 0%, #6D28D9 100%);
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(139, 92, 246, 0.3);
}

.filter-btn:hover:not(.active) {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Music Section */
.music-section {
    width: 100%;
}

.section-title {
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 30px;
}

.track-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.explore-music-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 60px;
    width: 100%;
    gap: 20px;
    flex-wrap: wrap;
}

.explore-music-btn {
    display: inline-block;
    padding: 15px 50px;
    background: linear-gradient(135deg, #8B5CF6 0%, #6D28D9 100%);
    border: 2px solid #8B5CF6;
    color: #ffffff;
    text-decoration: none;
    font-family: 'Jost', sans-serif;
    font-weight: 400;
    font-size: 24px;
    border-radius: 25px;
    transition: all 0.3s;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.explore-music-btn:hover {
    background: linear-gradient(135deg, #7C3AED 0%, #5B21B6 100%);
    border-color: #7C3AED;
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
    transform: translateY(-2px);
}

.explore-music-btn-outline {
    background: transparent;
    border: 2px solid #8B5CF6;
    color: #8B5CF6;
    box-shadow: none;
}

.explore-music-btn-outline:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: #8B5CF6;
    color: #8B5CF6;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.2);
}

.track-item {
    display: grid;
    grid-template-columns: 50px 40px 1fr 300px 60px 80px 40px 40px;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: linear-gradient(135deg, rgba(20, 30, 50, 0.6), rgba(10, 20, 40, 0.6));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s;
}

.track-item:hover {
    background: linear-gradient(135deg, rgba(30, 40, 60, 0.8), rgba(15, 25, 45, 0.8));
    border-color: rgba(255, 255, 255, 0.2);
}

.track-cover {
    width: 50px;
    height: 50px;
    border-radius: 4px;
    overflow: hidden;
}

.track-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-btn,
.favorite-btn,
.download-btn {
    background: transparent;
    border: none;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.favorite-btn svg,
.download-btn svg {
    width: 24px;
    height: 24px;
}

.favorite-btn svg,
.download-btn svg {
    width: 24px;
    height: 24px;
}

.play-btn:hover {
    color: #8B5CF6;
}

.play-btn.paused svg {
    fill: #8B5CF6;
}

.track-name {
    font-size: 20px;
    color: #ffffff;
    font-weight: 100;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.waveform {
    position: relative;
    height: 40px;
    width: 100%;
}

.waveform-canvas {
    width: 100%;
    height: 100%;
}

.track-duration,
.track-bpm {
    font-size: 13px;
    color: #999;
}

.favorite-btn.active,
.download-btn:hover {
    color: #8B5CF6;
}

.favorite-btn:not(.active):hover {
    color: #999;
}

.favorite-btn:not(.active),
.download-btn:not(:hover) {
    color: #666;
}

/* Why Section */
.why-section {
    padding: 80px 200px;
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
}

.why-title {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 60px;
    color: #ffffff;
    text-align: center;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.why-card {
    background: #0C101C;
    background: linear-gradient(0deg, rgba(12, 16, 28, 1) 0%, rgba(16, 24, 39, 1) 100%);
    border: 1px solid rgba(0, 137, 249, 0.3);
    border-radius: 15px;
    padding: 30px;
    transition: all 0.3s ease;
    text-align: center;
}

.why-card-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    display: block;
    filter: brightness(0) saturate(100%) invert(47%) sepia(46%) saturate(1850%) hue-rotate(226deg) brightness(93%) contrast(88%);
}

.why-card-title {
    font-size: 24px;
    font-weight: 300;
    color: white;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.why-card-text {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

/* Trusted Section */
.trusted-section {

    text-align: center;
    background: transparent;
    max-width: 1600px;
    margin: 0 auto;
    padding-bottom: 40px;
}


.trusted-logos {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
    flex-wrap: nowrap;
    gap: 15px;
}

.trusted-logo {
    height: 40px;
    width: auto;
    opacity: 0.6;
    filter: brightness(0) invert(1);
    transition: all 0.3s;
    flex: 1;
    max-width: 100px;
    object-fit: contain;
}

.trusted-logo:hover {
    opacity: 1;
}

/* Use Cases Section */
.use-cases-section {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 40px;
    text-align: center;
}

.use-cases-title {
    font-size: 36px;
    font-weight: 400;
    color: #ffffff;
    margin-bottom: 50px;
    letter-spacing: 2px;
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    align-items: start;
}

.use-case-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.use-case-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    transition: transform 0.3s;
}

.use-case-image:hover {
    transform: translateY(-5px);
}

.use-case-label {
    font-size: 18px;
    font-weight: 400;
    color: #ffffff;
    letter-spacing: 1px;
}

/* Footer */
.footer {
    position: relative;
    padding: 60px 80px 40px;
    background: transparent;
    margin-top: 80px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.social-links {
    display: flex;
    gap: 30px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-link {
    color: #999;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-link:hover {
    color: #8B5CF6;
}

.social-link {
    color: #ffffff;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-link img {
    width: 24px;
    height: 24px;
    transition: opacity 0.3s;
}

.social-link:hover img {
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .track-item {
        grid-template-columns: 30px 40px 120px 1fr 60px 70px 35px 35px;
        gap: 10px;
    }
}

@media (max-width: 968px) {
    .hamburger {
        display: flex;
        position: absolute;
        right: 40px;
        top: 30px;
    }

    .navbar {
        flex-direction: column;
        gap: 20px;
        position: relative;
    }

    .nav-left,
    .nav-right {
        display: none;
    }

    .nav-center {
        display: flex;
    }

    .main-content {
        flex-direction: column;
        padding: 40px 20px;
    }

    .filters,
    .music-section {
        flex: 1 1 100%;
        max-width: 100%;
        width: 100%;
    }

    .filters {
        margin-bottom: 30px;
    }

    .filter-group {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
    }

    .filter-btn {
        flex: 0 0 auto;
        padding: 8px 16px;
        font-size: 16px;
    }

    .why-section {
        padding: 60px 40px;
    }

    .why-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .why-title {
        font-size: 28px;
        letter-spacing: 2px;
        margin-bottom: 30px;
    }

    .why-section {
        padding: 60px 40px;
    }

    .why-title {
        font-size: 28px;
        margin-bottom: 40px;
    }

    .why-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .why-card {
        padding: 25px;
    }

    .why-card-title {
        font-size: 18px;
    }

    .why-card-text {
        font-size: 15px;
    }

    .use-cases-section {
        margin: 60px auto;
        padding: 0 30px;
    }

    .use-cases-title {
        font-size: 28px;
        margin-bottom: 40px;
    }

    .use-cases-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .trusted-section {
        padding: 60px 40px;
    }

    .trusted-title {
        font-size: 28px;
        letter-spacing: 2px;
        margin-bottom: 40px;
    }

    .trusted-logos {
        gap: 40px;
    }

    .trusted-logo {
        height: 60px;
    }


    .why-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .why-title {
        font-size: 28px;
        letter-spacing: 2px;
        margin-bottom: 30px;
    }

    .why-point {
        font-size: 16px;
    }

    .hero {
        padding: 40px 0;
    }

    .hero-content {
        flex-direction: column;
        gap: 30px;
        padding: 0 20px;
    }

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

    .hero-image img {
        max-width: 100%;
    }

    .hero-title {
        font-size: 28px;
        letter-spacing: 3px;
        line-height: 1.3;
    }

    .hero-description {
        font-size: 14px;
        max-width: 100%;
    }

    .track-item {
        display: grid;
        grid-template-columns: 50px 30px 1fr 30px 30px;
        gap: 8px;
        padding: 10px 12px;
        align-items: center;
    }

    .track-cover {
        width: 50px;
        height: 50px;
    }

    .play-btn {
        width: 30px;
        height: 30px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .play-btn svg {
        width: 12px;
        height: 12px;
    }

    .track-name {
        font-size: 14px;
        font-weight: 400;
        color: #ffffff;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        flex-shrink: 1;
        min-width: 0;
    }

    .waveform {
        display: none;
    }

    .track-duration {
        display: none;
    }

    .track-bpm {
        display: none;
    }

    .favorite-btn {
        width: 30px;
        height: 30px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .download-btn {
        width: 30px;
        height: 30px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .favorite-btn svg,
    .download-btn svg {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 640px) {
    .why-section {
        padding: 40px 20px;
    }

    .why-title {
        font-size: 24px;
        letter-spacing: 1px;
        margin-bottom: 25px;
    }

    .why-point {
        font-size: 14px;
        gap: 15px;
    }

    .why-section {
        padding: 40px 20px;
    }

    .why-title {
        font-size: 24px;
        margin-bottom: 30px;
    }

    .why-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .why-card {
        padding: 20px;
    }

    .why-card-title {
        font-size: 16px;
    }

    .why-card-text {
        font-size: 14px;
    }

    .trusted-section {
        padding: 40px 20px;
    }

    .trusted-title {
        font-size: 24px;
        letter-spacing: 1px;
        margin-bottom: 30px;
    }

    .trusted-logos {
        gap: 10px;
    }

    .trusted-logo {
        height: 30px;
        max-width: 60px;
    }

    .nav-left,
    .nav-right {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .hero-title {
        font-size: 28px;
        letter-spacing: 3px;
    }

    .track-item {
    
        padding: 10px;
    }

    .track-duration {
        display: none;
    }
}
