/* News Detail Styles */

.news-detail-layout {
    display: flex;
    gap: 40px;
    margin: 30px 0;
}

.news-detail-main {
    flex: 3;
    min-width: 0;
}

.news-detail-sidebar {
    flex: 1;
    min-width: 280px;
}

/* Article */
.news-article {
    background: var(--bg-card);
    border-radius: 28px;
    padding: 30px;
    border: 1px solid var(--border-light);
}

.article-title {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 20px;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-light);
}

.meta-left {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.meta-item {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.category-badge {
    padding: 4px 14px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
}

.category-badge.sinema { background: #e50914; }
.category-badge.dizi { background: #0078ff; }
.category-badge.platform { background: #00a86b; }
.category-badge.oyuncu { background: #9b59b6; }
.category-badge.roportaj { background: #f39c12; }
.category-badge.fragman { background: #e67e22; }

.article-featured-image {
    margin: 25px 0;
    border-radius: 20px;
    overflow: hidden;
}

.article-featured-image img {
    width: 100%;
    border-radius: 20px;
}

/* İçerik stilleri */
.article-content {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.article-content p {
    margin-bottom: 1.2em;
}

.article-content h2 {
    font-size: 1.6rem;
    margin: 1.5em 0 0.8em;
    color: var(--text-primary);
}

.article-content h3 {
    font-size: 1.4rem;
    margin: 1.3em 0 0.6em;
    color: var(--text-primary);
}

.article-content h4 {
    font-size: 1.2rem;
    margin: 1.2em 0 0.5em;
    color: var(--text-primary);
}

.article-content ul, .article-content ol {
    margin: 1em 0;
    padding-left: 1.8em;
}

.article-content li {
    margin-bottom: 0.4em;
}

.article-content a {
    color: var(--accent);
    text-decoration: underline;
}

.article-content a:hover {
    text-decoration: none;
}

.article-content blockquote {
    margin: 1.5em 0;
    padding: 1em 1.5em;
    background: var(--bg-episode);
    border-left: 4px solid var(--accent);
    border-radius: 12px;
    font-style: italic;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    margin: 1em 0;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
}

.article-content th, .article-content td {
    border: 1px solid var(--border-light);
    padding: 10px;
    text-align: left;
}

.article-content th {
    background: var(--bg-episode);
    font-weight: 700;
}

.article-content pre, .article-content code {
    background: var(--bg-episode);
    padding: 0.2em 0.4em;
    border-radius: 6px;
    font-family: monospace;
    font-size: 0.9em;
}

.article-content pre {
    padding: 1em;
    overflow-x: auto;
}

/* Etiketler */
.article-tags {
    margin: 30px 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background: var(--bg-episode);
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 0.75rem;
    color: var(--accent);
    text-decoration: none;
    transition: 0.2s;
}

.tag:hover {
    background: var(--accent);
    color: white;
}

/* Paylaşım */
.article-share {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.share-label {
    font-weight: 600;
    color: var(--text-primary);
}

.share-buttons {
    display: flex;
    gap: 12px;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s;
    border: none;
    background: var(--bg-episode);
    color: var(--text-primary);
}

.share-btn:hover {
    background: var(--accent);
    color: white;
}

/* Navigasyon */
.article-navigation {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin: 30px 0;
}

.nav-prev, .nav-next {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 15px 20px;
    text-decoration: none;
    color: var(--text-primary);
    transition: 0.2s;
    flex: 1;
}

.nav-prev:hover, .nav-next:hover {
    border-color: var(--accent);
    background: var(--bg-episode);
}

.nav-prev span, .nav-next span {
    font-size: 0.7rem;
    color: var(--text-muted);
    display: block;
}

.nav-prev strong, .nav-next strong {
    font-size: 0.9rem;
}

.nav-next {
    text-align: right;
    justify-content: flex-end;
}

/* Benzer Haberler */
.related-news {
    margin: 40px 0;
}

.related-news h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.related-card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.2s;
    border: 1px solid var(--border-light);
}

.related-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
}

.related-card a {
    text-decoration: none;
    color: inherit;
}

.related-image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-title {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 12px 12px 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-meta {
    font-size: 0.7rem;
    color: var(--text-muted);
    padding: 0 12px 12px;
}

/* Yorumlar */
.comments-section {
    margin-top: 40px;
    background: var(--bg-card);
    border-radius: 24px;
    padding: 30px;
    border: 1px solid var(--border-light);
}

.comments-section h3 {
    font-size: 1.4rem;
    margin-bottom: 20px;
}

.comments-count {
    color: var(--accent);
    font-size: 1rem;
}

.comment-form-wrapper {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-light);
}

.comment-form .form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.comment-form .form-group {
    flex: 1;
    margin-bottom: 15px;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    background: var(--input-bg);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 12px 16px;
    color: var(--text-primary);
    font-family: inherit;
}

.comment-form textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-comment {
    background: var(--accent);
    border: none;
    padding: 12px 24px;
    border-radius: 40px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.submit-comment:hover {
    background: var(--accent-hover);
}

.comments-list {
    margin-top: 20px;
}

.comment-item {
    border-bottom: 1px solid var(--border-light);
    padding: 20px 0;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 8px;
}

.comment-author {
    font-weight: 700;
    color: var(--text-primary);
}

.comment-date {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.comment-body {
    color: var(--text-secondary);
    line-height: 1.5;
}

.no-comments {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
}

/* Sidebar Widget */
.sidebar-widget {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 20px;
    border: 1px solid var(--border-light);
    margin-bottom: 30px;
}

.sidebar-widget h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-light);
}

.popular-list {
    list-style: none;
    padding: 0;
}

.popular-list li {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-light);
}

.popular-list li:last-child {
    border-bottom: none;
}

.popular-list a {
    display: flex;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
}

.popular-rank {
    font-weight: 700;
    color: var(--accent);
    min-width: 28px;
}

.popular-title {
    flex: 1;
    font-size: 0.85rem;
    line-height: 1.4;
}

.popular-title:hover {
    color: var(--accent);
}

/* Responsive */
@media (max-width: 992px) {
    .news-detail-layout {
        flex-direction: column;
    }
    .news-detail-sidebar {
        order: -1;
    }
    .related-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

@media (max-width: 768px) {
    .news-article {
        padding: 20px;
    }
    .article-title {
        font-size: 1.5rem;
    }
    .article-meta {
        flex-direction: column;
        align-items: flex-start;
    }
    .article-navigation {
        flex-direction: column;
    }
    .nav-prev, .nav-next {
        justify-content: center;
        text-align: center;
    }
    .comment-form .form-row {
        flex-direction: column;
    }
    .related-grid {
        grid-template-columns: 1fr;
    }
}

/* Alert / Toast Messages */
.alert {
    padding: 12px 20px;
    border-radius: 40px;
    margin-bottom: 20px;
}

.alert-success {
    background: rgba(76, 175, 80, 0.15);
    border: 1px solid #4caf50;
    color: #4caf50;
}

.alert-error, .alert-danger {
    background: rgba(229, 9, 20, 0.15);
    border: 1px solid var(--accent);
    color: var(--accent);
}

.error {
    color: var(--accent);
    font-size: 0.7rem;
    margin-top: 5px;
    display: block;
}

/* Success message */
.success-message {
    background: #4caf50;
    color: white;
    padding: 10px;
    border-radius: 40px;
    margin-top: 10px;
    text-align: center;
    font-size: 0.85rem;
}

.error {
    color: var(--accent);
    font-size: 0.7rem;
    margin-top: 4px;
    display: block;
}

/* comments count */
.comments-count {
    font-size: 1rem;
    color: var(--accent);
}

/* YouTube Videoları (note-video-clip) */
.article-content iframe.note-video-clip,
.note-video-clip {
    max-width: 100%;
    width: auto !important;        /* sabit width=640 geçersiz kılınsın */
    height: auto !important;       /* sabit height=360 geçersiz kılınsın */
    aspect-ratio: 16 / 9;
    border-radius: 20px;
    margin: 1.5em 0;
    border: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Eğer videonun etrafında <p> veya <br> gibi boşluklar varsa */
.article-content iframe.note-video-clip + br,
.article-content br + iframe.note-video-clip {
    display: none; /* gereksiz satır atlamalarını temizler */
}
