/* ===== CSS Variables ===== */
:root {
    --spotify-green: #1DB954;
    --spotify-green-light: #1ed760;
    --spotify-black: #121212;
    --spotify-dark: #181818;
    --spotify-gray: #282828;
    --spotify-light-gray: #b3b3b3;
    --text-primary: #ffffff;
    --text-secondary: #a7a7a7;
    --gradient-primary: linear-gradient(135deg, #1DB954 0%, #1ed760 50%, #14833b 100%);
    --gradient-accent: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-warm: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(29, 185, 84, 0.3);
    --border-radius: 16px;
    --border-radius-sm: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--spotify-black);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background Pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(29, 185, 84, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(29, 185, 84, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
    animation: gradientShift 15s ease-in-out infinite;
}

@keyframes gradientShift {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

/* Floating Particles */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(2px 2px at 20px 30px, rgba(29, 185, 84, 0.3), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255, 255, 255, 0.15), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(29, 185, 84, 0.2), transparent),
        radial-gradient(2px 2px at 130px 80px, rgba(102, 126, 234, 0.2), transparent),
        radial-gradient(1px 1px at 160px 30px, rgba(255, 255, 255, 0.1), transparent);
    background-size: 200px 100px;
    animation: floatParticles 20s linear infinite;
    pointer-events: none;
    z-index: -1;
    opacity: 0.5;
}

@keyframes floatParticles {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-100px);
    }
}

/* ===== Micro-animations ===== */
.btn-hover-lift {
    transition: var(--transition-bounce);
}

.btn-hover-lift:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-glow);
}

.card-hover-scale {
    transition: var(--transition);
}

.card-hover-scale:hover {
    transform: scale(1.03);
    border-color: var(--spotify-green);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(29, 185, 84, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(29, 185, 84, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(29, 185, 84, 0);
    }
}

.glow-on-load {
    animation: pulse-glow 2s infinite;
}

/* ===== Ad Containers ===== */
.ad-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    background: var(--spotify-dark);
    border-bottom: 1px solid var(--glass-border);
}

/* Hide ads on mobile - they take up too much space */
@media (max-width: 768px) {

    .ad-container.ad-header,
    .ad-container.ad-footer {
        display: none !important;
        height: 0 !important;
        min-height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow: hidden !important;
    }

    .ad-container.ad-header *,
    .ad-container.ad-footer * {
        display: none !important;
    }
}

.ad-footer {
    border-bottom: none;
    border-top: 1px solid var(--glass-border);
}

.ad-placeholder {
    width: 100%;
    height: 100%;
    background: var(--glass-bg);
    border: 2px dashed var(--glass-border);
    border-radius: var(--border-radius-sm);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-secondary);
    font-size: 14px;
    text-align: center;
}

/* AdSense Specific - only show when ad is actually loaded */
.adsbygoogle {
    min-width: 250px;
}

.adsbygoogle:empty {
    display: none;
}

.ad-header .adsbygoogle,
.ad-footer .adsbygoogle {
    width: 728px;
    max-width: 100%;
    margin: 0 auto;
}

.ad-sidebar .adsbygoogle {
    min-width: 160px;
    min-height: 600px;
}

.ad-sidebar {
    display: none;
    padding: 20px 10px;
    position: sticky;
    top: 20px;
    height: fit-content;
}

@media (min-width: 1400px) {
    .ad-sidebar {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

/* ===== Main Layout ===== */
.main-wrapper {
    display: flex;
    justify-content: center;
    gap: 20px;
    min-height: calc(100vh - 100px);
}

.main-content {
    flex: 1;
    max-width: 900px;
    padding: 30px 20px;
}

/* ===== Hero Section ===== */
.hero {
    margin-bottom: 25px;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.main-banner {
    position: relative;
    width: 100%;
    min-height: 120px;
    border-radius: var(--border-radius);
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    padding: 25px 30px;
    box-shadow: var(--shadow-lg);
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(18, 18, 18, 0.85) 0%, rgba(18, 18, 18, 0.3) 100%);
    z-index: 1;
}

.banner-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ===== Authentication UI ===== */
.auth-container {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 10;
}

.login-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    transition: var(--transition);
}

.login-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #fff;
}

.login-btn img {
    width: 18px;
    height: 18px;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    cursor: pointer;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--spotify-green);
}

