/* ========== SINGLE POST / HABER DETAY - Modern Tasarım v2 ========== */

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-light);
    padding: 15px 0 10px;
    flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-light); font-weight: 500; }
.breadcrumb a:hover { color: var(--primary-color); }
.breadcrumb .separator { color: #ccc; font-size: 10px; }
.breadcrumb .current { color: var(--text-color); font-weight: 600; }

/* ===== ARTICLE HEADER V3 ===== */
.article-header-v3 {
    padding: 0 0 5px;
}

/* ===== ARTICLE FIGURE (Inside Content) ===== */
.article-figure {
    margin: 0 0 24px;
    border-radius: 10px;
    overflow: hidden;
    background: #f0f0f0;
}

.article-main-img {
    width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: contain;
    display: block;
    background: #f0f0f0;
}

.article-figure figcaption {
    font-size: 12px;
    color: var(--text-light);
    padding: 8px 14px;
    font-style: italic;
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f8f9fa;
    border-top: 1px solid #eee;
}

.article-figure figcaption i { font-size: 11px; }

/* Video */
.article-video { margin-bottom: 24px; border-radius: 10px; overflow: hidden; }
.video-responsive {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}
.video-responsive iframe,
.video-responsive embed {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
}

.article-category-badge {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
    border-radius: 3px;
}

.article-title {
    font-size: 30px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 12px;
    color: var(--secondary-color);
}

.article-subtitle {
    font-size: 17px;
    line-height: 1.65;
    color: #555;
    font-weight: 400;
    margin-bottom: 0;
}

/* ===== META BAR ===== */
.article-meta-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    margin: 10px 0 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    gap: 12px;
}

.article-meta-bar__left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.article-meta-bar__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
    flex-shrink: 0;
}

.article-meta-bar__name {
    font-size: 14px;
    font-weight: 700;
    color: var(--secondary-color);
    display: block;
}

.article-meta-bar__info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.article-meta-bar__info span {
    font-size: 12px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.article-meta-bar__info span i { font-size: 12px; }

.update-badge {
    background: #fff3cd;
    color: #856404;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 3px;
}

.article-meta-bar__right {
    display: flex;
    align-items: center;
}

.article-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
}

/* Print Button */
.print-btn {
    width: 34px;
    height: 34px;
    border: 1px solid var(--border-color);
    background: #fff;
    color: var(--text-light);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: all 0.2s;
    border-radius: 4px;
    font-family: var(--font-main);
    white-space: nowrap;
}

.print-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.article-bottom-share .print-btn {
    width: auto;
    padding: 0 14px;
    height: 34px;
    font-size: 13px;
    font-weight: 600;
    margin-left: auto;
}

