/* =============================================
   SPOTIFY WRAPPED STYLE - RETAIL REPORT
   ============================================= */

/* CSS Custom Properties */
:root {
    /* Spotify-inspired vibrant colors */
    --spotify-green: #1DB954;
    --spotify-green-dark: #1ed760;
    --spotify-black: #121212;
    --spotify-white: #FFFFFF;
    
    /* Vibrant gradient colors */
    --coral: #FF6B6B;
    --coral-dark: #ee5a5a;
    --purple: #8B5CF6;
    --purple-dark: #7C3AED;
    --pink: #EC4899;
    --pink-dark: #DB2777;
    --blue: #3B82F6;
    --blue-dark: #2563EB;
    --teal: #14B8A6;
    --teal-dark: #0D9488;
    --yellow: #FBBF24;
    --yellow-dark: #F59E0B;
    --orange: #F97316;
    
    /* Typography */
    --font-primary: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.4s ease;
    --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: var(--spotify-black);
    color: var(--spotify-white);
    overflow: hidden;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* =============================================
   PRESENTATION CONTAINER
   ============================================= */
.presentation-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

/* =============================================
   PROGRESS BAR
   ============================================= */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 1000;
}

.progress-fill {
    height: 100%;
    background: var(--spotify-white);
    width: 12.5%;
    transition: width var(--transition-medium);
}

/* =============================================
   SLIDES
   ============================================= */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.95);
    transition: all var(--transition-slow);
}

.slide.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.slide-content {
    text-align: center;
    padding: var(--spacing-lg);
    max-width: 900px;
    width: 100%;
}

