/* Unlock Page Specific Styles */

/* Unlock Section */
.unlock-section {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.unlock-container {
    background: var(--surface);
    border-radius: 24px;
    padding: 40px;
    max-width: 500px;
    width: 100%;
    text-align: center;
    box-shadow: 
        0 30px 60px var(--shadow),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid var(--surface-light);
    position: relative;
    overflow: hidden;
}

.unlock-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.unlock-header {
    margin-bottom: 40px;
}

.unlock-header .logo {
    margin-bottom: 24px;
    justify-content: center;
}

.unlock-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.unlock-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.5;
}

/* Unlock Form */
.unlock-form {
    margin-bottom: 30px;
}

.unlock-input {
    width: 100%;
    padding: 16px 20px;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: var(--surface-light);
    border: 2px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: 'Playfair Display', serif;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px var(--shadow);
}

.unlock-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--surface);
    box-shadow: 0 0 0 4px var(--glow), inset 0 2px 4px var(--shadow);
    transform: scale(1.02);
}

.input-hint {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.btn-unlock {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-unlock::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-unlock:hover::before {
    left: 100%;
}

.btn-unlock:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--glow);
}

.btn-unlock:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.unlock-footer {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Experience Section */
.experience-section {
    min-height: 100vh;
    padding: 20px 0;
}

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

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

.record-disc {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, var(--vinyl-black) 0%, #2a2a2a 70%, var(--vinyl-black) 100%);
    border-radius: 50%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.6),
        inset 0 0 60px rgba(255, 255, 255, 0.1);
}

.record-disc.spinning {
    animation: recordSpin 3s linear infinite;
}

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

.record-center {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 160px;
    height: 160px;
    transform: translate(-50%, -50%);
    background: var(--vinyl-label);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 0 30px rgba(255, 71, 87, 0.4),
        inset 0 0 30px rgba(0, 0, 0, 0.3);
}

.record-label {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
}

.label-text {
    color: white;
    font-weight: 600;
}

.names {
    font-size: 16px;
    margin-bottom: 8px;
    font-weight: 700;
}

.dedication {
    font-size: 12px;
    font-style: italic;
    opacity: 0.9;
    line-height: 1.3;
}

.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
    );
    pointer-events: none;
}

/* Tonearm */
.tonearm {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 200px;
    height: 200px;
    z-index: 10;
    transition: transform 0.8s ease;
}

.tonearm.playing {
    transform: rotate(25deg);
}

.tonearm-base {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 30px;
    height: 30px;
    background: var(--surface-light);
    border-radius: 50%;
    box-shadow: 0 4px 12px var(--shadow);
}

.tonearm-arm {
    position: absolute;
    top: 35px;
    right: 35px;
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, var(--surface-light), var(--surface));
    border-radius: 2px;
    transform-origin: left center;
    box-shadow: 0 2px 8px var(--shadow);
}

.tonearm-head {
    position: absolute;
    top: 145px;
    right: -85px;
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(255, 107, 107, 0.5);
}

/* Player Controls */
.player-controls {
    max-width: 400px;
    margin: 0 auto;
}

.play-button {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    padding: 16px 32px;
    font-size: 18px;
    font-weight: 600;
    color: white;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px var(--glow);
}

.play-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px var(--glow);
}

.progress-display {
    background: var(--surface);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--surface-light);
}

.time-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 600;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: var(--surface-light);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
    transition: width 0.3s ease;
    width: 0%;
}

/* Content Sections */
.experience-content {
    max-width: 800px;
    margin: 0 auto;
}

.content-section {
    margin-bottom: 80px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

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

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

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.section-header h2 i {
    color: var(--primary-color);
}

/* Photos Gallery */
.photos-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.photo-memory {
    background: var(--surface);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid var(--surface-light);
    box-shadow: 0 10px 30px var(--shadow);
}

.photo-memory:hover {
    transform: translateY(-5px);
}

.photo-memory img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 16px;
}

.photo-caption {
    font-size: 16px;
    color: var(--text-primary);
    font-weight: 500;
    line-height: 1.4;
}

