/* Timeline Page Styles - Bob Lazar Timeline */

/* Container improvements */
.page-id-435 .entry-content {
    max-width: 100%;
    overflow-x: auto;
}

/* Table base styling */
.page-id-435 .wp-block-table table {
    border-collapse: collapse;
    width: 100%;
    font-size: 0.95rem;
    line-height: 1.7;
    background: #fff;
}

/* Sticky header */
.page-id-435 .wp-block-table thead,
.page-id-435 .wp-block-table tr:first-child {
    position: sticky;
    top: 0;
    z-index: 10;
}

.page-id-435 .wp-block-table tr:first-child td,
.page-id-435 .wp-block-table thead th {
    background: #2c3e50;
    color: #ecf0f1;
    font-weight: 600;
    padding: 14px 16px;
    text-align: left;
    border: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Subtle zebra striping */
.page-id-435 .wp-block-table tbody tr:nth-child(odd) {
    background-color: #fafbfc;
}

.page-id-435 .wp-block-table tbody tr:nth-child(even) {
    background-color: #ffffff;
}

/* Cell styling */
.page-id-435 .wp-block-table td {
    padding: 14px 16px;
    border-bottom: 2px solid #d0d7de;
    vertical-align: top;
}

/* Date column - warm and readable */
.page-id-435 .wp-block-table tbody td:first-child,
.page-id-435 .wp-block-table tr:not(:first-child) td:first-child {
    background: #f5f0e8;
    color: #3d4852;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-weight: 600;
    font-size: 1rem;
    min-width: 130px;
    white-space: nowrap;
    border-right: 1px solid #e8e2d9;
}

/* Keep header row dark */
.page-id-435 .wp-block-table tr:first-child td:first-child {
    background: #2c3e50;
    color: #ecf0f1;
    border-right: none;
}

.page-id-435 .wp-block-table td:first-child strong {
    color: inherit;
}

/* Event column */
.page-id-435 .wp-block-table td:nth-child(2) {
    font-weight: 500;
    color: #1a1a1a;
    min-width: 200px;
    max-width: 300px;
}

/* Detail column */
.page-id-435 .wp-block-table td:nth-child(3) {
    color: #4a4a4a;
    max-width: 500px;
    font-size: 0.9rem;
    line-height: 1.8;
}

/* Collapsible content */
.timeline-detail-content {
    max-height: 150px;
    overflow: hidden;
    position: relative;
    transition: max-height 0.3s ease;
}

.timeline-detail-content.expanded {
    max-height: none;
}

.timeline-detail-content:not(.expanded)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: linear-gradient(transparent, #fafbfc);
    pointer-events: none;
}

tr:nth-child(even) .timeline-detail-content:not(.expanded)::after {
    background: linear-gradient(transparent, #ffffff);
}

.timeline-expand-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 5px 14px;
    background: #f0f0f0;
    color: #555;
    border: 1px solid #ddd;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.timeline-expand-btn:hover {
    background: #e0e0e0;
    border-color: #ccc;
}

/* Sources column - keep this styling */
.page-id-435 .wp-block-table td:nth-child(4) {
    font-size: 0.85rem;
    min-width: 150px;
    max-width: 200px;
}

.page-id-435 .wp-block-table td:nth-child(4) a {
    display: inline-block;
    margin: 3px 2px;
    color: #3498db;
    text-decoration: none;
    padding: 4px 10px;
    background: #e8f4fc;
    border-radius: 15px;
    font-size: 0.78rem;
    transition: all 0.2s ease;
    border: 1px solid #d0e8f5;
}

.page-id-435 .wp-block-table td:nth-child(4) a:hover {
    background: #3498db;
    color: #fff;
    border-color: #3498db;
}

/* Decade separator rows - more subtle */
.timeline-year-separator td {
    background: #34495e !important;
    color: #ecf0f1 !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    text-align: center !important;
    padding: 12px !important;
    letter-spacing: 1px;
    border: none !important;
}

/* Year navigation - cleaner look */
.timeline-nav {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    padding: 12px 8px;
    border-radius: 8px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    border: 1px solid #eee;
    z-index: 1000;
    max-height: 60vh;
    overflow-y: auto;
}

.timeline-nav a {
    display: block;
    color: #555;
    text-decoration: none;
    padding: 6px 12px;
    font-size: 0.8rem;
    border-radius: 4px;
    margin: 2px 0;
    transition: all 0.2s ease;
}

.timeline-nav a:hover,
.timeline-nav a.active {
    background: #3498db;
    color: #fff;
}

/* Back to top button */
.timeline-back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #3498db;
    color: #fff;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 15px rgba(52, 152, 219, 0.3);
    z-index: 1000;
}

.timeline-back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.timeline-back-to-top:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(52, 152, 219, 0.4);
}

/* Mobile responsive */
@media (max-width: 1300px) {
    .timeline-nav {
        display: none;
    }
}

@media (max-width: 768px) {
    .page-id-435 .wp-block-table {
        display: block;
        overflow-x: auto;
    }

    .page-id-435 .wp-block-table table {
        min-width: 700px;
    }

    .page-id-435 .wp-block-table td {
        padding: 12px 10px;
    }
}

/* Print styles */
@media print {
    .timeline-nav,
    .timeline-back-to-top,
    .timeline-expand-btn {
        display: none !important;
    }

    .timeline-detail-content {
        max-height: none !important;
    }

    .timeline-detail-content::after {
        display: none !important;
    }
}