/* Gradient Backgrounds */
.slide[data-bg="gradient-green"] {
    background: linear-gradient(135deg, #1DB954 0%, #134e2f 50%, #0d3d23 100%);
}

.slide[data-bg="gradient-purple"] {
    background: linear-gradient(135deg, #8B5CF6 0%, #6D28D9 50%, #4C1D95 100%);
}

.slide[data-bg="gradient-coral"] {
    background: linear-gradient(135deg, #FF6B6B 0%, #ee5a5a 50%, #dc2626 100%);
}

.slide[data-bg="gradient-blue"] {
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 50%, #1D4ED8 100%);
}

.slide[data-bg="gradient-pink"] {
    background: linear-gradient(135deg, #EC4899 0%, #DB2777 50%, #BE185D 100%);
}

.slide[data-bg="gradient-yellow"] {
    background: linear-gradient(135deg, #FBBF24 0%, #F59E0B 50%, #D97706 100%);
}

.slide[data-bg="gradient-teal"] {
    background: linear-gradient(135deg, #14B8A6 0%, #0D9488 50%, #0F766E 100%);
}

.slide[data-bg="gradient-finale"] {
    background: linear-gradient(135deg, #1DB954 0%, #8B5CF6 33%, #EC4899 66%, #FF6B6B 100%);
    background-size: 300% 300%;
    animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Dark text for light backgrounds */
.dark-text,
.dark-text .intro-text,
.dark-text .achievement-label {
    color: var(--spotify-black);
}

/* =============================================
   TYPOGRAPHY
   ============================================= */
.mega-title {
    font-size: clamp(3rem, 12vw, 8rem);
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: -0.03em;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.title-word {
    display: block;
}

.title-highlight {
    display: inline-block;
    background: var(--spotify-white);
    color: var(--spotify-black);
    padding: 0.1em 0.3em;
    border-radius: 0.1em;
    transform: rotate(-2deg);
}

.subtitle {
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 600;
    margin-top: var(--spacing-md);
    opacity: 0.9;
}

.year-badge {
    display: inline-block;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 800;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5em 1em;
    border-radius: 50px;
    margin-top: var(--spacing-lg);
    backdrop-filter: blur(10px);
}

.intro-text {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 600;
    opacity: 0.9;
    margin-bottom: var(--spacing-md);
}

.impact-stat {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.stat-number {
    font-size: clamp(4rem, 15vw, 12rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.03em;
}

.stat-label {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
}

.mega-number {
    font-size: clamp(4rem, 18vw, 14rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.02em;
}

.stat-description {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-top: var(--spacing-sm);
}

.description {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    margin-top: var(--spacing-md);
    opacity: 0.85;
}

.comparison {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 700;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5em 1em;
    border-radius: 50px;
    margin-top: var(--spacing-md);
}

.arrow-up {
    color: #4ade80;
    font-size: 1.2em;
}

/* =============================================
   PRODUCT LIST
   ============================================= */
.product-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.product-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    background: rgba(255, 255, 255, 0.15);
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    transition: transform var(--transition-fast);
}

.product-item:hover {
    transform: scale(1.02);
}

.rank {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    color: var(--yellow);
    min-width: 80px;
}

.product-name {
    font-size: clamp(1.3rem, 3vw, 2rem);
    font-weight: 700;
}

/* =============================================
   TIME DISPLAY
   ============================================= */
.time-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    margin: var(--spacing-lg) 0;
}

.time-value {
    font-size: clamp(3rem, 12vw, 8rem);
    font-weight: 900;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.2em 0.4em;
    border-radius: 15px;
}

.time-dash {
    font-size: clamp(2rem, 8vw, 5rem);
    font-weight: 300;
}

.fun-fact {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 600;
    opacity: 0.9;
}

.day-indicator {
    margin-top: var(--spacing-md);
}

.day {
    display: inline-block;
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 800;
    background: var(--spotify-white);
    color: var(--pink-dark);
    padding: 0.5em 1.5em;
    border-radius: 50px;
}

/* =============================================
   ACHIEVEMENT GRID
   ============================================= */
.achievement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.achievement {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    background: rgba(0, 0, 0, 0.15);
    padding: var(--spacing-lg);
    border-radius: 25px;
}

.achievement-number {
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 900;
    line-height: 1;
}

.achievement-label {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    font-weight: 600;
}

/* =============================================
   GROWTH VISUAL
   ============================================= */
.growth-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
    margin: var(--spacing-xl) 0;
}

.growth-bar {
    width: 100%;
    max-width: 500px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    overflow: hidden;
}

.growth-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--spotify-white), #4ade80);
    border-radius: 20px;
    transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide.active .growth-fill {
    width: 85%;
}

.growth-percentage {
    font-size: clamp(4rem, 15vw, 10rem);
    font-weight: 900;
}

.growth-message {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 600;
}

/* =============================================
   FINALE SLIDE
   ============================================= */
.thank-you {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 900;
    line-height: 1.2;
}

.closing-message {
    font-size: clamp(1.3rem, 3vw, 2rem);
    font-weight: 600;
    margin-top: var(--spacing-md);
    opacity: 0.9;
}

.signature {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-top: var(--spacing-xl);
}

.heart {
    animation: heartbeat 1.5s ease infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* =============================================
   SPARKLES
   ============================================= */
.intro-animation,
.finale-sparkles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.sparkle {
    position: absolute;
    font-size: 2rem;
    animation: sparkleFloat 3s ease-in-out infinite;
    opacity: 0.6;
}

.sparkle-1 { top: 15%; left: 10%; animation-delay: 0s; }
.sparkle-2 { top: 25%; right: 15%; animation-delay: 0.5s; }
.sparkle-3 { bottom: 20%; left: 20%; animation-delay: 1s; }
.sparkle-4 { top: 40%; right: 10%; animation-delay: 1.5s; }
.sparkle-5 { bottom: 30%; right: 25%; animation-delay: 2s; }

@keyframes sparkleFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.6; }
    50% { transform: translateY(-20px) rotate(180deg); opacity: 1; }
}

/* =============================================
   NAVIGATION
   ============================================= */
.slide-nav {
    position: fixed;
    bottom: var(--spacing-lg);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: var(--spacing-md);
    z-index: 100;
}

.nav-btn {
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: var(--spotify-white);
    font-size: 1.5rem;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

.nav-btn:active {
    transform: scale(0.95);
}

.nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

.nav-arrow {
    font-weight: bold;
}

/* =============================================
   SLIDE INDICATORS
   ============================================= */
.slide-indicators {
    position: fixed;
    bottom: calc(var(--spacing-lg) + 80px);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 100;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.indicator.active {
    background: var(--spotify-white);
    transform: scale(1.3);
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.6);
}

/* =============================================
   ANIMATIONS
   ============================================= */
.animate-pop {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-fade {
    opacity: 0;
    transition: opacity 0.6s ease;
}

.animate-scale {
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-slide {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Animation delays */
.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }
.delay-4 { transition-delay: 0.8s; }

/* Active state animations */
.slide.active .animate-pop,
.slide.active .animate-fade,
.slide.active .animate-scale,
.slide.active .animate-slide {
    opacity: 1;
    transform: none;
}

/* =============================================
   RESPONSIVE DESIGN
   ============================================= */
@media (max-width: 768px) {
    .slide-content {
        padding: var(--spacing-md);
    }
    
    .nav-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .achievement-grid {
        grid-template-columns: 1fr;
    }
    
    .time-display {
        flex-direction: column;
        gap: var(--spacing-xs);
    }
    
    .time-dash {
        display: none;
    }
    
    .product-item {
        padding: var(--spacing-sm) var(--spacing-md);
    }
    
    .rank {
        min-width: 50px;
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .slide-nav {
        bottom: var(--spacing-md);
    }
    
    .slide-indicators {
        bottom: calc(var(--spacing-md) + 70px);
    }
    
    .sparkle {
        font-size: 1.2rem;
    }
}

/* =============================================
   PRINT STYLES
   ============================================= */
@media print {
    .slide-nav,
    .slide-indicators,
    .progress-bar {
        display: none;
    }
    
    .slide {
        position: relative;
        page-break-after: always;
        opacity: 1;
        visibility: visible;
        transform: none;
    }
}