/* Voice Player */
.voice-player {
    background: var(--surface);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid var(--surface-light);
    box-shadow: 0 20px 40px var(--shadow);
}

.voice-visualizer {
    margin-bottom: 30px;
}

.voice-wave {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 60px;
}

.wave-bar {
    width: 4px;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
    animation: wave 1.5s ease-in-out infinite;
}

@keyframes wave {
    0%, 100% { height: 20px; }
    50% { height: 60px; }
}

.voice-controls {
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 400px;
    margin: 0 auto;
}

.voice-play-btn {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px var(--glow);
}

.voice-play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 35px var(--glow);
}

.voice-progress {
    flex: 1;
}

.voice-time {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 600;
}

.voice-progress-bar {
    width: 100%;
    height: 4px;
    background: var(--surface-light);
    border-radius: 2px;
    overflow: hidden;
}

.voice-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
    transition: width 0.3s ease;
    width: 0%;
}

/* Tracklist */
.tracklist {
    background: var(--surface);
    border-radius: 16px;
    padding: 30px;
    border: 1px solid var(--surface-light);
    box-shadow: 0 15px 35px var(--shadow);
}

.track-memory {
    display: flex;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--surface-light);
    transition: all 0.3s ease;
}

.track-memory:last-child {
    border-bottom: none;
}

.track-memory:hover {
    background: rgba(255, 107, 107, 0.05);
    border-radius: 8px;
    margin: 0 -16px;
    padding: 16px;
}

.track-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
    margin-right: 20px;
}

.track-info {
    flex: 1;
}

.track-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.track-date {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Actions Section */
.actions-section {
    text-align: center;
    padding: 40px 0;
    background: var(--surface);
    border-radius: 20px;
    border: 1px solid var(--surface-light);
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.action-btn {
    background: var(--background);
    border: 2px solid var(--surface-light);
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--text-primary);
    text-align: left;
}

.action-btn:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--shadow);
}

.action-btn i {
    font-size: 24px;
    color: var(--primary-color);
}

.action-btn strong {
    display: block;
    font-size: 16px;
    margin-bottom: 4px;
}

.action-btn small {
    font-size: 12px;
    color: var(--text-secondary);
}

.love-track-branding {
    padding-top: 20px;
    border-top: 1px solid var(--surface-light);
    color: var(--text-secondary);
}

.love-track-branding a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.love-track-branding a:hover {
    text-decoration: underline;
}

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

.error-container {
    background: var(--surface);
    border-radius: 24px;
    padding: 40px;
    max-width: 500px;
    width: 100%;
    text-align: center;
    box-shadow: 0 30px 60px var(--shadow);
    border: 1px solid rgba(255, 107, 107, 0.3);
}

.error-icon {
    font-size: 64px;
    color: var(--primary-color);
    margin-bottom: 24px;
}

.error-container h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.error-container p {
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.6;
}

.error-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--surface-light);
    font-size: 14px;
    color: var(--text-secondary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .unlock-container {
        padding: 30px 20px;
        margin: 20px;
    }
    
    .player-container {
        width: 300px;
        height: 300px;
    }
    
    .record-center {
        width: 120px;
        height: 120px;
    }
    
    .names {
        font-size: 14px;
    }
    
    .dedication {
        font-size: 10px;
    }
    
    .tonearm {
        width: 150px;
        height: 150px;
    }
    
    .tonearm-arm {
        width: 90px;
    }
    
    .photos-gallery {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .voice-controls {
        flex-direction: column;
        gap: 15px;
    }
    
    .actions-grid {
        grid-template-columns: 1fr;
    }
    
    .action-btn {
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .unlock-header h1 {
        font-size: 1.6rem;
    }
    
    .player-container {
        width: 250px;
        height: 250px;
    }
    
    .record-center {
        width: 100px;
        height: 100px;
    }
    
    .names {
        font-size: 12px;
    }
    
    .dedication {
        font-size: 9px;
    }
    
    .voice-player {
        padding: 20px;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-out;
}

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

.slide-up {
    animation: slideUp 0.8s ease-out;
}

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