/* Base Styles */
:root {
    --primary-color: #9333ea;
    --secondary-color: #ec4899;
    --accent-color: #6366f1;
    --bg-color: #000000;
    --card-bg: #0a0a0f;
    --text-color: #ffffff;
    --text-secondary: #a0a0b0;
    --gray-900: #111111;
    --gray-800: #181818;
    --gray-700: #222222;
    --gray-600: #333333;
    --gray-500: #555555;
    --gray-400: #777777;
    --shadow-color: rgba(147, 51, 234, 0.15);
    --transition-speed: 0.3s;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
    z-index: 10;
}

/* Subtle Noise Overlay */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.015'/%3E%3C/svg%3E");
    opacity: 0.2;
    z-index: 1;
    pointer-events: none;
}

/* Logo Animation */
.logo-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    padding: 1rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    margin: 0 auto;
}

.logo-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.02em;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    display: inline-block;
}

.logo-star {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    color: var(--secondary-color);
    display: inline-block;
    position: relative;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    text-shadow: 0 0 10px rgba(236, 72, 153, 0.3);
}

.logo-container:hover .logo-star {
    transform: rotate(180deg);
}

/* Header styling */
header {
    position: relative;
    padding: 2rem 0;
    margin-bottom: 2rem;
    text-align: center;
}

/* Loading Animation */
.loader {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(147, 51, 234, 0.1);
    border-radius: 50%;
    display: inline-block;
    position: relative;
    box-sizing: border-box;
    animation: rotation 1.2s linear infinite;
}

.loader::after {
    content: '';  
    box-sizing: border-box;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-bottom-color: var(--primary-color);
    border-top-color: var(--secondary-color);
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Track Display */
.track-artwork-container {
    aspect-ratio: 1 / 1;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background-color: #050505;
}

.track-artwork-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px -10px rgba(147, 51, 234, 0.2);
}

.track-artwork {
    transition: all 0.4s ease;
    transform-origin: center;
}

.track-artwork-container:hover .track-artwork {
    transform: scale(1.03);
}

/* Text Gradient */
.text-gradient {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Audio Player */
.audio-player {
    background: rgba(10, 10, 15, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.audio-player:hover {
    border-color: rgba(147, 51, 234, 0.1);
}

.progress-container {
    position: relative;
    margin-bottom: 1.5rem;
}

.progress-bar {
    height: 4px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: height 0.2s ease;
}

.progress-bar:hover {
    height: 6px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    width: 0%;
    border-radius: 2px;
    position: absolute;
    top: 0;
    left: 0;
    transition: width 0.1s linear;
}

.time-display {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--gray-400);
    margin-top: 0.5rem;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
}

.controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-top: 1rem;
}

.play-button, .pause-button, .next-button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    outline: none;
}

.play-button:hover, .pause-button:hover {
    transform: scale(1.05);
    color: var(--primary-color);
}

.next-button:hover {
    transform: scale(1.05);
    color: var(--secondary-color);
}

.play-button:active, .pause-button:active, .next-button:active {
    transform: scale(0.98);
}

/* CTA Modal */
#cta-modal {
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

