/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* App Brand Colors - Matching ManifestIT mobile app */
    --primary-gold: #FFC864;
    --primary-purple: #A855F7;
    --purple-dark: #1a0033;
    --dark-bg: #000000;
    --darker-bg: #0f0f0f;

    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-muted: #999999;

    /* UI Constants */
    --border-radius: 16px;
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 30px 80px rgba(0, 0, 0, 0.6);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Gradient Background - Matching app's gradient */
.gradient-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, var(--purple-dark) 0%, var(--dark-bg) 40%, var(--dark-bg) 100%);
    z-index: -2;
}

/* Starfield Background - Matching app's animated stars */
.starfield {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    overflow: hidden;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    animation: twinkle 3s infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* Loading State */
.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    gap: 20px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--primary-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Content Container */
.content {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.container {
    max-width: 600px;
    width: 100%;
    text-align: center;
}

/* Logo */
.logo-container {
    margin-bottom: 30px;
    animation: slideDown 0.6s ease-out;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

.logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    filter: drop-shadow(0 4px 20px rgba(255, 200, 100, 0.3));
}

/* Album Cover */
.album-cover-container {
    margin: 0 auto 40px;
    width: 280px;
    height: 280px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    animation: scaleIn 0.6s ease-out 0.2s both;
    position: relative;
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

.album-cover-container::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--primary-gold), var(--primary-purple));
    border-radius: 24px;
    z-index: -1;
    opacity: 0.4;
}

.album-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Main Content Section */
.main-content {
    margin-bottom: 30px;
    animation: fadeIn 0.6s ease-out 0.2s both;
}

.main-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--primary-gold), var(--primary-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.main-subtitle {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.5;
    max-width: 400px;
    margin: 0 auto 30px;
}

/* Album Slideshow */
.album-slideshow {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    padding: 0 20px;
}

.slideshow-container {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slideshow-item {
    position: absolute;
    width: 320px;
    height: 180px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateX(100%);
    transition: none;
}

.slideshow-item.active {
    animation: slideIn 0.6s ease-out forwards;
}

.slideshow-item.exit {
    animation: slideOut 0.6s ease-in forwards;
}

.slideshow-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Slideshow border glow */
.slideshow-item::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--primary-gold), var(--primary-purple));
    border-radius: 18px;
    z-index: -1;
    opacity: 0.6;
}

@keyframes slideIn {
    0% {
        opacity: 0;
        transform: translateX(100%) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes slideOut {
    0% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateX(-100%) scale(0.8);
    }
}

/* Accessibility - Reduce motion */
@media (prefers-reduced-motion: reduce) {
    .slideshow-item,
    .slideshow-item.active,
    .slideshow-item.exit {
        animation: none;
        transition: opacity 0.3s ease;
    }

    @keyframes slideIn {
        0% { opacity: 0; }
        100% { opacity: 1; }
    }

    @keyframes slideOut {
        0% { opacity: 1; }
        100% { opacity: 0; }
    }
}

/* Touch optimization */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets on mobile */
    .waitlist-input,
    .waitlist-button {
        min-height: 48px;
    }

    /* Prevent tap highlight */
    * {
        -webkit-tap-highlight-color: transparent;
    }

    /* Smooth scrolling */
    html {
        -webkit-overflow-scrolling: touch;
    }
}

/* Album Info (for album-specific pages) */
.album-info {
    margin-bottom: 50px;
    animation: fadeIn 0.6s ease-out 0.4s both;
}

.category {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary-gold);
    margin-bottom: 12px;
}

.title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #ffffff, #e0e0e0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.description {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Stats */
.stats {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 14px;
}

.stat-icon {
    width: 16px;
    height: 16px;
    color: var(--primary-gold);
}

/* CTA Section */
.cta-section {
    margin-top: 20px;
    margin-bottom: 30px;
    animation: fadeIn 0.6s ease-out 0.6s both;
}

.cta-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
}

.cta-subtitle {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* Coming Soon Button */
.coming-soon-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 32px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    max-width: 280px;
    margin: 0 auto;
    cursor: default;
}

.coming-soon-button .button-icon {
    width: 24px;
    height: 24px;
    color: var(--text-secondary);
}

.coming-soon-text {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-secondary);
}

/* App Buttons */
.app-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 280px;
    margin: 0 auto;
}

.app-button {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.app-button:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-gold);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 200, 100, 0.3);
}

.app-button:active {
    transform: translateY(0);
}

.button-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.button-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.button-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

.button-store {
    font-size: 18px;
    font-weight: 600;
}

/* Footer */
.footer {
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeIn 0.6s ease-out 0.8s both;
}

.footer p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
}

.footer-links a {
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-gold);
}

