/**
 * Tarihte Bugün CSS
 * Tab sistemi ve timeline tasarımı
 */

/* ============================================
   SECTION & CONTAINER
   ============================================ */

.tarihte-bugun-section {
    margin: 20px 0;
    padding: 0;
    background: #fff;
}

.tarihte-bugun-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

.tarihte-bugun-container > * {
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 15px 25px 25px 25px;
}

/* ============================================
   HEADER
   ============================================ */

.tarihte-bugun-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 0;
    padding: 15px 25px 10px 25px;
    background: #fff;
    border-radius: 4px 4px 0 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tarihte-bugun-title {
    font-size: 24px;
    font-weight: 700;
    color: #673AB7;
    margin: 0;
    padding: 0;
    white-space: nowrap;
    flex-shrink: 0;
}

.tarihte-bugun-line {
    flex: 1;
    height: 2px;
    background: #ddd;
}

.tarihte-bugun-date-badge {
    background: #673AB7;
    color: #fff;
    padding: 6px 16px;
    border-radius: 0;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ============================================
   TAB MENÜSÜ
   ============================================ */

.tarihte-bugun-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 0;
    border-bottom: 2px solid #ddd;
    margin-top: 0;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 0 25px;
}

.tarihte-bugun-tab {
    background: #f5f5f5;
    border: none;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    border-right: 1px solid #ddd;
}

.tarihte-bugun-tab:last-child {
    border-right: none;
}

.tarihte-bugun-tab:hover {
    background: #e8e8e8;
    color: #673AB7;
}

.tarihte-bugun-tab.active {
    background: #fff;
    color: #673AB7;
    border-bottom-color: #673AB7;
}

/* ============================================
   TAB İÇERİKLERİ
   ============================================ */

.tarihte-bugun-content {
    background: #fff;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 25px;
    height: 400px;
    max-height: 400px;
    overflow: hidden;
}

.tarihte-bugun-tab-content {
    display: none;
}

.tarihte-bugun-tab-content.active {
    display: block;
}

/* ============================================
   TIMELINE
   ============================================ */

.tarihte-bugun-timeline {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 350px;
    overflow-y: auto;
    padding-right: 10px;
}

/* Scrollbar Styling */
.tarihte-bugun-timeline::-webkit-scrollbar {
    width: 8px;
}

.tarihte-bugun-timeline::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.tarihte-bugun-timeline::-webkit-scrollbar-thumb {
    background: #673AB7;
    border-radius: 4px;
}

.tarihte-bugun-timeline::-webkit-scrollbar-thumb:hover {
    background: #5e35b1;
}

.tarihte-bugun-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.tarihte-bugun-year {
    flex-shrink: 0;
    background: #4CAF50;
    color: #fff;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 13px;
    font-weight: 700;
    min-width: 50px;
    text-align: center;
}

.tarihte-bugun-text {
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    padding-top: 5px;
}

.tarihte-bugun-text a {
    color: #673AB7;
    text-decoration: none;
}

.tarihte-bugun-text a:hover {
    text-decoration: underline;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .tarihte-bugun-container {
        padding: 0 12px;
    }
    
    .tarihte-bugun-container > * {
        padding: 12px;
    }
    
    .tarihte-bugun-header {
        padding: 12px;
    }
    
    .tarihte-bugun-tabs {
        padding: 0 12px;
    }
    
    .tarihte-bugun-content {
        padding: 20px 12px;
    }
    
    .tarihte-bugun-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }
    
    .tarihte-bugun-line {
        display: none;
    }
    
    .tarihte-bugun-title {
        font-size: 24px;
    }
    
    .tarihte-bugun-date-badge {
        font-size: 14px;
        padding: 6px 15px;
    }
    
    .tarihte-bugun-tabs {
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .tarihte-bugun-tab {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .tarihte-bugun-content {
        padding: 20px 15px;
        height: 350px;
        max-height: 350px;
    }
    
    .tarihte-bugun-timeline {
        max-height: 300px;
    }
    
    .tarihte-bugun-item {
        flex-direction: column;
        gap: 10px;
    }
    
    .tarihte-bugun-year {
        align-self: flex-start;
        padding: 4px 8px;
        font-size: 12px;
        min-width: 45px;
    }
    
    .tarihte-bugun-text {
        font-size: 13px;
        padding-top: 0;
    }
}

@media (max-width: 600px) {
    .tarihte-bugun-title {
        font-size: 20px;
    }
    
    .tarihte-bugun-tabs {
        border-bottom: 1px solid #ddd;
    }
    
    .tarihte-bugun-tab {
        flex: 1;
        text-align: center;
        padding: 10px 8px;
        font-size: 13px;
    }
    
    .tarihte-bugun-content {
        padding: 15px;
        height: 300px;
        max-height: 300px;
    }
    
    .tarihte-bugun-timeline {
        max-height: 250px;
    }
}

/* ============================================
   DARK MODE
   ============================================ */

body.dark-mode .tarihte-bugun-section {
    background: var(--dark-bg-primary, #121212);
}

body.dark-mode .tarihte-bugun-container > * {
    background: var(--dark-bg-secondary, #1e1e1e);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

body.dark-mode .tarihte-bugun-header {
    background: var(--dark-bg-secondary, #1e1e1e);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

body.dark-mode .tarihte-bugun-title {
    color: #9575CD;
}

body.dark-mode .tarihte-bugun-date-badge {
    background: #9575CD;
}

body.dark-mode .tarihte-bugun-line {
    background: var(--dark-border, #444);
}

body.dark-mode .tarihte-bugun-tabs {
    background: var(--dark-bg-secondary, #1e1e1e);
    border-bottom-color: var(--dark-border, #444);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

body.dark-mode .tarihte-bugun-tab {
    background: var(--dark-bg-tertiary, #2a2a2a);
    color: var(--dark-text-secondary, #999);
    border-right-color: var(--dark-border, #444);
}

body.dark-mode .tarihte-bugun-tab:hover {
    background: var(--dark-bg-hover, #333);
    color: #9575CD;
}

body.dark-mode .tarihte-bugun-tab.active {
    background: var(--dark-bg-secondary, #1e1e1e);
    color: #9575CD;
    border-bottom-color: #9575CD;
}

body.dark-mode .tarihte-bugun-content {
    background: var(--dark-bg-secondary, #1e1e1e);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

body.dark-mode .tarihte-bugun-text {
    color: var(--dark-text-primary, #e8e8e8);
}

body.dark-mode .tarihte-bugun-text a {
    color: #9575CD;
}

body.dark-mode .tarihte-bugun-year {
    background: #66BB6A;
}