#cta-modal.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 2rem;
    max-width: 400px;
    width: 100%;
    position: relative;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    animation: modalAppear 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalAppear {
    0% {
        transform: translateY(20px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Buttons */
button, .button {
    position: relative;
    overflow: hidden;
    background: rgba(147, 51, 234, 0.1);
    color: white;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(147, 51, 234, 0.2);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: center;
    display: inline-block;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
}

button:hover, .button:hover {
    background: rgba(147, 51, 234, 0.15);
    border-color: rgba(147, 51, 234, 0.3);
    transform: translateY(-2px);
}

button:active, .button:active {
    transform: translateY(0);
}

/* Form Styles */
.form-container {
    background: rgba(10, 10, 15, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.form-container:hover {
    border-color: rgba(147, 51, 234, 0.1);
}

input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    color: white;
    transition: all 0.3s ease;
    outline: none;
    font-size: 0.95rem;
}

input:focus {
    border-color: rgba(147, 51, 234, 0.3);
    background: rgba(0, 0, 0, 0.3);
}

input::placeholder {
    color: var(--gray-500);
}

/* Footer */
footer {
    margin-top: auto;
    padding: 2rem 0;
    text-align: center;
    position: relative;
    color: var(--gray-500);
    font-size: 0.9rem;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.4s ease forwards;
}

/* Responsive Adjustments */
@media (max-width: 640px) {
    .audio-player {
        padding: 1rem;
    }
    
    .controls {
        margin-top: 0.75rem;
    }
    
    .track-artwork-container {
        border-radius: 8px;
    }
    
    .form-container {
        padding: 1.5rem;
    }
}

/* Submit Page Specific */
.how-it-works-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.01);
}

.how-it-works-item:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.03);
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    background: rgba(147, 51, 234, 0.1);
    border-radius: 50%;
    font-weight: bold;
    color: var(--primary-color);
}

/* Response Messages */
.success-message {
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.1);
    color: #10b981;
    border-radius: 8px;
    padding: 1rem;
    animation: fadeIn 0.4s ease forwards;
}

.error-message {
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-radius: 8px;
    padding: 1rem;
    animation: fadeIn 0.4s ease forwards;
}

/* Donation Button and Modal Styles */
#donation-btn, #donation-btn-mobile {
    font-size: 0.875rem;
    box-shadow: 0 0 15px rgba(147, 51, 234, 0.5);
}

#donation-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 50;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

#donation-modal .modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: -1;
}

#donation-modal.active .modal-content {
    transform: scale(1);
    opacity: 1;
}

#donation-modal .modal-content {
    background: var(--card-bg);
    border: 1px solid rgba(147, 51, 234, 0.2);
    border-radius: 16px;
    padding: 2rem;
    max-width: 450px;
    width: 100%;
    position: relative;
    transform: scale(0.95);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(147, 51, 234, 0.2);
}

.donation-button-container {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}

/* Make the Lemon Squeezy button match our design */
.lemonsqueezy-button {
    display: inline-block;
    background: linear-gradient(to right, #9333ea, #ec4899);
    color: white;
    font-weight: bold;
    padding: 1rem 2rem;
    border-radius: 9999px;
    transition: all 0.3s;
    text-decoration: none;
    box-shadow: 0 0 15px rgba(147, 51, 234, 0.5);
    font-size: 1rem;
    letter-spacing: 0.01em;
}

.lemonsqueezy-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(147, 51, 234, 0.7);
}

/* Close button styling */
#close-donation-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#close-donation-modal:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

/* Payment option styles */
.payment-option-btn {
    min-width: 120px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.payment-option-btn.active {
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 15px rgba(147, 51, 234, 0.5);
}

#crypto-payment form {
    display: inline-block;
    margin-top: 10px;
}

#crypto-payment input[type="image"] {
    max-width: 200px;
    height: auto;
}
/* PWA Install Prompt */
.install-app-container {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 400px;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.install-app-container.hidden {
    transform: translate(-50%, 150%);
    opacity: 0;
    pointer-events: none;
}

.install-app-content {
    padding: 16px;
}

.install-app-header {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.install-app-logo {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    margin-right: 12px;
}

.install-app-title h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: var(--text-color);
}

.install-app-title p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 4px 0 0;
}

.install-app-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.install-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.install-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(147, 51, 234, 0.3);
}

.dismiss-btn {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dismiss-btn:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Offline notification */
.offline-notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border-left: 4px solid var(--primary-color);
    animation: slideIn 0.3s ease-out;
}

.offline-notification.fade-out {
    animation: fadeOut 0.5s ease-out forwards;
}

@keyframes slideIn {
    from {
        transform: translate(-50%, -20px);
        opacity: 0;
    }
    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}