/* INTERACTIVE ELEMENTS - Timelines, diagrams, carousels */

/* All ul and li elements in interactive components get proper indentation */
.timeline-content ul, .ideal-content ul, .relationship-content ul, .reform-card ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.timeline-content li, .ideal-content li, .relationship-content li, .reform-card li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
    color: #333;
}

/* INTERACTIVE TIMELINE */
.interactive-timeline {
    margin: 2rem 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
}

.timeline-header {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    padding: 1rem 1.5rem;
    font-weight: 600;
    font-size: 1.1rem;
}

.timeline-container {
    padding: 2rem;
}

.timeline-events {
    position: relative;
    padding-left: 2rem;
}

.timeline-events::before {
    content: '';
    position: absolute;
    left: 1rem;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, #dc3545, #c82333);
    border-radius: 2px;
}

.timeline-event {
    position: relative;
    margin-bottom: 2.5rem;
    padding-left: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.timeline-event:hover {
    transform: translateX(5px);
}

.timeline-event::before {
    content: '';
    position: absolute;
    left: -0.6rem;
    top: 0.5rem;
    width: 1.2rem;
    height: 1.2rem;
    background: #dc3545;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 3px #dc3545;
    transition: all 0.3s ease;
}

.timeline-event:hover::before {
    transform: scale(1.2);
    box-shadow: 0 0 0 5px rgba(220, 53, 69, 0.3);
}

.timeline-date {
    font-weight: 700;
    color: #dc3545;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.timeline-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.timeline-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

.timeline-details {
    margin-top: 2rem;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    min-height: 200px;
    border: 2px solid #e9ecef;
}

.timeline-content {
    display: none;
}

.timeline-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.timeline-content h4 {
    color: #dc3545;
    margin-bottom: 1rem;
}

.timeline-content p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* REFORM SHOWCASE */
.reform-showcase {
    margin: 2rem 0;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.showcase-header {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 1.5rem;
    text-align: center;
    font-weight: 600;
    font-size: 1.2rem;
}

.reform-cards {
    padding: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.reform-card {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.reform-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
    border-color: #28a745;
}

.reform-card.active {
    border-color: #28a745;
    background: #d4edda;
}

.reform-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.reform-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.reform-subtitle {
    color: #666;
    font-size: 0.9rem;
}

/* BROTHER COMPARISON */
.brother-comparison {
    margin: 2rem 0;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.comparison-header {
    background: linear-gradient(135deg, #6c757d, #5a6268);
    color: white;
    padding: 1rem 1.5rem;
    font-weight: 600;
    font-size: 1.1rem;
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.brother-section {
    padding: 2rem;
}

.brother-section.tiberius {
    background: #f8f9fa;
    border-right: 2px solid #dc3545;
}

.brother-section.gaius {
    background: #fff5f5;
}

.brother-section h4 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.brother-section.tiberius h4 {
    color: #007bff;
}

.brother-section.gaius h4 {
    color: #28a745;
}

.brother-section p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.brother-portrait {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #6c757d;
    margin: 0 auto 1rem auto;
    display: block;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.brother-portrait-fallback {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6c757d, #5a6268);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    margin: 0 auto 1rem auto;
    border: 4px solid #6c757d;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* RESPONSIVE FOR INTERACTIVE ELEMENTS */
@media (max-width: 768px) {
    .reform-cards {
        grid-template-columns: 1fr;
    }
    
    .comparison-grid {
        grid-template-columns: 1fr;
    }
    
    .brother-section.tiberius {
        border-right: none;
        border-bottom: 2px solid #dc3545;
    }
}
