/* New Unlock Experience Styles */

/* Welcome Animation Section */
.welcome-animation-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--surface) 0%, var(--surface-light) 50%, var(--surface) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    cursor: pointer;
}

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

.welcome-hearts {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 60px;
}

.floating-heart {
    position: absolute;
    color: var(--primary-color);
    font-size: 18px;
    opacity: 0.8;
    animation: gentleFloat 3s ease-in-out infinite;
}

.heart-1 {
    left: 20%;
    animation-delay: 0s;
}

.heart-2 {
    left: 50%;
    animation-delay: 1s;
    transform: translateX(-50%);
}

.heart-3 {
    left: 80%;
    animation-delay: 2s;
}

@keyframes gentleFloat {
    0%, 100% {
        transform: translateY(0px);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-15px);
        opacity: 1;
    }
}

.welcome-content {
    margin-top: 50px;
    opacity: 0;
    animation: welcomeSlideIn 2s ease-out 0.5s forwards;
}

.welcome-greeting {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px var(--shadow);
}

.welcome-dedication-display {
    margin: 30px 0;
}

.dedication-text {
    font-family: 'Crimson Text', serif;
    font-size: 1.4rem;
    font-style: italic;
    color: var(--text-primary);
    margin-bottom: 15px;
    line-height: 1.4;
}

.from-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin: 0;
}

.continue-hint {
    margin-top: 50px;
    opacity: 0;
    animation: hintFadeIn 2s ease-out 2.5s forwards;
}

.continue-hint p {
    font-family: 'Crimson Text', serif;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.pulse-icon {
    color: var(--primary-color);
    font-size: 20px;
    animation: gentlePulse 2s ease-in-out infinite;
}

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

@keyframes hintFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes gentlePulse {
    0%, 100% {
        transform: translateY(0px);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-5px);
        opacity: 1;
    }
}

/* Turntable Experience */
.turntable-experience {
    text-align: center;
    padding: 40px 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.turntable-container {
    position: relative;
    width: 600px;
    height: 600px;
    margin: 0 auto 40px;
    perspective: 1000px;
}

.vinyl-record-large {
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle,
        var(--vinyl-black) 0%,
        #0a0a0a 20%,
        #1a1a1a 40%,
        #2a2a2a 70%,
        var(--vinyl-black) 100%
    );
    border-radius: 50%;
    position: relative;
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.8),
        inset 0 0 100px rgba(255, 255, 255, 0.05);
    transition: all 0.5s ease;
}

.vinyl-record-large.spinning {
    animation: vinylSpin 2s linear infinite;
}

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

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

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

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

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