/* Print Styles */
@media print {
    .header-1, .header-2, .header-3,
    .breaking-bar, .mobile-sidebar, .mobile-overlay,
    .single-sidebar, .share-icons, .font-size-toggle,
    .print-btn, .article-actions, .article-bottom-share,
    .related-bottom, .comments-section, .article-tags,
    .breadcrumb, footer, .stories-section,
    .sidebar-widget, .ad-container,
    .article-meta-bar__right { display: none !important; }

    .single-layout { grid-template-columns: 1fr !important; }
    .article-main-img { max-height: none !important; }
    .article-content { font-size: 14px !important; }
    .article-title { font-size: 24px !important; }
    body { background: #fff !important; }
    .container { max-width: 100% !important; padding: 0 !important; }
}

/* Share Buttons */
.share-icons {
    display: flex;
    gap: 8px;
}

.share-icons--inline { gap: 6px; }

.share-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    transition: transform 0.2s, opacity 0.2s;
}
.share-btn:hover { transform: scale(1.12); color: #fff; opacity: 0.85; }
.share-btn--facebook { background: #1877f2; }
.share-btn--twitter { background: #000; }
.share-btn--linkedin { background: #0077b5; }
.share-btn--whatsapp { background: #25d366; }

/* Font Size Toggle */
.font-size-toggle {
    display: flex;
    gap: 4px;
}

.font-btn {
    width: 34px;
    height: 34px;
    border: 1px solid var(--border-color);
    background: #fff;
    color: var(--text-color);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-family: var(--font-main);
    border-radius: 4px;
}

.font-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.font-btn.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* ===== TWO COLUMN LAYOUT ===== */
.single-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 30px;
    padding: 10px 0 40px;
}

/* ===== ARTICLE CONTENT ===== */
.article-content {
    font-size: 17px;
    line-height: 1.85;
    color: var(--text-color);
    transition: font-size 0.2s ease;
}

.article-content p { margin-bottom: 20px; }
.article-content h2 { font-size: 24px; margin: 30px 0 15px; font-weight: 700; }
.article-content h3 { font-size: 20px; margin: 25px 0 12px; font-weight: 700; }
.article-content img { max-width: 100%; height: auto; margin: 20px 0; border-radius: 6px; }

.article-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 18px 24px;
    margin: 25px 0;
    background: #f8f9fa;
    font-style: italic;
    font-size: 18px;
    color: #444;
    border-radius: 0 8px 8px 0;
}

.article-content ul, .article-content ol {
    margin: 15px 0;
    padding-left: 25px;
}
.article-content li { margin-bottom: 8px; }

.article-content a { color: var(--primary-color); text-decoration: underline; }
.article-content a:hover { text-decoration: none; }

/* Font Size Classes */
.article-content.font-small { font-size: 15px; }
.article-content.font-large { font-size: 19px; }
.article-content.font-xlarge { font-size: 21px; }

/* Tags */
.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 25px 0;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    align-items: center;
}
.tags-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-color);
    margin-right: 5px;
}
.tags-label i { color: var(--primary-color); }
.article-tags a {
    display: inline-block;
    padding: 5px 14px;
    background: #f0f0f0;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-color);
    transition: all 0.2s;
    text-decoration: none;
    border-radius: 4px;
}
.article-tags a:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Bottom Share */
.article-bottom-share {
    margin: 20px 0;
    padding: 18px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.article-bottom-share__label {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-color);
}

/* ===== RELATED BOTTOM (Horizontal Cards) ===== */
.related-bottom {
    margin: 30px 0;
    padding: 25px 0 0;
    border-top: 1px solid var(--border-color);
}

.related-bottom__title {
    font-size: 18px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--primary-color);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-color);
}

.related-bottom__title i {
    color: var(--primary-color);
}

.related-bottom__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.related-bottom__card {
    display: block;
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 8px rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
}

.related-bottom__card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.related-bottom__image {
    width: 100%;
    height: 140px;
    overflow: hidden;
}

.related-bottom__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.related-bottom__card:hover .related-bottom__image img {
    transform: scale(1.06);
}

.related-bottom__placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.5);
    font-size: 28px;
}

.related-bottom__info {
    padding: 12px 14px;
}

.related-bottom__cat {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    margin-bottom: 5px;
}

.related-bottom__info h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-color);
    line-height: 1.35;
    margin: 0 0 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-bottom__date {
    font-size: 11px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ===== SIDEBAR ===== */
.single-sidebar { position: relative; }

.sidebar-widget {
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.sidebar-widget--sticky {
    position: sticky;
    top: 80px;
}

.sidebar-widget__title {
    font-size: 15px;
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--primary-color);
    display: inline-block;
    text-transform: uppercase;
}

/* Sidebar: Most Read */
.sidebar-most-read {
    background: var(--white);
    border: 1px solid var(--border-color);
}

.sidebar-most-read__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-most-read__list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.sidebar-most-read__list li:last-child { border-bottom: none; }

.sidebar-most-read__num {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    border-radius: 50%;
}

.sidebar-most-read__list li a {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-color);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sidebar-most-read__list li a:hover {
    color: var(--primary-color);
}

/* Related News Sidebar */
.related-news-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.related-news-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding-bottom: 12px;
    border-bottom: 1px solid #e8e8e8;
}
.related-news-item:last-child { border-bottom: none; padding-bottom: 0; }

.related-news-item__time {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary-color);
    flex-shrink: 0;
    min-width: 40px;
}

.related-news-item__title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.related-news-item__title a:hover { color: var(--primary-color); }

/* ===== COMMENTS ===== */
.comments-section {
    margin-top: 35px;
    padding-top: 25px;
    border-top: 1px solid var(--border-color);
}

.comments-section__title {
    font-size: 20px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--primary-color);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.comments-section__title i {
    color: var(--primary-color);
}

.comment-count {
    font-weight: 400;
    font-size: 16px;
    color: var(--text-light);
}

/* Comment List */
.comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 25px;
}

