/* hueso temporal - Continuous Timeline Style */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Times New Roman', serif;
    background: #ffffff;
    color: #000000;
    line-height: 1.6;
    min-height: 100vh;
    font-size: 16px;
    overflow-x: hidden;
}

/* Fallback for older browsers */
.timeline-wrapper {
    /* Fallback for browsers that don't support vh */
    height: 100%;
    min-height: 600px;
}

/* Timeline Wrapper */
.timeline-wrapper {
    width: 8000px; /* Fixed width instead of viewport units */
    height: 100vh;
    position: relative;
    -webkit-transition: -webkit-transform 0.3s ease;
    -moz-transition: -moz-transform 0.3s ease;
    transition: transform 0.3s ease;
    -webkit-transform: translateX(-1000px); /* Start centered on first episode */
    -moz-transform: translateX(-1000px);
    transform: translateX(-1000px);
}

/* Continuous Timeline Line */
.continuous-timeline {
    position: fixed;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: #000000;
    z-index: 10;
    -webkit-transform: translateY(-50%);
    -moz-transform: translateY(-50%);
    transform: translateY(-50%);
}

/* Timeline Container */
.timeline-container {
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: visible;
}

/* Timeline Points */
.timeline-point {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 300px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

.timeline-point.active {
    opacity: 1;
}

.timeline-point:hover {
    opacity: 0.8;
}

.timeline-point:hover .content-above,
.timeline-point:hover .content-below {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Episode Markers */
.episode-marker {
    width: 30px;
    height: 30px;
    background: #000000;
    border: 2px solid #ffffff;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 20;
    margin-bottom: 10px;
}

.episode-marker:hover {
    background: #333333;
    transform: scale(1.1);
}

.episode-marker.active {
    background: #000000;
    border-color: #000000;
    box-shadow: 0 0 0 3px #ffffff;
}

.episode-marker::after {
    content: attr(data-episode);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-size: 1rem;
    font-weight: bold;
}

/* Month and Year Labels */
.month-label {
    font-size: 1.2rem;
    font-weight: normal;
    color: #000000;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: #ffffff;
    padding: 5px 10px;
    z-index: 15;
    position: relative;
    margin-bottom: 5px;
}

.year-label {
    font-size: 0.9rem;
    color: #999999;
    background: #ffffff;
    padding: 2px 8px;
    z-index: 15;
    position: relative;
    margin-bottom: 20px;
}

/* Content Areas */
.content-above {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.content-below {
    position: absolute;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Episode Info */
.episode-info {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.episode-info.visible {
    opacity: 1;
}

.episode-title {
    font-size: 1.8rem;
    color: #000000;
    margin-bottom: 10px;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.episode-date {
    color: #999999;
    font-size: 1rem;
    margin-bottom: 15px;
    font-style: italic;
}

.episode-description {
    color: #000000;
    margin-bottom: 20px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.episode-link {
    display: inline-block;
    background: #000000;
    color: #ffffff;
    padding: 10px 20px;
    text-decoration: none;
    font-family: inherit;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.episode-link:hover {
    background: #666666;
    color: #ffffff;
}

/* Tracklist */
.tracklist {
    background: #ffffff;
    border: 1px solid #000000;
    padding: 15px;
    max-width: 300px;
    margin: 15px auto;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tracklist.visible {
    opacity: 1;
}

.tracklist h3 {
    color: #000000;
    margin-bottom: 10px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.track {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    border-bottom: 1px solid #cccccc;
    font-size: 0.8rem;
}

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

.track-title {
    color: #000000;
}

.track-time {
    color: #666666;
}

/* Episode Details */
.episode-details {
    background: #ffffff;
    border: 1px solid #000000;
    padding: 15px;
    max-width: 350px;
    margin: 15px auto;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.episode-details.visible {
    opacity: 1;
}

.episode-details h3 {
    color: #000000;
    margin-bottom: 10px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.episode-details p {
    color: #000000;
    margin-bottom: 10px;
    line-height: 1.5;
    font-size: 0.9rem;
}

/* Photobook Grid */
.photobook-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 15px;
}

.photobook-item {
    border: 1px solid #cccccc;
    padding: 8px;
    text-align: center;
    background: #ffffff;
    transition: all 0.3s ease;
}

.photobook-item:hover {
    border-color: #000000;
    transform: translateY(-2px);
}

.photobook-title {
    font-size: 0.8rem;
    color: #000000;
    margin-bottom: 3px;
    font-weight: bold;
}

.photobook-author {
    font-size: 0.7rem;
    color: #666666;
    font-style: italic;
}

/* Fixed Header and Footer */
.header-fixed {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 100;
    background: rgba(255, 255, 255, 0.9);
    padding: 10px 15px;
    border: 1px solid #000000;
}

.header-fixed h1 {
    font-size: 1.2rem;
    color: #000000;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

.header-fixed .subtitle {
    font-size: 0.8rem;
    color: #666666;
    font-style: italic;
    margin: 0;
}

.footer-fixed {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 100;
    background: rgba(255, 255, 255, 0.9);
    padding: 10px 15px;
    border: 1px solid #000000;
    font-size: 0.7rem;
    color: #666666;
}

.footer-fixed p {
    margin: 2px 0;
}

/* Scroll Indicator */
.timeline-scroll-indicator {
    position: fixed;
    bottom: 20px;
    right: 20px;
    color: #999999;
    font-size: 0.7rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.8);
    padding: 8px 12px;
    border: 1px solid #cccccc;
    z-index: 100;
}

/* Responsive Design */
@media (max-width: 768px) {
    .timeline-point {
        width: 250px;
    }
    
    .content-above,
    .content-below {
        width: 280px;
    }
    
    .episode-title {
        font-size: 1.5rem;
    }
    
    .tracklist,
    .episode-details {
        max-width: 250px;
    }
    
    .photobook-grid {
        grid-template-columns: 1fr;
    }
    
    .header-fixed,
    .footer-fixed {
        left: 10px;
        padding: 8px 12px;
    }
    
    .header-fixed h1 {
        font-size: 1rem;
    }
    
    .header-fixed .subtitle {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .timeline-point {
        width: 200px;
    }
    
    .content-above,
    .content-below {
        width: 220px;
    }
    
    .episode-title {
        font-size: 1.2rem;
    }
    
    .tracklist,
    .episode-details {
        max-width: 200px;
        padding: 10px;
    }
    
    .episode-link {
        padding: 8px 15px;
        font-size: 0.8rem;
    }
}