.user-name {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 8px;
    min-width: 120px;
    margin-top: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.user-profile:hover .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown button {
    width: 100%;
    background: none;
    border: none;
    color: #f5576c;
    padding: 8px;
    text-align: left;
    font-size: 14px;
    cursor: pointer;
    border-radius: 6px;
}

.user-dropdown button:hover {
    background: rgba(245, 87, 108, 0.1);
}

.banner-branding {
    display: flex;
    align-items: center;
    gap: 15px;
}

.mini-logo {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(29, 185, 84, 0.3);
}

.main-banner h1 {
    font-size: 2rem;
    font-weight: 800;
}

.cta-text {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== Input Section ===== */
.input-section {
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.input-container {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow-lg);
}

.input-wrapper {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.input-wrapper input {
    flex: 1;
    min-width: 250px;
    padding: 16px 20px;
    font-size: 16px;
    font-family: inherit;
    background: rgba(40, 40, 40, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-primary);
    transition: var(--transition);
}

.input-wrapper input::placeholder {
    color: var(--text-secondary);
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--spotify-green);
    box-shadow: 0 0 0 4px rgba(29, 185, 84, 0.2);
}

.analyze-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 35px;
    font-size: 16px;
    font-weight: 700;
    font-family: inherit;
    background: var(--gradient-primary);
    border: none;
    border-radius: 12px;
    color: var(--spotify-black);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.analyze-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(29, 185, 84, 0.4);
}

.analyze-btn:active {
    transform: translateY(0);
}

.analyze-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-icon {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.analyze-btn:hover .btn-icon {
    transform: translateX(4px);
}



/* ===== Style Selector ===== */
/* ===== Style Selector ===== */
.style-selector-container {
    position: relative;
    flex: 0 0 160px;
    /* Slimmer for "Auto" */
    min-width: 140px;
}

.style-select {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: rgba(40, 40, 40, 0.8);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a7a7a7' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 10px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px 35px 16px 15px;
    font-size: 16px;
    font-family: inherit;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.style-select:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background-color: rgba(50, 50, 50, 0.9);
}

.style-select:focus {
    outline: none;
    border-color: var(--spotify-green);
    box-shadow: 0 0 0 4px rgba(29, 185, 84, 0.2);
}

.style-select option {
    background: var(--spotify-dark);
    color: var(--text-primary);
    padding: 10px;
}

/* ===== How It Works Section ===== */
.how-it-works {
    margin: 50px 0;
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.section-title {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 40px;
    color: var(--text-primary);
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.step-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 30px 25px;
    text-align: center;
    position: relative;
    transition: var(--transition);
}

.step-card:hover {
    transform: translateY(-5px);
    border-color: rgba(29, 185, 84, 0.3);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.step-number {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2.5rem;
    font-weight: 900;
    color: rgba(29, 185, 84, 0.15);
    line-height: 1;
}

.step-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
}

.step-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.step-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Hero Badge (hidden now) */
.hero-badge,
.hero-title,
.hero-subtitle,
.hero-input,
.social-proof,
.infographic-flow,
.flow-step,
.flow-connector,
.stats-bar {
    display: none;
}

.gradient-text-animated {
    background: linear-gradient(90deg, #1DB954, #667eea, #f093fb, #1DB954);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientMove 3s ease infinite;
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Hero Subtitle */
.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 35px;
    line-height: 1.5;
}

.hero-subtitle strong {
    color: var(--spotify-green);
}

/* Hero Input Container */
.hero-input {
    max-width: 700px;
    margin: 0 auto 30px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(29, 185, 84, 0.3);
    border-radius: 20px;
    padding: 25px 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 40px rgba(29, 185, 84, 0.1);
}

.hero-input .input-wrapper {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.input-icon {
    font-size: 1.5rem;
    opacity: 0.7;
}

.hero-input input {
    flex: 1;
    min-width: 200px;
    padding: 16px 20px;
    font-size: 16px;
    background: rgba(40, 40, 40, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-primary);
    transition: var(--transition);
}

.hero-input input:focus {
    outline: none;
    border-color: var(--spotify-green);
    box-shadow: 0 0 20px rgba(29, 185, 84, 0.3);
}

.hero-input input::placeholder {
    color: var(--text-secondary);
}

/* Exciting Generate Button */
.analyze-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 35px;
    font-size: 17px;
    font-weight: 700;
    background: linear-gradient(135deg, #1DB954 0%, #1ed760 50%, #14833b 100%);
    border: none;
    border-radius: 12px;
    color: #000;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(29, 185, 84, 0.4);
}

.analyze-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    100% {
        left: 100%;
    }
}

.analyze-btn:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 30px rgba(29, 185, 84, 0.5);
}

.btn-icon {
    font-size: 1.2rem;
}

/* Input Hint */
.input-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.hint-icon {
    font-size: 1rem;
}

/* Social Proof */
.social-proof {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.proof-avatars {
    display: flex;
    margin-right: 5px;
}

.avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    margin-left: -8px;
    border: 2px solid var(--spotify-black);
}

.avatar:first-child {
    margin-left: 0;
}

.social-proof p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.social-proof strong {
    color: var(--spotify-green);
}

/* ===== INFOGRAPHIC FLOW ===== */
.how-it-works {
    padding: 50px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.section-title {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.title-icon {
    font-size: 1.5rem;
}

.infographic-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}

.flow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
}

.step-visual {
    position: relative;
    margin-bottom: 15px;
}

.step-circle {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(29, 185, 84, 0.2) 0%, rgba(102, 126, 234, 0.2) 100%);
    border: 2px solid rgba(29, 185, 84, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.step-circle.pulse {
    animation: circlePulse 2s ease-in-out infinite;
}

@keyframes circlePulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(29, 185, 84, 0.4);
    }

    50% {
        box-shadow: 0 0 0 15px rgba(29, 185, 84, 0);
    }
}

.step-circle.glow {
    box-shadow: 0 0 30px rgba(29, 185, 84, 0.4);
}

.step-emoji {
    font-size: 2rem;
}

.step-number-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 28px;
    height: 28px;
    background: var(--spotify-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 800;
    color: #000;
}

.step-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.step-content p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Flow Connectors */
.flow-connector {
    display: flex;
    align-items: center;
    padding: 0 10px;
}

.connector-line {
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, rgba(29, 185, 84, 0.5), rgba(102, 126, 234, 0.5));
}

.connector-arrow {
    font-size: 1.5rem;
    color: var(--spotify-green);
    margin-left: 5px;
    animation: arrowPulse 1s ease-in-out infinite;
}

@keyframes arrowPulse {

    0%,
    100% {
        opacity: 1;
        transform: translateX(0);
    }

    50% {
        opacity: 0.5;
        transform: translateX(5px);
    }
}

/* ===== STATS BAR ===== */
.stats-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    padding: 30px;
    background: linear-gradient(135deg, rgba(29, 185, 84, 0.1) 0%, rgba(102, 126, 234, 0.1) 100%);
    border-radius: var(--border-radius);
    margin: 40px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 5px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
}

