/* Enhanced Preview Experience Styles */

/* Preview Experience Container */
.preview-experience {
    min-height: 100vh;
    background: var(--surface);
    padding: 20px;
}

.preview-experience .step-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px;
    background: var(--surface-light);
    border-radius: 12px;
    border: 2px solid var(--border);
}

/* Welcome Message Animation */
.preview-welcome {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--surface) 0%, var(--surface-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    animation: welcomeFadeIn 3s ease-in-out forwards;
}

.welcome-animation {
    text-align: center;
    max-width: 600px;
    padding: 40px;
}

.welcome-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    opacity: 0;
    animation: slideUp 2s ease-out 0.5s forwards;
}

.welcome-dedication {
    font-family: 'Crimson Text', serif;
    font-size: 1.4rem;
    font-style: italic;
    color: var(--text-primary);
    margin-bottom: 20px;
    opacity: 0;
    animation: slideUp 2s ease-out 1s forwards;
}

.welcome-from {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: var(--text-secondary);
    opacity: 0;
    animation: slideUp 2s ease-out 1.5s forwards;
}

@keyframes welcomeFadeIn {
    0% { opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { opacity: 0; visibility: hidden; }
}

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

/* Large Record Player */
.large-record-player {
    max-width: 600px;
    margin: 0 auto 60px;
    text-align: center;
}

.record-turntable {
    position: relative;
    width: 500px;
    height: 500px;
    margin: 0 auto 30px;
    perspective: 1000px;
}

.record-disc {
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle,
        var(--vinyl-black) 0%,
        #1a1a1a 30%,
        #2a2a2a 60%,
        var(--vinyl-black) 100%
    );
    border-radius: 50%;
    position: relative;
    transform-style: preserve-3d;
    transition: all 0.5s ease;
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.6),
        inset 0 0 80px rgba(255, 255, 255, 0.08);
}

.record-disc.spinning {
    animation: smoothSpin 4s linear infinite;
}

@keyframes smoothSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.record-grooves {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: repeating-conic-gradient(
        from 0deg,
        transparent 0deg 1deg,
        rgba(255, 255, 255, 0.05) 1deg 2deg,
        transparent 2deg 3deg,
        rgba(255, 255, 255, 0.03) 3deg 4deg
    );
}

.record-center {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 140px;
    height: 140px;
    transform: translate(-50%, -50%);
    background: var(--primary-color);
    border-radius: 50%;
    border: 4px solid var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 0 30px var(--glow),
        inset 0 0 20px rgba(0, 0, 0, 0.3);
}

.record-label {
    text-align: center;
    color: var(--light-color);
}

