/**
 * LiveBlog Frontend Styles
 * Fanatik tarzı timeline tasarımı
 */

/* Genel Container */
.liveblog-article {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Liveblog Breadcrumb */
.liveblog-breadcrumb {
    margin-bottom: 20px;
    padding: 12px 0;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 14px;
}

.breadcrumb-item {
    display: inline-flex;
}

.breadcrumb-item a {
    color: #7f8c8d;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.breadcrumb-item a:hover {
    color: #e74c3c;
}

.breadcrumb-separator {
    color: #bdc3c7;
    user-select: none;
}

/* Liveblog Header */
.liveblog-header {
    margin-bottom: 40px;
    border-bottom: 3px solid #e74c3c;
    padding-bottom: 30px;
}

.liveblog-live-badge {
    display: inline-flex;
    align-items: center;
    background: #e74c3c;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 15px;
    animation: pulse 2s infinite;
}

.live-indicator {
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
    margin-right: 8px;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.liveblog-title {
    font-size: 36px;
    line-height: 1.3;
    margin: 15px 0;
    color: #2c3e50;
    font-weight: 700;
}

.liveblog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    color: #7f8c8d;
    font-size: 14px;
    margin: 15px 0;
}

.liveblog-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.liveblog-meta .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.liveblog-featured-image {
    margin: 20px 0;
    border-radius: 8px;
    overflow: hidden;
}

.liveblog-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.liveblog-excerpt {
    font-size: 18px;
    line-height: 1.6;
    color: #34495e;
    margin: 20px 0;
    font-weight: 500;
}

/* Timeline News Box - Fanatik Stili */
.timeline-news-box {
    position: relative;
    padding-left: 120px;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline-news {
    position: relative;
    margin-bottom: 40px;
    scroll-margin-top: 100px;
}

/* Tarih Badge - Sol Taraf */
.timeline-news-date {
    position: absolute;
    left: -120px;
    top: -10px;
    width: 100px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.timeline-news-date::before {
    content: '';
    width: 24px;
    height: 24px;
    background: #e74c3c;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 0 0 1px #ddd;
    flex-shrink: 0;
    position: absolute;
    left: 88px;
    top: 15px;
}

.timeline-news-date__time {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: #e74c3c;
    white-space: nowrap;
    line-height: 1.2;
}

.timeline-news-date__full {
    display: block;
    font-size: 12px;
    color: #7f8c8d;
    line-height: 1.3;
}

/* Kart */
.timeline-news-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    position: relative;
    margin-left: 0;
}

.timeline-news-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

/* Timeline Çizgisi - Kırmızı çizgi kaldırıldı */
.timeline-news-card::before {
    display: none;
}

.timeline-news-title {
    font-size: 28px;
    font-weight: 800;
    color: #000;
    margin-bottom: 20px;
    line-height: 1.3;
}

.timeline-news-img {
    margin: 20px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.timeline-news-img img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.timeline-news-img:hover img {
    transform: scale(1.02);
}

.timeline-news-text {
    font-size: 16px;
    line-height: 1.8;
    color: #2c3e50;
    margin: 15px 0;
}

.timeline-news-text p {
    margin-bottom: 16px;
}

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

.timeline-news-text strong {
    color: #1a1a1a;
    font-weight: 700;
}

.timeline-news-text a {
    color: #667eea;
    text-decoration: none;
    border-bottom: 1px solid rgba(102, 126, 234, 0.3);
    transition: all 0.2s ease;
}

.timeline-news-text a:hover {
    color: #764ba2;
    border-bottom-color: #764ba2;
}

/* Video Embed */
.timeline-news-embed {
    margin: 20px 0;
}

.player-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 6px;
}

.player-wrapper iframe,
.player-wrapper video,
.player-wrapper embed,
.player-wrapper object {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Paylaşım Butonları */
.timeline-news-share {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.share {
    display: flex;
    align-items: center;
    gap: 10px;
}

.share-text {
    font-size: 13px;
    font-weight: 600;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.share__item {
    display: inline-block;
}

.share__link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ecf0f1;
    color: #34495e;
    transition: all 0.3s ease;
    text-decoration: none;
}

.share__link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.share__link--facebook:hover {
    background: #3b5998;
    color: white;
}

.share__link--twitter:hover {
    background: #1da1f2;
    color: white;
}

.share__link--whatsapp:hover {
    background: #25d366;
    color: white;
}

.share__link--copy:hover {
    background: #95a5a6;
    color: white;
}

.share__link svg {
    width: 18px;
    height: 18px;
}

/* Boş Durum */
.liveblog-no-updates {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.liveblog-no-updates p {
    font-size: 18px;
    color: #7f8c8d;
    margin: 0;
}

/* Responsive Tasarım */
@media (max-width: 768px) {
    .liveblog-article {
        padding: 15px;
    }
    
    .liveblog-title {
        font-size: 24px;
    }
    
    .liveblog-excerpt {
        font-size: 15px;
    }
    
    .timeline-news-box {
        padding-left: 0;
        padding: 0 15px;
    }
    
    .timeline-news {
        margin-bottom: 30px;
    }
    
    .timeline-news-date {
        position: static;
        margin-bottom: 10px;
        justify-content: flex-start;
        flex-direction: row;
        align-items: center;
        gap: 8px;
        flex-wrap: nowrap;
    }
    
    .timeline-news-date::before {
        width: 20px;
        height: 20px;
        position: static;
        flex-shrink: 0;
    }
    
    .timeline-news-date__time {
        font-size: 15px;
        white-space: nowrap;
        flex-shrink: 0;
        font-weight: 700;
    }
    
    .timeline-news-date__full {
        font-size: 13px;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .timeline-news-card {
        padding: 20px;
        margin-left: 0;
    }
    
    .timeline-news-title {
        font-size: 20px;
    }
    
    .timeline-news-text {
        font-size: 15px;
    }
}

/* Tablet */
@media (max-width: 992px) and (min-width: 769px) {
    .liveblog-title {
        font-size: 32px;
    }
    
    .timeline-news-box {
        padding-left: 100px;
    }
    
    .timeline-news-date {
        left: -100px;
        width: 90px;
        top: -5px;
    }
    
    .timeline-news-date::before {
        left: 78px;
        top: 12px;
    }
    
    .timeline-news-date__time {
        font-size: 14px;
    }
    
    .timeline-news-date__full {
        font-size: 11px;
    }
}

/* Print Styles */
@media print {
    .timeline-news-share,
    .liveblog-live-badge {
        display: none;
    }
    
    .timeline-news-card {
        break-inside: avoid;
    }
}

/* Accessibility */
.timeline-news:focus-within .timeline-news-card {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Copy Link Notification */
.copy-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #27ae60;
    color: white;
    padding: 15px 25px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 9999;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.copy-notification.fade-out {
    animation: fadeOut 0.3s ease forwards;
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateY(20px);
    }
}

/* Liveblog News Image - Responsive */
.liveblog-news-image {
    max-width: 100%;
    height: auto;
    width: 100%;
    max-width: 400px;
    border-radius: 8px;
    display: block;
    margin: 15px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Desktop - Görsel sayfanın 1/4'ü kadar */
@media (min-width: 993px) {
    .liveblog-news-image {
        max-width: 25%;
        min-width: 300px;
    }
}

/* Tablet - Orta boyut */
@media (min-width: 769px) and (max-width: 992px) {
    .liveblog-news-image {
        max-width: 350px;
    }
}

/* Mobile - Küçük boyut */
@media (max-width: 768px) {
    .liveblog-news-image {
        max-width: 100%;
        width: 100%;
    }
}

/* Liveblog Archive Header */
.liveblog-archive-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px 20px;
    text-align: center;
    margin-bottom: 40px;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.liveblog-archive-title {
    color: #ffffff;
    font-size: 2.5em;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .liveblog-archive-header {
        padding: 40px 15px;
    }
    
    .liveblog-archive-title {
        font-size: 1.8em;
    }
}

.liveblog-archive-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
