/* SmartLink Landing Page Styles - Matching Pulse Brand */

:root {
    /* Color palette - Light theme with orange/red accents */
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-gradient-start: #fff7ed;
    --bg-gradient-end: #fef2f2;
    --card-bg: #ffffff;
    --card-border: #e5e7eb;
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --text-muted: #9ca3af;
    --accent-orange: #f97316;
    --accent-red: #ef4444;
    --accent-gradient: linear-gradient(135deg, #f97316 0%, #ef4444 100%);
    
    /* DSP Colors */
    --spotify: #1DB954;
    --apple-music: #FA233B;
    --youtube-music: #FF0000;
    --amazon-music: #00A8E1;
    --deezer: #A238FF;
    --tidal: #000000;
    --soundcloud: #FF5500;
    --pandora: #224099;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    
    /* Typography */
    --font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.25rem;
    --font-size-xl: 1.5rem;
    --font-size-2xl: 2rem;
    
    /* Border radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
}

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

html, body {
    height: 100%;
}

body {
    font-family: var(--font-family);
    background: linear-gradient(180deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 50%, var(--bg-primary) 100%);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md);
}

/* Container */
.smartlink-container {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

/* Card */
.smartlink-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-xl);
    padding: var(--spacing-lg);
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.05),
        0 10px 15px -3px rgba(0, 0, 0, 0.08),
        0 20px 25px -5px rgba(0, 0, 0, 0.05);
}

/* Artwork */
.artwork-container {
    display: flex;
    justify-content: center;
    margin-bottom: var(--spacing-md);
}

.artwork-placeholder {
    width: 220px;
    height: 220px;
    background: var(--accent-gradient);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 10px 25px rgba(249, 115, 22, 0.25),
        0 20px 40px rgba(239, 68, 68, 0.15);
}

.artwork-image {
    width: 220px;
    height: 220px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: 
        0 10px 25px rgba(0, 0, 0, 0.15),
        0 20px 40px rgba(0, 0, 0, 0.1);
}

.artwork-icon {
    font-size: 4rem;
}

/* Release Info */
.release-info {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.release-title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
    letter-spacing: -0.02em;
    line-height: 1.25;
    overflow-wrap: anywhere;
    word-break: break-word;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    text-overflow: ellipsis;
}

.artist-name {
    font-size: var(--font-size-base);
    color: var(--text-secondary);
    font-weight: 500;
}

/* Destinations */
.destinations {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.destination-btn {
    display: flex;
    align-items: center;
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--bg-secondary);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
}

.destination-btn:hover {
    background: var(--bg-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.destination-btn:active {
    transform: translateY(0);
}

.destination-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: var(--spacing-sm);
    width: 32px;
    flex-shrink: 0;
}

.destination-label {
    flex: 1;
}

.destination-arrow {
    color: var(--text-muted);
    transition: all 0.2s ease;
}

.destination-btn:hover .destination-arrow {
    transform: translateX(4px);
    color: var(--accent-orange);
}

/* DSP-specific colors on hover */
.destination-spotify:hover {
    border-color: var(--spotify);
    background: linear-gradient(90deg, rgba(29, 185, 84, 0.08) 0%, transparent 100%);
}

.destination-spotify:hover .destination-arrow {
    color: var(--spotify);
}

.destination-apple_music:hover {
    border-color: var(--apple-music);
    background: linear-gradient(90deg, rgba(250, 35, 59, 0.08) 0%, transparent 100%);
}

.destination-apple_music:hover .destination-arrow {
    color: var(--apple-music);
}

.destination-youtube_music:hover {
    border-color: var(--youtube-music);
    background: linear-gradient(90deg, rgba(255, 0, 0, 0.08) 0%, transparent 100%);
}

.destination-youtube_music:hover .destination-arrow {
    color: var(--youtube-music);
}

.destination-amazon_music:hover {
    border-color: var(--amazon-music);
    background: linear-gradient(90deg, rgba(0, 168, 225, 0.08) 0%, transparent 100%);
}

.destination-amazon_music:hover .destination-arrow {
    color: var(--amazon-music);
}

.destination-deezer:hover {
    border-color: var(--deezer);
    background: linear-gradient(90deg, rgba(162, 56, 255, 0.08) 0%, transparent 100%);
}

.destination-deezer:hover .destination-arrow {
    color: var(--deezer);
}

.destination-tidal:hover {
    border-color: var(--tidal);
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.05) 0%, transparent 100%);
}

.destination-tidal:hover .destination-arrow {
    color: var(--tidal);
}

.destination-soundcloud:hover {
    border-color: var(--soundcloud);
    background: linear-gradient(90deg, rgba(255, 85, 0, 0.08) 0%, transparent 100%);
}

.destination-soundcloud:hover .destination-arrow {
    color: var(--soundcloud);
}

/* Footer */
.smartlink-footer {
    margin-top: var(--spacing-lg);
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--card-border);
}

.pulse-logo {
    height: 24px;
    width: auto;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

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

.powered-by {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
}

.powered-by strong {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: #0b0b0d;
        --bg-secondary: #17171c;
        --bg-gradient-start: #1a130f;
        --bg-gradient-end: #151217;
        --card-bg: #141419;
        --card-border: #2a2a33;
        --text-primary: #f3f4f6;
        --text-secondary: #c6cad1;
        --text-muted: #9ca3af;
    }

    .smartlink-card {
        box-shadow:
            0 6px 14px -2px rgba(0, 0, 0, 0.45),
            0 20px 40px -8px rgba(0, 0, 0, 0.55);
    }

    .destination-btn:hover {
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
    }

    .pulse-logo {
        filter: brightness(0) invert(1);
        opacity: 0.75;
    }
}

/* Responsive */
@media (max-width: 480px) {
    body {
        padding: var(--spacing-sm);
        align-items: flex-start;
        padding-top: var(--spacing-lg);
    }
    
    .smartlink-card {
        padding: var(--spacing-md);
        border-radius: var(--radius-lg);
    }
    
    .artwork-placeholder,
    .artwork-image {
        width: 180px;
        height: 180px;
    }
    
    .artwork-icon {
        font-size: 3rem;
    }
    
    .release-title {
        font-size: var(--font-size-lg);
    }
}