.label-names {
    font-family: 'Playfair Display', serif;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.record-center .fas.fa-heart {
    font-size: 20px;
    color: var(--light-color);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Needle Arm */
.needle-arm {
    position: absolute;
    top: 15%;
    right: 10%;
    width: 200px;
    height: 8px;
    background: linear-gradient(90deg, #8B4513 0%, #A0522D 50%, #8B4513 100%);
    border-radius: 4px;
    transform-origin: 85% center;
    transform: rotate(-25deg);
    transition: all 0.8s ease;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.needle-arm.active {
    transform: rotate(-5deg);
}

.needle-point {
    position: absolute;
    right: 0;
    top: 50%;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, #C0C0C0 0%, #808080 100%);
    border-radius: 50%;
    transform: translateY(-50%);
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.6);
}

.needle-point::after {
    content: '';
    position: absolute;
    right: 5px;
    top: 50%;
    width: 3px;
    height: 3px;
    background: #333;
    border-radius: 50%;
    transform: translateY(-50%);
}

/* Drop Needle Button */
.drop-needle-btn {
    background: var(--primary-color);
    border: 2px solid var(--secondary-color);
    color: var(--light-color);
    padding: 16px 32px;
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--shadow);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.drop-needle-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow);
}

.now-playing {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    color: var(--primary-color);
    margin-top: 20px;
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
}

.now-playing i {
    animation: musicPulse 2s ease-in-out infinite;
}

@keyframes musicPulse {
    0%, 100% { transform: scale(1); color: var(--primary-color); }
    50% { transform: scale(1.1); color: var(--secondary-color); }
}

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

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

/* Voice Preview Section */
.voice-preview-section {
    margin: 50px 0;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.voice-preview-section.active {
    opacity: 1;
    transform: translateY(0);
}

.voice-preview-player {
    text-align: center;
    padding: 30px;
}

.voice-waveform {
    margin: 20px 0;
}

.wave-bars {
    display: flex;
    justify-content: center;
    align-items: end;
    gap: 3px;
    height: 60px;
}

.wave-bar {
    width: 4px;
    background: var(--primary-color);
    border-radius: 2px;
    height: 20px;
    animation: waveAnimation 2s ease-in-out infinite;
}

.wave-bar:nth-child(odd) {
    animation-delay: 0.1s;
}

.wave-bar:nth-child(even) {
    animation-delay: 0.2s;
}

@keyframes waveAnimation {
    0%, 100% { height: 20px; }
    50% { height: 45px; }
}

.voice-note-text {
    font-family: 'Crimson Text', serif;
    font-style: italic;
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-top: 15px;
}

/* Polaroid Gallery */
.polaroid-gallery {
    margin: 50px 0;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.polaroid-gallery.active {
    opacity: 1;
    transform: translateY(0);
}

.polaroid-collection {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
}

.polaroid {
    background: var(--surface-light);
    padding: 20px 20px 60px 20px;
    border-radius: 8px;
    box-shadow: 0 8px 25px var(--shadow);
    transform: rotate(var(--rotation, 0deg));
    transition: all 0.3s ease;
    max-width: 250px;
}

.polaroid:nth-child(2n) {
    --rotation: 2deg;
}

.polaroid:nth-child(3n) {
    --rotation: -1.5deg;
}

.polaroid:hover {
    transform: rotate(0deg) scale(1.05);
    z-index: 10;
}

.polaroid-image {
    width: 100%;
    height: 180px;
    background: var(--surface-dark);
    border-radius: 4px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.polaroid-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.polaroid-caption {
    font-family: 'Crimson Text', serif;
    font-size: 14px;
    color: var(--text-primary);
    text-align: center;
    line-height: 1.4;
}

/* Memory Timeline */
.memory-timeline {
    margin: 50px 0;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.memory-timeline.active {
    opacity: 1;
    transform: translateY(0);
}

.memory-tracks {
    max-width: 600px;
    margin: 0 auto;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .record-turntable {
        width: 350px;
        height: 350px;
    }
    
    .record-center {
        width: 100px;
        height: 100px;
    }
    
    .label-names {
        font-size: 12px;
    }
    
    .record-center .fas.fa-heart {
        font-size: 16px;
    }
    
    .needle-arm {
        width: 140px;
        height: 6px;
    }
    
    .welcome-title {
        font-size: 2.2rem;
    }
    
    .welcome-dedication {
        font-size: 1.2rem;
    }
    
    .polaroid-collection {
        gap: 15px;
    }
    
    .polaroid {
        max-width: 200px;
        padding: 15px 15px 45px 15px;
    }
    
    .polaroid-image {
        height: 140px;
    }
}

@media (max-width: 480px) {
    .record-turntable {
        width: 280px;
        height: 280px;
    }
    
    .record-center {
        width: 80px;
        height: 80px;
    }
    
    .label-names {
        font-size: 10px;
    }
    
    .record-center .fas.fa-heart {
        font-size: 14px;
    }
    
    .needle-arm {
        width: 100px;
        height: 4px;
    }
    
    .welcome-title {
        font-size: 1.8rem;
    }
    
    .welcome-dedication {
        font-size: 1rem;
    }
    
    .drop-needle-btn {
        padding: 12px 24px;
        font-size: 16px;
    }
    
    .polaroid {
        max-width: 170px;
        padding: 12px 12px 35px 12px;
    }
    
    .polaroid-image {
        height: 120px;
        margin-bottom: 10px;
    }
    
    .polaroid-caption {
        font-size: 12px;
    }
}