/* Single Post Premium Styles */

.single-section {
    margin-bottom: 40px;
}

.single-post {
    padding: 0;
}

.single-post__header {
    margin-bottom: 25px;
    border-bottom: 2px solid var(--border);
    padding-bottom: 10px;
}

.single-post__category {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 4px;
    text-decoration: none;
    margin-bottom: 15px;
    letter-spacing: 0.05em;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--accent);
    line-height: 1.3;
    margin-bottom: 20px;
    font-weight: 700;
}

.single-post__title {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 15px;
    color: var(--text);
    /* Orijinal koyu renk */
    letter-spacing: -0.02em;
}

.single-post__excerpt {
    font-size: 17px;
    line-height: 1.5;
    color: var(--muted);
    margin-bottom: 25px;
    font-weight: 400;
    border-left: 3px solid var(--accent);
    padding-left: 15px;
}

.single-post__meta {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.meta-value {
    font-size: 11px;
    font-weight: 500;
    color: var(--muted);
    margin: 0 !important;
}

.single-post__google-news {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 50px;
    color: var(--text);
    text-decoration: none;
    font-size: 10px;
    font-weight: 700;
    transition: all 0.2s ease;
    margin-left: auto !important;
    /* En sağa itme garantili */
    white-space: nowrap;
}

.gn-icon {
    width: 14px;
    height: 14px;
    display: block;
}

.single-post__google-news:hover {
    border-color: var(--accent);
    background: var(--card);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.meta-cats a {
    color: var(--muted);
    text-decoration: none;
    font-weight: 300;
}

.meta-cats a:hover {
    color: var(--accent);
}

.meta-separator {
    color: var(--border);
    margin: 0 2px;
}

.single-post__author,
.single-post__date,
.single-post__comments {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text);
}

.meta-label {
    text-transform: uppercase;
    font-size: 10px;
    font-weight: 800;
    color: var(--muted);
    letter-spacing: 0.05em;
}

.meta-value {
    font-weight: 700;
}

.meta-value a {
    text-decoration: none;
    color: var(--accent);
}

.single-post__featured-image,
.single-post__video-wrapper {
    margin: 20px 0 10px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.single-post__video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 */
    height: 0;
    background: #000;
}

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

.single-post__featured-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

/* Post Content Typography */
.single-post__content {
    font-size: 18px;
    line-height: 1.5;
    color: var(--text);
}

/* Responsive Table Styling */
.wp-block-table,
.single-post__content table {
    width: 100%;
    margin: 30px 0;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    overflow-x: auto;
    display: block;
    /* Mobilde kaydırma için gerekli */
}

.wp-block-table table {
    width: 100%;
    min-width: 600px;
    /* Mobilde sıkışmayı önlemek için minimum genişlik */
    border: none;
    margin: 0;
}

.wp-block-table th,
.wp-block-table td,
.single-post__content th,
.single-post__content td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 15px;
}

.wp-block-table thead th,
.single-post__content thead th {
    background: var(--card);
    color: var(--text);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.05em;
}

.wp-block-table tr:last-child td,
.single-post__content tr:last-child td {
    border-bottom: none;
}

.wp-block-table tr:nth-child(even) {
    background: rgba(var(--accent-rgb), 0.02);
}

.wp-block-table tr:hover td {
    background: rgba(var(--accent-rgb), 0.04);
}

.single-post__content p {
    margin-bottom: 25px;
    font-weight: 300;
}

.single-post__content h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 20px 0 10px;
    line-height: 1.3;
    color: #5e9b19;
    /* Vurgu renginin koyu tonu */
}

.single-post__content h3 {
    font-size: clamp(1.3rem, 2vw, 1.5rem);
    font-weight: 800;
    margin: 35px 0 15px;
}

.single-post__content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.single-post__content a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 600;
}

.single-post__content blockquote {
    margin: 35px 0;
    padding: 25px 35px;
    background: var(--bg);
    border-left: 6px solid var(--accent);
    font-style: italic;
    font-size: 1.15rem;
    border-radius: 4px;
    color: var(--muted);
}

/* WP Block Details Styling */
.wp-block-details {
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--bg);
    margin-bottom: 25px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.wp-block-details summary {
    padding: 10px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
    /* Standart oku gizle */
    display: flex;
    align-items: center;
    position: relative;
    color: var(--text);
    background: var(--card);
}

/* Custom arrow for summary */
.wp-block-details summary::after {
    content: '+';
    margin-left: auto;
    font-size: 20px;
    color: var(--accent);
    transition: transform 0.3s ease;
}

.wp-block-details[open] summary::after {
    content: '−';
    transform: rotate(180deg);
}

.wp-block-details p {
    padding: 20px;
    color: var(--text);
    margin-bottom: 0 !important;
    font-size: 16px;
    border-top: 1px solid var(--border);
}

.wp-block-details[open] {
    box-shadow: var(--shadow);
}

/* oEmbed & Wordress Embed Styling */
.wp-block-embed,
.wp-block-embed-wordpress,
.is-type-wp-embed {
    margin: 5px auto;
    max-width: 100%;
}

.wp-block-embed iframe,
.wp-embedded-content {
    border-radius: 12px;
    border: 1px solid var(--border) !important;
    box-shadow: var(--shadow);
    max-width: 100%;
    background: var(--card);
}

/* Ensure internal WP embeds are responsive */
.wp-block-embed.is-type-wp-embed .wp-block-embed__wrapper {
    position: relative;
    width: 100%;
    min-height: 250px;
}

.wp-block-embed-youtube,
.wp-block-embed.is-provider-youtube {
    margin: 20px 0 10px;
}