.label-heart {
    font-size: 20px;
    color: var(--light-color);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* Needle System */
.needle-system {
    position: absolute;
    top: 10%;
    right: 8%;
    z-index: 10;
}

.needle-arm-large {
    width: 250px;
    height: 12px;
    background: linear-gradient(90deg, #8B4513 0%, #D2691E 30%, #A0522D 70%, #8B4513 100%);
    border-radius: 6px;
    transform-origin: 88% center;
    transform: rotate(-30deg);
    transition: all 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

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

.needle-cartridge {
    position: absolute;
    right: 0;
    top: 50%;
    width: 30px;
    height: 24px;
    background: linear-gradient(135deg, #C0C0C0 0%, #808080 100%);
    border-radius: 4px;
    transform: translateY(-50%);
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
}

.needle-tip {
    position: absolute;
    right: -2px;
    top: 50%;
    width: 6px;
    height: 6px;
    background: #333;
    border-radius: 50%;
    transform: translateY(-50%);
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.8);
}

/* Drop Needle Button */
.drop-needle-interface {
    margin: 40px 0;
}

.drop-needle-btn-large {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
    color: var(--light-color);
    padding: 24px 40px;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px var(--shadow);
    text-align: center;
    min-width: 280px;
}

.drop-needle-btn-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px var(--shadow);
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
}

.drop-needle-btn-large i {
    font-size: 24px;
    margin-right: 12px;
}

.drop-needle-btn-large span {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
}

.btn-subtitle {
    font-family: 'Crimson Text', serif;
    font-size: 14px;
    opacity: 0.9;
}

/* Content Timeline */
.content-timeline {
    max-width: 800px;
    margin: 60px auto;
    padding: 0 20px;
}

.content-section {
    margin: 60px 0;
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s ease;
}

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

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.section-header h3 i {
    margin-right: 12px;
    font-size: 1.8rem;
}

/* Voice Section */
.voice-player-container {
    background: var(--surface-light);
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
}

.voice-visualization {
    margin: 30px 0;
}

.waveform-display {
    display: flex;
    justify-content: center;
    align-items: end;
    gap: 4px;
    height: 80px;
}

.wave-line {
    width: 6px;
    background: var(--primary-color);
    border-radius: 3px;
    transition: all 0.3s ease;
    animation: waveMotion 2s ease-in-out infinite;
}

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

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

@keyframes waveMotion {
    0%, 100% {
        height: var(--base-height, 20px);
        background: var(--primary-color);
    }
    50% {
        height: calc(var(--base-height, 20px) * 1.8);
        background: var(--secondary-color);
    }
}

/* Polaroid Showcase */
.polaroid-showcase {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    margin: 40px 0;
}

.unlock-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.4s ease;
    max-width: 280px;
}

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

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

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

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

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

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

/* Memory Timeline Display */
.memory-timeline-display {
    background: var(--surface-light);
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 40px;
}

.timeline-memory {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    margin: 15px 0;
    background: var(--surface);
    border-left: 4px solid var(--primary-color);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.timeline-memory:hover {
    background: var(--surface-dark);
    box-shadow: 0 4px 15px var(--shadow);
}

.memory-number {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    color: var(--primary-color);
    min-width: 80px;
    font-size: 16px;
}

.memory-details {
    flex: 1;
}

.memory-title {
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.memory-date {
    font-family: 'Crimson Text', serif;
    font-size: 14px;
    color: var(--text-secondary);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .welcome-greeting {
        font-size: 2.2rem;
    }
    
    .dedication-text {
        font-size: 1.2rem;
    }
    
    .turntable-container {
        width: 400px;
        height: 400px;
    }
    
    .record-center-large {
        width: 120px;
        height: 120px;
    }
    
    .label-names {
        font-size: 14px;
    }
    
    .label-heart {
        font-size: 16px;
    }
    
    .needle-arm-large {
        width: 180px;
        height: 8px;
    }
    
    .drop-needle-btn-large {
        padding: 20px 30px;
        min-width: 250px;
    }
    
    .drop-needle-btn-large span {
        font-size: 18px;
    }
    
    .polaroid-showcase {
        gap: 20px;
    }
    
    .unlock-polaroid {
        max-width: 220px;
        padding: 15px 15px 45px 15px;
    }
    
    .polaroid-img {
        height: 160px;
    }
}

@media (max-width: 480px) {
    .romantic-welcome {
        padding: 20px;
    }
    
    .welcome-greeting {
        font-size: 1.8rem;
    }
    
    .dedication-text {
        font-size: 1rem;
    }
    
    .turntable-container {
        width: 320px;
        height: 320px;
    }
    
    .record-center-large {
        width: 100px;
        height: 100px;
    }
    
    .label-names {
        font-size: 12px;
    }
    
    .label-heart {
        font-size: 14px;
    }
    
    .needle-arm-large {
        width: 140px;
        height: 6px;
    }
    
    .drop-needle-btn-large {
        padding: 16px 24px;
        min-width: 220px;
    }
    
    .drop-needle-btn-large span {
        font-size: 16px;
    }
    
    .content-timeline {
        padding: 0 15px;
    }
    
    .voice-player-container,
    .memory-timeline-display {
        padding: 25px 20px;
    }
    
    .unlock-polaroid {
        max-width: 200px;
        padding: 12px 12px 35px 12px;
    }
    
    .polaroid-img {
        height: 140px;
    }
    
    .polaroid-text {
        font-size: 12px;
    }
}