/* Header Navigation Styles */
.header-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(62, 76, 102, 0.88);
    backdrop-filter: blur(14px);
    z-index: 1000;
    padding: 10px 0;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.6);
}

.header-logo {
    height: 60px;
    width: auto;
    padding-left: 75px;
    display: flex;
    align-items: center;
}

.header-logo img {
    width: 280px;
    max-width: 100%;
    height: auto;
    display: block;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.main-nav a {
    color: #cbd5f5;
    text-decoration: none;
    font-weight: 400;
    font-size: 20px;
    transition: color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.main-nav a:hover {
    color: #F38AB8;
}

.main-nav a.active {
    color: #F38AB8;
}

.social-icons {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-right: 75px;
}

.social-icons a {
    display: block;
    width: 32px;
    height: 32px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.social-icons a:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

/* Baby Bera Finance (desktop + mobile): circular frame like prior header icons */
.header-external-link {
    border-radius: 50%;
    overflow: hidden;
}

.header-external-link img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 50%;
}

/* Mobile Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #718591;
    margin: 3px 0;
    transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Mobile Menu Overlay */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ffffff;
    backdrop-filter: blur(10px);
    z-index: 999;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu a {
    color: #cbd5f5;
    text-decoration: none;
    font-size: 20px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.mobile-menu a:hover,
.mobile-menu a.active {
    color: #F38AB8;
}

.mobile-social {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.mobile-social a {
    display: block;
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-social a:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .main-nav,
    .social-icons {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .header-nav {
        padding: 10px 0;
        height: 60px;
    }

    .header-logo {
        padding-left: 20px;
    }
}

/* Full-screen background canvas for GLSL shaders */
#bg-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: 0;
}

/* Body padding to account for fixed header */
body {
    padding-top: 70px;
    background: #7e8798;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    display: block !important;
    justify-content: unset !important;
    align-items: unset !important;
    min-height: 100vh !important;
    overflow-x: hidden;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    touch-action: manipulation;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

html {
    touch-action: manipulation;
    -webkit-touch-callout: none;
    background: #050710;
    height: 100%;
}

html {
    overflow-x: hidden;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    background: #050710;
}

/* Hero Section */
.hero-section {
    width: 100%;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 40px;
    text-align: center;
    position: relative;
    z-index: 10;
    box-sizing: border-box;
}

.hero-image {
    width: 100%;
    max-width: 50%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
}

/* Login Module */
.login-module {
    max-width: 500px;
    width: 100%;
    margin: 30px auto;
    padding: 30px;
    background: rgba(62, 76, 102, 0.88);
    backdrop-filter: blur(14px);
    border: none;
    border-radius: 16px;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.6);
    box-sizing: border-box;
    position: relative;
    z-index: 10;
}

.login-module .button-row-inline {
    display: flex;
    gap: 10px;
    margin-top: 0;
    margin-bottom: 0;
}

.login-module .button-row-inline .launch-button {
    flex: 1;
}

.login-options {
    display: none;
}

.login-options.active {
    display: block;
}

.initial-buttons {
    display: block;
}

.initial-buttons.hidden {
    display: none;
}

.landing-container {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid white;
    border-radius: 16px;
    padding: 40px;
    max-width: 900px;
    width: 100%;
    margin: 20px 0;
    text-align: center;
}

.app-description {
    color: white;
    text-align: center;
    margin: 20px 0;
    font-size: 1.2em;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.features-list {
    color: white;
    text-align: left;
    margin: 20px 0;
    font-size: 1.1em;
    line-height: 1.8;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.features-list li {
    margin-bottom: 10px;
}

.launch-button {
    background-color: #2d3a52;
    color: white;
    border: none;
    padding: 6px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: background-color 0.2s, transform 0.2s;
    text-decoration: none;
    display: inline-block;
    margin: 0;
    width: auto;
    min-width: 100px;
    text-align: center;
}

.button-row-inline {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    margin-bottom: 20px;
}

.button-row-inline .launch-button {
    flex: 1;
}

.launch-button:hover {
    background-color: #1f2838;
    transform: scale(1.02);
}

/* Pink outline button style */
.pink-outline-button {
    background-color: transparent;
    color: #F38AB8;
    border: 2px solid #F38AB8;
    padding: 6px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: background-color 0.2s, transform 0.2s, color 0.2s;
    text-decoration: none;
    display: inline-block;
    margin: 0;
    width: 100%;
    text-align: center;
}

.pink-outline-button:hover {
    background-color: #F38AB8;
    color: white;
    transform: scale(1.02);
}

/* Button row to place actions side by side */
.button-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.sequencer-preview {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.highlight {
    color: #34459B;
    font-weight: bold;
}

.whitelist-info {
    margin-top: 10px;
    margin-bottom: 15px;
    color: #cbd5f5;
    font-size: 0.95em;
    line-height: 1.6;
}

.whitelist-info a {
    color: #d2d6dc;
    text-decoration: none;
    font-weight: bold;
}

.whitelist-info a:hover {
    color: #F38AB8;
    text-decoration: underline;
}

.app-description {
    color: #cbd5f5;
    text-align: left;
    margin: 20px 0;
    font-size: 1em;
    line-height: 1.6;
}

.features-list {
    color: #cbd5f5;
    text-align: left;
    margin: 20px 0;
    font-size: 0.95em;
    line-height: 1.8;
    padding-left: 20px;
}

.features-list li {
    margin-bottom: 8px;
    font-weight: bold;
}

/* Simple modal styles for Web2 login */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}
.modal-content {
    background: rgba(62, 76, 102, 0.95);
    backdrop-filter: blur(14px);
    border-radius: 12px;
    padding: 24px;
    width: 90%;
    max-width: 480px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    box-sizing: border-box;
}
.modal-content h3 {
    margin-top: 0;
    margin-bottom: 12px;
    color: #e5e7eb;
}
.modal-field {
    margin-bottom: 12px;
}
.modal-field label {
    display: block;
    margin-bottom: 6px;
    color: #cbd5f5;
    font-weight: 600;
}
.modal-field input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #4b5563;
    border-radius: 8px;
    background: rgba(2, 6, 23, 0.9);
    color: #e5e7eb;
    font-size: 16px;
    box-sizing: border-box;
}
.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}
.btn-secondary {
    background-color: #D9D9D9;
    color: #333;
    border: none;
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}
.error-text {
    color: #dc3545;
    margin: 8px 0 0 0;
    font-size: 14px;
}

/* Featured Artists Carousel Styles */
.artists-carousel {
    position: relative;
    width: 100%;
}

.artists-carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.artists-carousel-track {
    display: flex;
    transition: transform 0.5s ease;
    touch-action: pan-x;
    user-select: none;
    -webkit-user-select: none;
}

.artist-card {
    min-width: 100%;
    text-align: center;
    flex-shrink: 0;
    position: relative;
    cursor: pointer;
}

.artist-card-wrapper {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

.artist-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    background: rgba(2, 6, 23, 0.6);
    margin-bottom: 10px;
}

.artist-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s;
}

.artist-card:hover .artist-image {
    transform: scale(1.02);
}

.artist-card-info {
    padding: 0 5px;
}

.artist-name {
    color: #e5e7eb;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.artist-stats {
    display: flex;
    justify-content: space-around;
    gap: 10px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.artist-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.artist-stat-value {
    color: #F38AB8;
    font-size: 14px;
    font-weight: 600;
}

.artist-stat-label {
    color: #cbd5f5;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.artists-carousel-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.carousel-btn {
    background-color: #d2d6dc;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s, transform 0.2s;
}

.carousel-btn:hover {
    background-color: #b8c0c8;
    transform: scale(1.1);
}

.carousel-btn:disabled {
    background-color: #d2d6dc;
    cursor: not-allowed;
    transform: none;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #d2d6dc;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
}

.carousel-dot.active {
    background-color: #d2d6dc;
    transform: scale(1.3);
}

/* Audio Playlist Styles */
.playlist-container {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
    max-height: 300px;
    padding-right: 5px;
    scroll-snap-type: y mandatory;
}

/* Custom scrollbar styling */
.playlist-container::-webkit-scrollbar {
    width: 6px;
}

.playlist-container::-webkit-scrollbar-track {
    background: rgba(210, 214, 220, 0.3);
    border-radius: 3px;
}

.playlist-container::-webkit-scrollbar-thumb {
    background: #d2d6dc;
    border-radius: 3px;
}

.playlist-container::-webkit-scrollbar-thumb:hover {
    background: #d2d6dc;
}

.playlist-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    margin-bottom: 10px;
    background: rgba(2, 6, 23, 0.6);
    border-radius: 8px;
    border: 1px solid rgba(75, 85, 99, 0.5);
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
    scroll-snap-align: start;
}

.playlist-item:hover {
    background: rgba(2, 6, 23, 0.8);
    border-color: rgba(75, 85, 99, 0.7);
}

.playlist-item.playing {
    background: rgba(2, 6, 23, 0.8);
    border-color: rgba(75, 85, 99, 0.7);
}

.playlist-item-art {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.playlist-item-info {
    flex: 1;
    min-width: 0;
}

.playlist-item-title {
    color: #e5e7eb;
    font-weight: 600;
    font-size: 14px;
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.playlist-item-artist {
    color: #cbd5f5;
    font-size: 12px;
    margin: 0;
}

.playlist-item-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.playlist-play-btn {
    background: #F38AB8;
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background-color 0.2s, transform 0.2s;
}

.playlist-play-btn .playlist-item-icon {
    width: 16px;
    height: 16px;
    display: block;
}

.playlist-play-btn:hover {
    background: #e06a9a;
    transform: scale(1.1);
}

.playlist-play-btn.playing {
    background: #34459B;
}

.playlist-controls-wrapper {
    position: relative;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: none;
    min-height: 60px;
}

.playlist-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
    margin-top: -10px;
}

.playlist-main-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Desktop only: Move playlist controls 10px to the right */
@media (min-width: 769px) {
    .playlist-controls {
        margin-left: 10px;
    }

    .playlist-main-controls {
        margin-left: 0;
    }

    .playlist-now-playing {
        margin-left: 0;
    }
}

.playlist-main-btn {
    background: #F38AB8;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: background-color 0.2s, transform 0.2s;
    padding: 0;
}

.playlist-main-btn#playlistPrevBtn,
.playlist-main-btn#playlistNextBtn {
    width: 32px;
    height: 32px;
    font-size: 14px;
}

.playlist-main-btn .play-pause-icon {
    width: 20px;
    height: 20px;
    display: block;
}

.playlist-main-btn:hover {
    background: #e06a9a;
    transform: scale(1.1);
}

.playlist-main-btn:disabled {
    background: rgba(2, 6, 23, 0.5);
    cursor: not-allowed;
    transform: none;
}

.playlist-volume-control {
    position: absolute;
    bottom: 15px;
    left: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 8px;
    pointer-events: auto;
}

/* Desktop only: Move volume control 10px to the right */
@media (min-width: 769px) {
    .playlist-volume-control {
        left: 10px;
    }
}

.playlist-volume-btn {
    background: #d2d6dc;
    color: white;
    border: none;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s, transform 0.2s;
    padding: 0;
    flex-shrink: 0;
}

.playlist-volume-btn .playlist-volume-icon {
    width: 14px;
    height: 14px;
    display: block;
}

.playlist-volume-btn:hover {
    background: #b8c0c8;
    transform: scale(1.1);
}

.playlist-volume-slider-wrapper {
    width: 270px;
}

.playlist-volume-slider {
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: #d2d6dc;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.playlist-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #d2d6dc;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
}

.playlist-volume-slider::-webkit-slider-thumb:hover {
    background: #b8c0c8;
    transform: scale(1.2);
}

.playlist-volume-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #d2d6dc;
    cursor: pointer;
    border: none;
    transition: background-color 0.2s, transform 0.2s;
}

.playlist-volume-slider::-moz-range-thumb:hover {
    background: #b8c0c8;
    transform: scale(1.2);
}

.playlist-volume-slider::-moz-range-track {
    height: 4px;
    border-radius: 2px;
    background: #d2d6dc;
}

.playlist-now-playing {
    flex: 1;
    margin-left: 15px;
    min-width: 0;
}

.playlist-now-playing-title {
    color: #e5e7eb;
    font-weight: 600;
    font-size: 14px;
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.playlist-now-playing-artist {
    color: #cbd5f5;
    font-size: 12px;
    margin: 0;
}

/* Progress Bar */
.playlist-progress-container {
    margin: 15px 0;
    padding: 0 5px;
}

.playlist-progress-bar {
    width: 100%;
    height: 4px;
    background: #d2d6dc;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 8px;
    cursor: pointer;
}

.playlist-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #F38AB8 0%, #d2d6dc 100%);
    width: 0%;
    transition: width 0.1s linear;
    border-radius: 2px;
}

.playlist-time {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #cbd5f5;
}

/* Frequency Spectrum Visualization */
.playlist-visualizer-container {
    position: absolute;
    top: -29px;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 10px;
    background: rgba(210, 214, 220, 0.2);
    border-radius: 8px;
    height: calc(100% + 29px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    pointer-events: none;
}

#playlistVisualizer {
    width: 100%;
    height: 100%;
    display: block;
    opacity: 0.6;
}

/* Footer/Copyright */
.footer {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    text-align: center !important;
    padding: 20px 20px 10px 20px !important;
    color: #9ca3af !important;
    font-size: 14px !important;
    margin: 40px auto 0 auto !important;
    clear: both !important;
    box-sizing: border-box !important;
    position: relative !important;
    left: auto !important;
    right: auto !important;
    z-index: 1;
}

.footer p {
    margin: 0;
}

/* Shader selector dropdown at bottom of page */
.shader-selector-container {
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1001;
    pointer-events: auto;
}

.shader-selector-container label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9ca3af;
    margin-bottom: 0.25rem;
    text-align: center;
}

.shader-selector-container select {
    padding: 0.4rem 0.6rem;
    border-radius: 0.5rem;
    border: 1px solid #4b5563;
    background: rgba(2, 6, 23, 0.9);
    color: #e5e7eb;
    font-size: 0.9rem;
    cursor: pointer;
    min-width: 200px;
}

/* Responsive Design */

@media (max-width: 1024px) {
    .hero-section {
        padding: 0 20px;
    }

    .login-module {
        padding: 25px;
        margin: 20px auto;
    }
}

@media (max-width: 768px) {
    body {
        padding: 60px 0 0 0 !important;
    }

    .hero-section {
        padding: 0 20px;
        margin: 20px auto;
    }

    .hero-image {
        max-width: 100%;
    }

    .login-module {
        padding: 20px;
        margin: 20px 10px;
        max-width: calc(100% - 20px);
    }

    .launch-button {
        padding: 12px 30px;
        font-size: 16px;
    }
}

@media (max-width: 600px) {
    .landing-container {
        padding: 30px 20px;
    }
    .app-description {
        font-size: 1.1em;
    }
    .features-list {
        font-size: 1em;
    }
    .launch-button {
        padding: 12px 30px;
        font-size: 16px;
    }
}