/* These elements are now used - do not hide */

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.input-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(29, 185, 84, 0.1), transparent 30%);
    animation: borderRotate 8s linear infinite;
    z-index: -1;
}

@keyframes borderRotate {
    100% {
        transform: rotate(360deg);
    }
}

.input-wrapper {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.input-wrapper input {
    flex: 1;
    min-width: 250px;
    padding: 18px 24px;
    font-size: 16px;
    font-family: inherit;
    background: rgba(40, 40, 40, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-primary);
    transition: var(--transition);
}

.input-wrapper input::placeholder {
    color: var(--text-secondary);
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--spotify-green);
    box-shadow: 0 0 0 4px rgba(29, 185, 84, 0.2), 0 0 30px rgba(29, 185, 84, 0.3);
    background: rgba(40, 40, 40, 1);
}

.analyze-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 40px;
    font-size: 17px;
    font-weight: 700;
    font-family: inherit;
    background: var(--gradient-primary);
    border: none;
    border-radius: 12px;
    color: var(--spotify-black);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(29, 185, 84, 0.4);
    }

    50% {
        box-shadow: 0 0 40px rgba(29, 185, 84, 0.6), 0 0 60px rgba(29, 185, 84, 0.3);
    }
}

.analyze-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: 0.5s;
}

.analyze-btn:hover::before {
    left: 100%;
}

.analyze-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-glow), 0 10px 40px rgba(29, 185, 84, 0.4);
}

.analyze-btn:active {
    transform: translateY(0);
}

