/**
 * Timeline Block Styles
 *
 * @package Vision_Hall
 */

/* Layout: two columns, left max 390px on desktop */
.timeline-block {
    width: 100%;
}

.timeline-block__wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start;
    padding: 0 20px;
}

@media (min-width: 1024px) {
    .timeline-block {
        min-height: 100vh;
    }

    .timeline-block__wrapper {
        grid-template-columns: minmax(0, 390px) 1fr;
        gap: 3rem;
        padding: 0 40px;
        min-height: 100vh;
        align-items: stretch;
    }
}

/* Left column: InnerBlocks content */
.timeline-block__left {
    width: 100%;
}

.timeline-block__left-inner {
    max-width: 100%;
}

@media (min-width: 1024px) {
    .timeline-block__left-inner {
        max-width: 390px;
    }
}

/* Right column: timeline with vertical line */
.timeline-block__right {
    position: relative;
    padding-left: 2rem;
}

@media (min-width: 768px) {
    .timeline-block__right {
        padding-left: 2.5rem;
    }
}

@media (min-width: 1024px) {
    .timeline-block__left {
        padding-top: 90px;
        padding-bottom: 2rem;
    }

    .timeline-block__right {
        height: 100vh;
        overflow: hidden;
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
}

/* Vertical line (border left of all items) */
.timeline-block__line {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    border-left: 1px solid #AEACA7;
    pointer-events: none;
}

.timeline-block__list {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
}

.timeline-block__item {
    position: relative;
    padding-bottom: 60px;
}

.timeline-block__item:last-child {
    padding-bottom: 0;
}

/* Dot on the line (aligned with timecode) */
.timeline-block__item::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 0.4em;
    width: 8px;
    height: 8px;
    margin-left: -4px;
    background: #0D0D0D;
    border-radius: 50%;
}

@media (min-width: 768px) {
    .timeline-block__item {
        padding-bottom: 120px;
    }

    .timeline-block__item::before {
        left: -2.5rem;
        margin-left: -4px;
    }
}

/* Timecode: Inter 15px, uppercase, #0D0D0D, margin-bottom 16px */
.timeline-block__timecode {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 15px;
    line-height: 150%;
    text-transform: uppercase;
    color: #0D0D0D;
    margin-bottom: 16px;
}

/* Title: Panama 44px, uppercase, #0D0D0D, margin-bottom 16px */
.timeline-block__title {
    font-family: 'Panama', serif;
    font-weight: 400;
    font-size: 32px;
    line-height: 100%;
    text-transform: uppercase;
    text-align: left;
    color: #0D0D0D;
    margin: 0 0 16px 0;
}

/* Text: Inter 15px, max-width 412px */
.timeline-block__text {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 15px;
    line-height: 150%;
    color: #0D0D0D;
    max-width: 412px;
    margin: 0;
}

.timeline-block__text p:last-child {
    margin-bottom: 0;
}

@media (min-width: 768px) {
    .timeline-block__title {
        font-size: 44px;
    }
}

/* Editor preview */
.timeline-block-editor {
    padding: 1rem;
    background: #F2EEE5;
    border: 1px dashed #ccc;
    min-height: 200px;
}

.timeline-block-editor__wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .timeline-block-editor__wrapper {
        grid-template-columns: minmax(0, 390px) 1fr;
    }
}

.timeline-block-editor__left-inner {
    max-width: 390px;
    min-height: 80px;
}

.timeline-block-preview-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.timeline-block-preview-item:last-child {
    border-bottom: 0;
}

.timeline-block-preview-timecode {
    font-size: 12px;
    text-transform: uppercase;
    color: #666;
    margin-bottom: 4px;
}

.timeline-block-preview-title {
    font-size: 18px;
    margin: 0 0 8px 0;
}

.timeline-block-preview-text {
    font-size: 13px;
    margin: 0;
    color: #444;
}

@media (min-width: 1024px) {
    .timeline-block__right { overflow: hidden; }
    .timeline-block__list { will-change: transform; }
}
  