.comment-list .children {
    list-style: none;
    padding-left: 40px;
    margin: 0;
}

.comment-item { margin-bottom: 0; }

.comment-item > .comment-body {
    display: flex;
    gap: 14px;
    padding: 18px 0;
    border-bottom: 1px solid #f0f0f0;
}

.comment-avatar img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    flex-shrink: 0;
}

.comment-content {
    flex: 1;
    min-width: 0;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.comment-author-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-color);
}

.comment-author-name a { color: var(--text-color); text-decoration: none; }
.comment-author-name a:hover { color: var(--primary-color); }

.author-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--primary-color);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 6px;
}

.comment-date {
    font-size: 12px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 4px;
}

.comment-moderation {
    background: #fff3cd;
    color: #856404;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.comment-text {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 8px;
}

.comment-text p { margin: 0; }

.comment-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.comment-like-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: 1px solid var(--border-color);
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 13px;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-main);
}

.comment-like-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.comment-like-btn.liked {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: #ffeaea;
}

.comment-like-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.comment-reply { font-size: 13px; }
.comment-reply a { color: var(--text-light); font-weight: 600; text-decoration: none; }
.comment-reply a:hover { color: var(--primary-color); }

/* Comment Form */
.comment-form-wrapper {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.comment-form-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.comment-user-avatar { width: 40px; height: 40px; border-radius: 50%; }
.comment-user-name { font-size: 14px; font-weight: 700; color: var(--text-color); }

.comment-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    outline: none;
    font-size: 15px;
    font-family: var(--font-main);
    resize: vertical;
    min-height: 80px;
    transition: border-color 0.2s;
    background: #fff;
}

.comment-form textarea:focus { border-color: var(--primary-color); }

.comment-form__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    gap: 12px;
    flex-wrap: wrap;
}

.comment-form__rules {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-light);
}

.comment-form__rules input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary-color);
}

.comment-form__rules a { color: var(--primary-color); font-weight: 600; }

.comment-submit-btn {
    background: var(--primary-color);
    color: #fff;
    padding: 10px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font-main);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s;
}

.comment-submit-btn:hover { background: var(--secondary-color); }

/* Login Prompt */
.comment-login-prompt {
    text-align: center;
    padding: 30px 20px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 20px;
}

.comment-login-prompt i { font-size: 28px; color: var(--text-light); margin-bottom: 10px; display: block; }
.comment-login-prompt p { font-size: 15px; color: var(--text-light); margin: 0; }
.comment-login-prompt a { color: var(--primary-color); font-weight: 700; }

/* No Comments */
.no-comments {
    text-align: center;
    padding: 30px 20px;
    color: var(--text-light);
    font-size: 15px;
}

.no-comments-box {
    text-align: center;
    padding: 30px 20px;
    color: var(--text-light);
}

.no-comments-box i { font-size: 36px; margin-bottom: 10px; display: block; color: #ccc; }
.no-comments-box p { font-size: 15px; margin: 0; line-height: 1.6; }

/* Comment Navigation */
.comment-navigation {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-top: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.comment-navigation a {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 13px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .single-layout { grid-template-columns: 1fr 280px; gap: 25px; }
    .article-title { font-size: 26px; }
    .related-bottom__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .single-layout { grid-template-columns: 1fr; gap: 30px; }

    .article-title { font-size: 22px; }
    .article-subtitle { font-size: 15px; }

    .article-meta-bar { flex-direction: column; align-items: flex-start; }
    .article-meta-bar__right { width: 100%; }
    .article-actions { width: 100%; justify-content: space-between; }

    .article-main-img { max-height: 360px; }

    .article-content { font-size: 16px; }

    .related-bottom__grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .related-bottom__image { height: 120px; }

    .comment-list .children { padding-left: 20px; }
}

@media (max-width: 480px) {
    .article-title { font-size: 20px; }
    .article-subtitle { font-size: 14px; }
    .article-content { font-size: 15px; }

    .article-meta-bar__info { gap: 8px; }
    .article-meta-bar__info span { font-size: 11px; }

    .article-figure { border-radius: 0; margin-left: -16px; margin-right: -16px; }

    .related-bottom__grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .related-bottom__image { height: 100px; }
    .related-bottom__info h4 { font-size: 13px; }

    .share-btn { width: 32px; height: 32px; font-size: 13px; }

    .sidebar-widget { padding: 16px; }
}