.analyze-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-icon {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.analyze-btn:hover .btn-icon {
    transform: translateX(4px);
}

.input-hint {
    margin-top: 15px;
    font-size: 13px;
    color: var(--text-secondary);
}

/* ===== Style Selector ===== */
.style-selector-container {
    position: relative;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.style-select {
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 0.95rem;
    padding: 0 40px 0 15px;
    height: 100%;
    cursor: pointer;
    font-family: inherit;
    outline: none;
    width: 160px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
}

.style-select option {
    background: #121212;
    color: white;
    padding: 10px;
}

/* ===== Loading Section ===== */
.loading-section {
    text-align: center;
    padding: 60px 20px;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.loader {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
}

.loader-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 4px solid transparent;
    border-top-color: var(--spotify-green);
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
}

.loader-ring:nth-child(2) {
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
    border-top-color: var(--spotify-green-light);
    animation-duration: 1.2s;
    animation-direction: reverse;
}

.loader-ring:nth-child(3) {
    width: 60%;
    height: 60%;
    top: 20%;
    left: 20%;
    border-top-color: #1ed760;
    animation-duration: 0.9s;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-text {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.loading-subtext {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ===== Results Section ===== */
.results-section {
    animation: fadeInUp 0.6s ease-out;
}

.playlist-info {
    text-align: center;
    margin-bottom: 30px;
    padding: 25px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
}

.playlist-info h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.playlist-info p {
    color: var(--text-secondary);
}

/* Analysis Container */
.analysis-container {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 25px;
    margin-bottom: 30px;
}

.analysis-container h3 {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.tag {
    padding: 8px 16px;
    background: var(--spotify-gray);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    transition: var(--transition);
}

.tag:hover {
    background: var(--spotify-green);
    color: var(--spotify-black);
}

.tag.genre {
    background: linear-gradient(135deg, rgba(29, 185, 84, 0.3), rgba(29, 185, 84, 0.1));
    border: 1px solid rgba(29, 185, 84, 0.3);
}

.tag.artist {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3), rgba(102, 126, 234, 0.1));
    border: 1px solid rgba(102, 126, 234, 0.3);
}

.tag.mood {
    background: linear-gradient(135deg, rgba(240, 147, 251, 0.3), rgba(240, 147, 251, 0.1));
    border: 1px solid rgba(240, 147, 251, 0.3);
}

.mood-bar {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mood-label {
    font-weight: 600;
    color: var(--text-secondary);
}

.mood-indicator {
    flex: 1;
    padding: 12px 20px;
    background: var(--gradient-primary);
    border-radius: var(--border-radius-sm);
    text-align: center;
    font-weight: 600;
    color: var(--spotify-black);
}

/* Image Container */
.image-container {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 25px;
    margin-bottom: 30px;
    text-align: center;
}

.image-container h3 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    text-align: left;
}

.image-preview {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1;
    margin: 0 auto 25px;
    background: var(--spotify-gray);
    border-radius: var(--border-radius);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow-lg);
}

.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-placeholder {
    color: var(--text-secondary);
    font-size: 14px;
    padding: 20px;
    text-align: center;
}

.image-placeholder .generating {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.image-placeholder .mini-loader {
    width: 40px;
    height: 40px;
    border: 3px solid var(--spotify-gray);
    border-top-color: var(--spotify-green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    background: var(--spotify-green);
    border: none;
    border-radius: var(--border-radius-sm);
    color: var(--spotify-black);
    cursor: pointer;
    transition: var(--transition);
}

.download-btn:hover {
    background: var(--spotify-green-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.download-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Reset Button */
.reset-btn {
    display: block;
    width: 100%;
    padding: 16px;
    font-size: 16px;
    font-weight: 500;
    font-family: inherit;
    background: transparent;
    border: 2px solid var(--glass-border);
    border-radius: var(--border-radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.reset-btn:hover {
    border-color: var(--spotify-green);
    color: var(--spotify-green);
}

/* ===== Error Section ===== */
.error-section {
    text-align: center;
    padding: 60px 20px;
    background: var(--glass-bg);
    border: 1px solid rgba(245, 87, 108, 0.3);
    border-radius: var(--border-radius);
    animation: shake 0.5s ease;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    20%,
    60% {
        transform: translateX(-5px);
    }

    40%,
    80% {
        transform: translateX(5px);
    }
}

.error-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.error-section h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: #f5576c;
}

.error-section p {
    color: var(--text-secondary);
    margin-bottom: 25px;
}

.retry-btn {
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    background: transparent;
    border: 2px solid #f5576c;
    border-radius: var(--border-radius-sm);
    color: #f5576c;
    cursor: pointer;
    transition: var(--transition);
}

.retry-btn:hover {
    background: #f5576c;
    color: white;
}

/* ===== Modal ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
}

.modal-content {
    background: var(--spotify-dark);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 40px;
    max-width: 450px;
    width: 100%;
    animation: scaleIn 0.3s ease;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-content h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.modal-content>p {
    color: var(--text-secondary);
    margin-bottom: 25px;
}

.modal-input-group {
    margin-bottom: 15px;
}

.modal-input-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.modal-input-group input {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    font-family: inherit;
    background: var(--spotify-gray);
    border: 2px solid transparent;
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    transition: var(--transition);
}

.modal-input-group input:focus {
    outline: none;
    border-color: var(--spotify-green);
}

.modal-hint {
    margin-bottom: 25px;
}

.modal-hint a {
    font-size: 13px;
    color: var(--spotify-green);
    text-decoration: none;
}

.modal-hint a:hover {
    text-decoration: underline;
}

.modal-actions {
    display: flex;
    gap: 12px;
}

.modal-btn {
    flex: 1;
    padding: 14px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    border: none;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.modal-btn.primary {
    background: var(--spotify-green);
    color: var(--spotify-black);
}

.modal-btn.primary:hover {
    background: var(--spotify-green-light);
}

.modal-btn.secondary {
    background: var(--spotify-gray);
    color: var(--text-primary);
}

.modal-btn.secondary:hover {
    background: var(--glass-border);
}

/* ===== Section Titles ===== */
.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 40px;
    background: linear-gradient(135deg, #ffffff 0%, #a7a7a7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== How It Works Section ===== */
.how-it-works {
    margin: 60px 0;
    padding: 40px 0;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
}

.step-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 35px 25px;
    text-align: center;
    position: relative;
    transition: var(--transition);
    overflow: hidden;
}

.step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.step-card:hover::before {
    transform: scaleX(1);
}

.step-card:hover {
    transform: translateY(-8px);
    border-color: rgba(29, 185, 84, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(29, 185, 84, 0.1);
}

.step-number {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 3rem;
    font-weight: 900;
    color: rgba(29, 185, 84, 0.15);
    line-height: 1;
}

.step-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.step-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.step-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ===== Testimonials Section ===== */
.testimonials-section {
    margin: 60px 0;
    padding: 40px 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.testimonial-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 30px;
    position: relative;
    transition: var(--transition);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 15px;
    left: 20px;
    font-size: 4rem;
    color: rgba(29, 185, 84, 0.2);
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: rgba(29, 185, 84, 0.3);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* ===== Blog Section ===== */
.blog-section {
    margin: 60px 0;
    padding: 40px 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.blog-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius);
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: var(--transition);
    cursor: pointer;
}

.blog-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--spotify-green);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.blog-emoji {
    font-size: 3rem;
    margin-bottom: 10px;
}

.blog-content h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: var(--text-primary);
    line-height: 1.3;
}

.blog-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.read-more {
    color: var(--spotify-green);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.read-more:hover {
    letter-spacing: 0.5px;
    text-decoration: underline;
}


.testimonial-stars {
    font-size: 1.1rem;
}

/* ===== Blog Article Page ===== */
.article-container {
    max-width: 800px;
    margin: 120px auto 60px;
    padding: 0 20px;
}

/* ===== Gallery Section ===== */
.gallery-section {
    margin: 60px 0;
    padding: 20px 0;
}

/* ===== Rating System ===== */
.rating-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 15px 0;
    gap: 8px;
    animation: fadeIn 0.5s ease;
}

.rating-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.rating-buttons {
    display: flex;
    gap: 15px;
}

.rating-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.rating-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.rating-btn.active {
    background: var(--spotify-green);
    border-color: var(--spotify-green);
    color: black;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.gallery-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
}

.gallery-card:hover {
    transform: translateY(-5px);
    border-color: var(--spotify-green);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.gallery-image {
    width: 100%;
    aspect-ratio: 1/1;
    background-size: cover;
    background-position: center;
}

/* CSS Art Patterns for Showcase */
.minimal-art {
    background: linear-gradient(135deg, #FF9A9E 0%, #FECFEF 100%);
    position: relative;
}

.minimal-art::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40%;
    height: 40%;
    border: 2px solid white;
    border-radius: 50%;
}

.neon-art {
    background: radial-gradient(circle at 50% 50%, #2b0057 0%, #000000 100%);
    position: relative;
}

.neon-art::after {
    content: '';
    position: absolute;
    top: 20%;
    left: 20%;
    right: 20%;
    bottom: 20%;
    border: 2px solid #00ffcc;
    box-shadow: 0 0 15px #00ffcc, inset 0 0 15px #00ffcc;
    transform: rotate(45deg);
}

.retro-art {
    background: repeating-linear-gradient(45deg, #c7a058, #c7a058 10px, #8b5a2b 10px, #8b5a2b 20px);
    filter: sepia(0.5);
}

.abstract-art {
    background: conic-gradient(from 0deg at 50% 50%, #1d3557, #457b9d, #a8dadc, #f1faee, #e63946, #1d3557);
    filter: blur(10px);
}

.gallery-info {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.gallery-genre {
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
}

.gallery-style {
    color: var(--text-secondary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}


.article-emoji {
    font-size: 5rem;
    margin-bottom: 20px;
    display: inline-block;
}

.article-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    background: linear-gradient(135deg, #ffffff 0%, #a7a7a7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.article-meta {
    color: var(--text-secondary);
    font-size: 1rem;
}

.article-content {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius);
    padding: 50px;
    color: var(--text-primary);
    line-height: 1.8;
    font-size: 1.1rem;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.article-content h2 {
    font-size: 2rem;
    margin: 40px 0 20px;
    color: var(--spotify-green);
}

.article-content h3 {
    font-size: 1.5rem;
    margin: 30px 0 15px;
    color: white;
}

.article-content p {
    margin-bottom: 20px;
    color: #cccccc;
}

.article-content ul,
.article-content ol {
    margin-bottom: 20px;
    padding-left: 25px;
    color: #cccccc;
}

.article-content li {
    margin-bottom: 10px;
}

.article-content strong {
    color: white;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 30px;
    font-weight: 500;
    transition: var(--transition);
}

.back-link:hover {
    color: var(--spotify-green);
    transform: translateX(-5px);
}

/* ===== Product Hunt Badge ===== */
.ph-badge {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: #FF6154;
    color: white;
    padding: 10px 15px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255, 97, 84, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    z-index: 1000;
    font-size: 14px;
}

.ph-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 97, 84, 0.6);
}

.ph-logo {
    background: white;
    color: #FF6154;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
}

@media (max-width: 768px) {
    .ph-badge {
        bottom: 15px;
        left: 50%;
        transform: translateX(-50%);
        width: max-content;
    }

    .ph-badge:hover {
        transform: translate(-50%, -3px);
    }
}


/* ===== Social Sharing ===== */
.share-container {
    margin-top: 20px;
    text-align: center;
    animation: fadeInUp 0.5s ease-out 0.2s backwards;
}

.share-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.share-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: white;
}

.share-btn:hover {
    transform: translateY(-3px) scale(1.1);
}

.share-btn.twitter {
    background: #1DA1F2;
    box-shadow: 0 5px 15px rgba(29, 161, 242, 0.3);
}

.share-btn.whatsapp {
    background: #25D366;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

.share-btn.copy {
    background: #333;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.share-btn.copy:hover {
    background: #444;
    border-color: white;
}



.testimonial-card p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-primary);
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-author {
    font-size: 0.9rem;
    color: var(--spotify-green);
    font-weight: 600;
}

/* ===== FAQ Section ===== */
.faq-section {
    margin-top: 60px;
    padding: 40px 0;
    border-top: 1px solid var(--glass-border);
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
    font-weight: 800;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.faq-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 25px;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--spotify-green);
    transform: translateY(-5px);
}

.faq-item h3 {
    color: var(--spotify-green);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.faq-item p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ===== Footer ===== */
.footer {
    background: var(--spotify-dark);
    border-top: 1px solid var(--glass-border);
    padding: 30px 20px;
    text-align: center;
}

.footer-content p {
    color: var(--text-secondary);
    font-size: 14px;
}

.footer-note {
    margin-top: 8px;
    font-size: 12px !important;
    opacity: 0.7;
}

.footer-links {
    margin-top: 15px;
    font-size: 13px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    margin: 0 5px;
}

.footer-links a:hover {
    color: var(--spotify-green);
}

/* ===== Utility Classes ===== */
.hidden {
    display: none !important;
}

/* ===== COMPREHENSIVE RESPONSIVE DESIGN ===== */

/* Tablet Landscape and below */
@media (max-width: 1024px) {
    .main-content {
        max-width: 100%;
        padding: 25px 15px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .stats-bar {
        gap: 25px;
        padding: 25px 20px;
    }

    .stat-number {
        font-size: 1.6rem;
    }
}

/* Tablet Portrait and below */
@media (max-width: 768px) {

    /* Hero Section */
    .hero {
        padding: 15px 0 30px;
    }

    .hero-badge {
        font-size: 0.8rem;
        padding: 6px 15px;
        margin-bottom: 20px;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 15px;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    .hero-input {
        padding: 20px 15px;
        border-radius: 16px;
    }

    .hero-input .input-wrapper {
        flex-direction: column;
    }

    .input-icon {
        display: none;
    }

    .hero-input input {
        width: 100%;
        padding: 14px 16px;
    }

    .analyze-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 25px;
    }

    .social-proof {
        flex-direction: column;
        gap: 10px;
    }

    .proof-avatars {
        margin-right: 0;
    }

    /* Infographic Flow */
    .infographic-flow {
        flex-direction: column;
        gap: 15px;
    }

    .flow-connector {
        transform: rotate(90deg);
        padding: 5px 0;
    }

    .connector-line {
        width: 30px;
    }

    .step-circle {
        width: 70px;
        height: 70px;
    }

    .step-emoji {
        font-size: 1.7rem;
    }

    /* Stats Bar */
    .stats-bar {
        flex-direction: column;
        gap: 20px;
        padding: 25px 20px;
    }

    .stat-divider {
        width: 60px;
        height: 1px;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    /* Input Section */
    .input-container {
        padding: 20px 15px;
    }

    .input-container::before {
        display: none;
    }

    .input-wrapper {
        flex-direction: column;
        gap: 15px;
    }

    .input-wrapper input {
        min-width: 100%;
        padding: 16px 18px;
        font-size: 16px;
        /* Prevents iOS zoom */
        border-radius: 12px;
    }

    .analyze-btn {
        width: 100%;
        justify-content: center;
        padding: 16px 30px;
        font-size: 16px;
        border-radius: 12px;
    }

    .input-hint {
        font-size: 12px;
        word-break: break-all;
    }

    /* Section Titles */
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }

    /* How It Works */
    .how-it-works {
        margin: 40px 0;
        padding: 30px 0;
    }

    .steps-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .step-card {
        padding: 25px 20px;
    }

    .step-icon {
        font-size: 2.5rem;
    }

    .step-number {
        font-size: 2rem;
    }

    .step-card h3 {
        font-size: 1.1rem;
    }

    /* Testimonials */
    .testimonials-section {
        margin: 40px 0;
        padding: 30px 0;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .testimonial-card {
        padding: 25px 20px;
    }

    .testimonial-card::before {
        font-size: 3rem;
        top: 10px;
        left: 15px;
    }

    /* FAQ */
    .faq-section {
        margin-top: 40px;
        padding: 30px 0;
    }

    .faq-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .faq-item {
        padding: 20px 18px;
    }

    .faq-section h2 {
        font-size: 1.5rem;
        margin-bottom: 25px;
    }

    .faq-item h3 {
        font-size: 1rem;
    }

    /* Results Section */
    .playlist-info h2 {
        font-size: 1.3rem;
    }

    .analysis-container,
    .image-container {
        padding: 20px;
    }

    .image-preview {
        max-width: 100%;
    }

    .download-btn {
        width: 100%;
        justify-content: center;
    }

    /* Footer */
    .footer-content {
        padding: 25px 15px;
    }

    .footer-content p {
        font-size: 13px;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    /* Modal */
    .modal-content {
        margin: 20px;
        padding: 25px 20px;
        max-height: 90vh;
        overflow-y: auto;
    }

    .modal-actions {
        flex-direction: column;
    }

    /* Ads */
    .ad-container {
        padding: 8px;
    }

    .ad-header .adsbygoogle,
    .ad-footer .adsbygoogle {
        width: 100%;
        max-width: 320px;
    }
}

/* Mobile Large */
@media (max-width: 480px) {
    .main-content {
        padding: 20px 15px;
    }

    /* Hero */
    .main-banner {
        padding: 20px 15px;
        border-radius: 12px;
    }

    .mini-logo {
        width: 40px;
        height: 40px;
    }

    .main-banner h1 {
        font-size: 1.4rem;
    }

    .cta-text {
        font-size: 0.85rem;
    }

    /* Input */
    .input-container {
        padding: 20px 15px;
        border-radius: 12px;
    }

    .input-wrapper input {
        padding: 14px 16px;
    }

    .analyze-btn {
        padding: 14px 25px;
    }

    /* Cards */
    .step-card,
    .testimonial-card,
    .faq-item {
        border-radius: 12px;
    }

    .step-icon {
        font-size: 2rem;
        margin-bottom: 15px;
    }

    .step-card h3 {
        font-size: 1rem;
    }

    .step-card p,
    .testimonial-card p,
    .faq-item p {
        font-size: 0.9rem;
    }

    /* Results */
    .analysis-container h3,
    .image-container h3 {
        font-size: 1.1rem;
    }

    .tags-container {
        gap: 8px;
    }

    .tag {
        padding: 6px 12px;
        font-size: 12px;
    }

    .image-preview {
        max-width: 280px;
    }

    /* Loading */
    .loader {
        width: 70px;
        height: 70px;
    }

    .loading-text {
        font-size: 1rem;
    }

    /* Error */
    .error-icon {
        font-size: 3rem;
    }
}

/* Mobile Small */
@media (max-width: 360px) {
    .main-banner h1 {
        font-size: 1.2rem;
    }

    .cta-text {
        font-size: 0.8rem;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .step-card,
    .testimonial-card {
        padding: 18px 15px;
    }

    .input-wrapper input {
        font-size: 14px;
        padding: 12px 14px;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {

    .step-card:hover,
    .testimonial-card:hover,
    .faq-item:hover {
        transform: none;
    }

    .analyze-btn {
        animation: none;
        /* Disable pulse on touch devices */
    }

    .analyze-btn:active {
        transform: scale(0.98);
        background: var(--spotify-green);
    }
}

/* Landscape Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .main-banner {
        min-height: auto;
        padding: 15px 20px;
    }

    .banner-branding {
        flex-direction: row;
    }

    .how-it-works,
    .testimonials-section {
        margin: 30px 0;
        padding: 20px 0;
    }
}

/* High DPI / Retina Displays */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
    .mini-logo {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Reduce Motion for Accessibility */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    body::before,
    body::after {
        animation: none;
    }
}

/* ===== Editor UI Panel ===== */
.editor-panel {
    background: rgba(40, 40, 40, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 25px;
    margin-top: 30px;
    width: 100%;
    max-width: 600px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 15px;
}

.editor-header h4 {
    font-size: 18px;
    margin: 0;
    background: linear-gradient(135deg, #fff 0%, #a7a7a7 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.close-editor-btn {
    background: none;
    border: none;
    color: #a7a7a7;
    font-size: 24px;
    cursor: pointer;
    transition: var(--transition);
}

.close-editor-btn:hover {
    color: #fff;
    transform: scale(1.1);
}

.editor-group {
    margin-bottom: 20px;
}

.editor-group label {
    display: block;
    font-size: 14px;
    color: #a7a7a7;
    margin-bottom: 10px;
}

.editor-group input[type="text"] {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px;
    color: #fff;
    font-size: 14px;
    margin-bottom: 12px;
}

.position-toggles {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
}

.pos-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 8px;
    color: #a7a7a7;
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
}

.pos-btn.active {
    background: var(--spotify-green);
    color: #000;
    font-weight: 600;
    border-color: var(--spotify-green);
}

.filter-controls {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filter-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.filter-item span {
    font-size: 12px;
    color: #777;
}

.filter-item input[type="range"] {
    appearance: none;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    outline: none;
}

.filter-item input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.apply-btn {
    width: 100%;
    background: var(--spotify-green);
    color: #000;
    border: none;
    border-radius: 12px;
    padding: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.apply-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(29, 185, 84, 0.3);
}

/* Image Preview Overlay */
.image-preview {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}

#overlayTextPreview {
    position: absolute;
    width: 100%;
    left: 0;
    padding: 0 20px;
    color: #fff;
    text-align: center;
    font-weight: 800;
    font-size: 42px;
    text-transform: uppercase;
    text-shadow: 2px 2px 20px rgba(0, 0, 0, 0.8);
    pointer-events: none;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

#overlayTextPreview.pos-top {
    top: 10%;
}

#overlayTextPreview.pos-center {
    top: 50%;
    transform: translateY(-50%);
}

#overlayTextPreview.pos-bottom {
    bottom: 10%;
}

.edit-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 20px;
}

.edit-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #fff;
}

/* Mobile Adjustments for Editor & Site */
@media (max-width: 768px) {
    .editor-panel {
        padding: 15px;
        margin-top: 20px;
    }

    #overlayTextPreview {
        font-size: 28px;
    }

    /* Main Layout - Fix Overflow */
    .main-wrapper {
        padding: 0;
        min-height: auto;
        flex-direction: column;
    }

    .main-content {
        padding: 15px;
        width: 100%;
        max-width: 100vw;
        /* Prevent overflow */
        overflow-x: hidden;
        margin: 0;
    }

    /* Fix Header/Banner */
    .main-banner {
        flex-direction: column;
        text-align: center;
        padding: 20px;
        gap: 15px;
        min-height: auto;
    }

    .banner-branding {
        flex-direction: column;
        gap: 10px;
    }

    /* Fix Input Section - Stack buttons */
    .input-wrapper {
        flex-direction: column;
        gap: 10px;
    }

    .input-wrapper input {
        width: 100%;
        min-width: 0;
        padding: 14px;
        font-size: 16px;
        /* Prevent zoom on iOS */
    }

    .style-selector-container {
        width: 100%;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .style-select {
        width: 100%;
        padding: 14px;
    }

    .analyze-btn {
        width: 100%;
        justify-content: center;
    }

    /* Hide Ads layout shifting */
    .ad-container,
    .ad-sidebar {
        display: none !important;
        height: 0 !important;
        min-height: 0 !important;
        overflow: hidden !important;
    }

    /* Gallery - 2 Columns */
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    /* Fix Product Hunt Badge Position */
    .ph-badge {
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        width: max-content;
        font-size: 12px;
        padding: 8px 12px;
    }
}

/* ===== Navigation Bar ===== */
.navbar {
    padding: 20px 0;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
}

.nav-links {
    display: flex;
    gap: 24px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--spotify-green);
}

/* Mobile Nav */
@media (max-width: 768px) {
    .navbar {
        padding: 15px 0;
    }

    .nav-links {
        gap: 15px;
    }

    .nav-links a {
        font-size: 0.85rem;
    }
}