.wp-block-embed-youtube .wp-block-embed__wrapper,
.wp-block-embed.is-provider-youtube .wp-block-embed__wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.wp-block-embed-youtube iframe,
.wp-block-embed.is-provider-youtube iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    border: 0;
}

/* Tags */
.single-post__footer {
    margin-top: 50px;
    padding-top: 25px;
    border-top: 1px solid var(--border);
}

/* Infinity Scroll Separator & Loader */
.post-separator {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: 40px 0;
}

.post-separator::before {
    content: '';
    position: absolute;
    width: 60px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
    opacity: 0.3;
}

.tp-loader {
    text-align: center;
    padding: 40px 0;
    font-size: 14px;
    color: var(--muted);
    font-weight: 600;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.loader-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid var(--border);
    border-top: 3px solid var(--accent);
    border-radius: 50%;
    animation: tp-spin 1s linear infinite;
}

@keyframes tp-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.no-more-posts {
    padding: 30px;
    background: var(--card);
    border-radius: 8px;
    font-weight: 700;
    color: var(--muted);
}

.single-post__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* --- MODERN COMMENTS SYSTEM --- */
.comments-area {
    margin-top: 20px;
    padding-top: 10px;
}

.comments-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin-bottom: 40px;
}

.comment-list .comment {
    margin-bottom: 12px;
}

.comment-list .comment-body {
    display: flex;
    gap: 12px;
    padding: 0;
}

.comment-avatar img {
    border-radius: 50% !important;
    width: 32px !important;
    height: 32px !important;
    border: none;
    box-shadow: none;
}

.comment-content-wrapper {
    flex: 1;
    background: #f8f9fa;
    padding: 8px 12px;
    border-radius: 4px 18px 18px 18px;
    border: 1px solid var(--border);
    max-width: 95%;
}

.children .comment-content-wrapper {
    background: rgba(var(--accent-rgb), 0.04);
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 2px;
}

.comment-author-name {
    font-size: 13px;
    font-weight: 700;
}

.comment-reply-to {
    color: var(--accent);
    font-weight: 700;
    font-size: 10px;
    margin-right: 5px;
}

.comment-date {
    font-size: 10px;
    color: var(--muted);
}

.comment-reply {
    margin: 0;
    margin-left: auto;
}

.comment-reply a {
    font-size: 10px;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
    text-transform: uppercase;
}

.comment-text {
    font-size: 13.5px;
    line-height: 1.4;
    color: var(--text);
}

/* Yanıt Hiyerarşisi */
.comment-list .children {
    list-style: none;
    padding-left: 44px;
    margin-top: 8px;
}

@media (max-width: 600px) {
    .comment-list .children {
        padding-left: 15px;
    }

    .comment-content-wrapper {
        max-width: 100%;
    }
}

/* NO COMMENTS BAR (ULTRA SLIM STYLE) */
.no-comments-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    border: 1px solid var(--border);
    padding: 6px 15px;
    /* Çok ince dikey pay */
    border-radius: 6px;
    margin-bottom: 20px;
}

.no-comments-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.no-comments-icon-small {
    color: var(--accent);
    font-size: 16px;
    display: flex;
    align-items: center;
}

.no-comments-text {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text);
}

.tp-btn-accent {
    background: var(--accent);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 14px;
    /* Kompakt buton */
    border-radius: 4px;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.tp-btn-accent:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.tp-btn-accent i {
    font-size: 10px;
    opacity: 0.8;
}

@media (max-width: 600px) {
    .no-comments-bar {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* COMMENT FORM STYLING */
#tp-comment-form-container {
    background: var(--card);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid var(--border);
    animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.comment-form-field {
    margin-bottom: 20px;
}

.comment-fields-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
    margin-bottom: 10px;
}

.comment-form-cookies {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
    font-size: 13px;
    color: var(--muted);
}

.comment-form-cookies input {
    width: 16px;
    height: 16px;
    accent-color: var(--accent);
}

@media (max-width: 900px) {
    .comment-fields-grid {
        grid-template-columns: 1fr;
    }
}

.comment-form-field input,
.comment-form-field textarea {
    width: 100%;
    padding: 15px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 14px;
    transition: all 0.2s ease;
}

.comment-form-field input:focus,
.comment-form-field textarea:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.1);
}

.tp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-size: 14px;
}

.tp-btn-primary {
    background: var(--accent);
    color: #fff;
}

.tp-btn-primary:hover {
    background: var(--accent-hover, var(--accent));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(var(--accent-rgb), 0.3);
}

.tp-btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
}

.tp-btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.single-post__content {
    margin-bottom: 10px;
}

.single-post__footer {
    padding: 0;
    margin-bottom: 20px;
    border: none;
    /* Çizgi kaldırıldı */
}

.single-post__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 0;
}

.tag-link {
    font-size: 13px;
    color: var(--muted);
    background: #f1f3f5;
    padding: 4px 12px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.tag-link:hover {
    background: var(--accent);
    color: #fff;
}

.post-separator {
    height: 1px;
    background: var(--border);
    margin: 40px 0;
}

/* Page Links (Pagination within Post) */
.page-links {
    margin: 30px 0;
    font-weight: 800;
    font-size: 14px;
    text-transform: uppercase;
}

/* Responsive */
@media (max-width: 1024px) {
    .single-post__content {
        font-size: 17px;
    }
}

@media (max-width: 768px) {
    .single-post__header {
        margin-bottom: 25px;
    }

    .single-post__meta {
        gap: 15px;
    }
}