/* Error State */
.error {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.error-content {
    text-align: center;
    max-width: 400px;
}

.error-content h1 {
    font-size: 64px;
    margin-bottom: 20px;
}

.error-content p {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.error-button {
    display: inline-block;
    padding: 16px 32px;
    background: var(--primary-gold);
    color: #000;
    text-decoration: none;
    border-radius: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.error-button:hover {
    background: #FFD280;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 200, 100, 0.5);
}

/* Waitlist Section */
.waitlist-section {
    margin-top: 30px;
    margin-bottom: 30px;
    padding: 35px 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.waitlist-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.waitlist-subtitle {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.waitlist-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.waitlist-input {
    width: 100%;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 16px;
    transition: all 0.3s ease;
    outline: none;
    box-sizing: border-box;
}

.waitlist-input::placeholder {
    color: var(--text-muted);
}

.waitlist-input:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 3px rgba(255, 200, 100, 0.2);
}

.waitlist-button {
    width: 100%;
    padding: 16px 32px;
    background: var(--primary-gold);
    color: #000;
    border: none;
    border-radius: 16px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 4px;
    box-sizing: border-box;
}

.waitlist-button:hover {
    background: #FFD280;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 200, 100, 0.5);
}

.waitlist-button:active {
    transform: translateY(0);
}

.waitlist-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.no-spam-text {
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 8px;
    margin-bottom: 0;
}

.waitlist-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 30px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 12px;
    animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.success-icon {
    width: 48px;
    height: 48px;
    color: #22c55e;
}

.waitlist-success p {
    font-size: 18px;
    color: var(--text-primary);
    margin: 0;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-content {
        margin-bottom: 24px;
    }

    .main-title {
        font-size: 34px;
    }

    .main-subtitle {
        font-size: 16px;
        margin-bottom: 24px;
    }

    .slideshow-container {
        height: 200px;
    }

    .slideshow-item {
        width: 280px;
        height: 158px;
    }

    .title {
        font-size: 28px;
    }

    .description {
        font-size: 16px;
    }

    .cta-title {
        font-size: 22px;
    }

    .album-cover-container {
        width: 240px;
        height: 240px;
    }

    .waitlist-section {
        padding: 28px 24px;
        margin-top: 24px;
        margin-bottom: 24px;
    }

    .waitlist-title {
        font-size: 23px;
    }

    .waitlist-subtitle {
        font-size: 14px;
    }

    .coming-soon-button {
        max-width: 100%;
    }
}

/* Mobile Optimization (≤ 480px) */
@media (max-width: 480px) {
    /* Layout */
    .container {
        padding: 0 20px;
        max-width: 100%;
    }

    /* Hero Section */
    .main-content {
        margin-bottom: 24px;
    }

    .main-title {
        font-size: 32px;
        margin-bottom: 12px;
        line-height: 1.1;
    }

    .main-subtitle {
        font-size: 16px;
        max-width: 100%;
        padding: 0;
        margin-bottom: 24px;
        line-height: 1.4;
    }

    /* Album Slideshow - 16:9 optimized for mobile */
    .album-slideshow {
        padding: 0;
        margin-bottom: 24px;
    }

    .slideshow-container {
        height: 150px;
    }

    .slideshow-item {
        width: 260px;
        height: 146px;
        border-radius: 12px;
    }

    .slideshow-item::before {
        border-radius: 14px;
    }

    /* Album-specific page */
    .title {
        font-size: 26px;
        line-height: 1.2;
    }

    .album-cover-container {
        width: 220px;
        height: 220px;
    }

    /* Waitlist Section */
    .waitlist-section {
        padding: 28px 20px;
        margin: 24px 0;
        border-radius: 20px;
    }

    .waitlist-title {
        font-size: 24px;
        margin-bottom: 8px;
    }

    .waitlist-subtitle {
        font-size: 15px;
        margin-bottom: 20px;
        line-height: 1.4;
    }

    .waitlist-form {
        max-width: 100%;
        gap: 12px;
    }

    .waitlist-input {
        font-size: 16px; /* Prevents iOS zoom */
        padding: 16px 18px;
        border-radius: 14px;
    }

    .waitlist-button {
        font-size: 17px;
        font-weight: 600;
        padding: 16px 28px;
        border-radius: 14px;
        margin-top: 4px;
    }

    .no-spam-text {
        font-size: 13px;
        margin-top: 8px;
        line-height: 1.3;
    }

    /* CTA Section */
    .cta-section {
        margin: 24px 0 32px;
    }

    .coming-soon-button {
        padding: 16px 28px;
        border-radius: 14px;
        max-width: 100%;
    }

    .coming-soon-button .button-icon {
        width: 22px;
        height: 22px;
    }

    .coming-soon-text {
        font-size: 17px;
    }

    /* Footer */
    footer {
        padding: 24px 20px;
        font-size: 13px;
    }

    /* Success message */
    .waitlist-success {
        padding: 20px;
        border-radius: 14px;
    }

    .success-icon {
        width: 48px;
        height: 48px;
    }
}

