/* Single Post Layout - TeknoBoyut */

/* Container */
.tb-single-container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
    overflow-x: hidden;
    box-sizing: border-box;
}

.site-main {
    max-width: 100%;
    margin: 0 auto;
    padding: 1.5rem 0 2rem;
    overflow-x: hidden;
}

/* Content + Sidebar Grid */
.tb-content-sidebar-wrapper {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 2.5rem;
    align-items: start;
}

.tb-content-area {
    width: 100%;
    min-width: 0;
}

/* Sidebar */
.tb-sidebar,
.tb-content-sidebar-wrapper .tb-blog-sidebar {
    width: 280px;
    min-width: 280px;
}

/* Sidebar Widget Styling */
.tb-sidebar .widget {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #f0f0f0;
    overflow: hidden;
}

.tb-sidebar .widget:last-child {
    margin-bottom: 0;
}

.tb-sidebar .widget-title,
.tb-sidebar .widget h2,
.tb-sidebar .widget h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 1rem;
    padding-bottom: 0.65rem;
    border-bottom: 2px solid #eef2ff;
    position: relative;
    line-height: 1.3;
}

.tb-sidebar .widget-title::after,
.tb-sidebar .widget h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 40px;
    height: 2px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
}

/* Sidebar Lists */
.tb-sidebar .widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tb-sidebar .widget ul li {
    margin-bottom: 0;
}

.tb-sidebar .widget ul li a {
    display: block;
    padding: 0.5rem 0.65rem;
    color: #4b5563;
    text-decoration: none;
    font-size: 0.875rem;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s, transform 0.2s;
}

.tb-sidebar .widget ul li a:hover {
    background: #eef2ff;
    color: #4f46e5;
    transform: translateX(3px);
}

/* Sidebar Images */
.tb-sidebar .widget img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Sidebar Tag Cloud */
.tb-sidebar .tagcloud a,
.tb-sidebar .widget .tag-cloud-link {
    display: inline-block;
    padding: 0.3rem 0.7rem;
    margin: 0 0.25rem 0.4rem 0;
    background: #f3f4f6;
    color: #4b5563;
    font-size: 0.8rem !important;
    border-radius: 20px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.tb-sidebar .tagcloud a:hover,
.tb-sidebar .widget .tag-cloud-link:hover {
    background: #eef2ff;
    color: #4f46e5;
}

/* Sidebar Search Widget */
.tb-sidebar .widget .search-form {
    display: flex;
}

.tb-sidebar .widget .search-form .search-field {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 6px 0 0 6px;
    font-size: 0.875rem;
    outline: 2px solid transparent;
    min-width: 0;
}

.tb-sidebar .widget .search-form .search-field:focus {
    border-color: #a5b4fc;
    box-shadow: 0 0 0 2px rgba(79,70,229,0.1);
}

.tb-sidebar .widget .search-form .search-submit {
    padding: 0.5rem 0.75rem;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff;
    border: none;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
    font-size: 0.875rem;
    transition: opacity 0.2s;
}

.tb-sidebar .widget .search-form .search-submit:hover {
    opacity: 0.9;
}

/* Sidebar Calendar Widget */
.tb-sidebar .widget table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
}

.tb-sidebar .widget table th,
.tb-sidebar .widget table td {
    padding: 0.35rem;
    text-align: center;
}

.tb-sidebar .widget table th {
    font-weight: 600;
    color: #4f46e5;
}

/* Sidebar Recent Posts / Recent Comments */
.tb-sidebar .widget .wp-block-latest-posts li,
.tb-sidebar .widget .wp-block-latest-comments li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.tb-sidebar .widget .wp-block-latest-posts li:last-child,
.tb-sidebar .widget .wp-block-latest-comments li:last-child {
    border-bottom: none;
}

/* Sidebar Text Widget */
.tb-sidebar .widget .textwidget {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #4b5563;
}

.tb-sidebar .widget .textwidget p:last-child {
    margin-bottom: 0;
}

/* ==================== */
/*     BREADCRUMB       */
/* ==================== */
.tb-single-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.3rem;
    padding: 0.75rem 0;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: #9ca3af;
}

.tb-single-breadcrumb a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s;
}

.tb-single-breadcrumb a:hover {
    color: #4f46e5;
}

.tb-bc-sep {
    color: #d1d5db;
    margin: 0 0.15rem;
}

.tb-bc-current {
    color: #4f46e5;
    font-weight: 500;
}

/* ==================== */
/*    ENTRY HEADER      */
/* ==================== */
.entry-header {
    margin-bottom: 1.5rem;
    text-align: left !important;
}

.entry-title {
    font-size: 2.25rem;
    color: #1f2937;
    margin: 0 0 1rem;
    line-height: 1.3;
    font-weight: 700;
    text-align: left;
}

/* Post Meta */
.tb-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    padding: 0.75rem 0;
    border-top: 1px solid #f3f4f6;
    border-bottom: 1px solid #f3f4f6;
    margin-bottom: 0.5rem;
    justify-content: flex-start !important;
    text-align: left !important;
}

.tb-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: #6b7280;
}

.tb-meta-item i {
    color: #a5b4fc;
    font-size: 0.85rem;
}

.tb-meta-item a {
    color: #4f46e5;
    text-decoration: none;
}

.tb-meta-item a:hover {
    color: #7c3aed;
}

/* ==================== */
/*     THUMBNAIL        */
/* ==================== */
.post-thumbnail {
    margin-bottom: 2rem;
    border-radius: 12px;
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

/* ==================== */
/*    ENTRY CONTENT     */
/* ==================== */
.entry-content {
    font-size: 1.05rem;
    line-height: 1.85;
    color: #374151;
}

.entry-content p {
    margin-bottom: 1.5rem;
}

.entry-content h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1f2937;
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #eef2ff;
}

.entry-content h3 {
    font-size: 1.35rem;
    font-weight: 600;
    color: #1f2937;
    margin: 1.75rem 0 0.75rem;
}

.entry-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #374151;
    margin: 1.25rem 0 0.5rem;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 1.5rem 0;
}

.entry-content ul,
.entry-content ol {
    margin: 1rem 0 1.5rem 1.5rem;
}

.entry-content li {
    margin-bottom: 0.5rem;
}

.entry-content blockquote {
    border-left: 4px solid #4f46e5;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: #f8f7ff;
    border-radius: 0 8px 8px 0;
    color: #4b5563;
    font-style: italic;
}

.entry-content a {
    color: #4f46e5;
    text-decoration: underline;
    text-decoration-color: #c7d2fe;
    text-underline-offset: 3px;
    transition: text-decoration-color 0.2s;
}

.entry-content a:hover {
    text-decoration-color: #4f46e5;
}

/* İçerik taşma önleme */
.entry-content {
    overflow-wrap: break-word;
    word-break: break-word;
}

.entry-content table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.entry-content pre {
    max-width: 100%;
    overflow-x: auto;
}

.entry-content iframe,
.entry-content video,
.entry-content embed,
.entry-content object {
    max-width: 100%;
    height: auto;
}

.entry-content .wp-block-image,
.entry-content figure {
    max-width: 100%;
    height: auto;
}

/* ==================== */
/*       TAGS           */
/* ==================== */
.tb-post-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    padding: 1.25rem 0;
    margin-top: 2rem;
    border-top: 1px solid #f3f4f6;
}

.tb-post-tags > i {
    color: #a5b4fc;
    font-size: 0.9rem;
}

.tb-tag {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    background: #eef2ff;
    color: #4f46e5;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s;
}

.tb-tag:hover {
    background: #e0e7ff;
}

.tb-tag:visited {
    color: #4f46e5 !important;
}

/* ==================== */
/*    POST NAVIGATION   */
/* ==================== */
.tb-post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 2.5rem 0;
    padding: 1.5rem 0;
    border-top: 1px solid #f3f4f6;
    border-bottom: 1px solid #f3f4f6;
}

.tb-nav-prev,
.tb-nav-next {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 1rem 1.25rem;
    border-radius: 10px;
    background: #f9fafb;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
}

.tb-nav-prev:hover,
.tb-nav-next:hover {
    background: #eef2ff;
    transform: translateY(-2px);
}

.tb-nav-next {
    text-align: right;
}

.tb-nav-label {
    font-size: 0.8rem;
    color: #9ca3af;
    font-weight: 500;
}

.tb-nav-label i {
    font-size: 0.7rem;
}

.tb-nav-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.4;
}

.tb-nav-prev:visited .tb-nav-title,
.tb-nav-next:visited .tb-nav-title {
    color: #1f2937 !important;
}

.tb-nav-prev:visited .tb-nav-label,
.tb-nav-next:visited .tb-nav-label {
    color: #9ca3af !important;
}

/* ==================== */
/*   RELATED POSTS      */
/* ==================== */
.tb-related-posts {
    margin: 2rem 0;
}

.tb-related-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #eef2ff;
}

.tb-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.tb-related-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #f0f0f0;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.tb-related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(79,70,229,0.08);
}

.tb-related-thumb {
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.tb-related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.tb-related-card:hover .tb-related-thumb img {
    transform: scale(1.05);
}

.tb-related-thumb .tb-placeholder-thumb {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #eef2ff, #e0e7ff);
    color: #a5b4fc;
    font-size: 1.5rem;
}

.tb-related-info {
    padding: 0.85rem 1rem;
}

.tb-related-date {
    font-size: 0.75rem;
    color: #9ca3af;
}

.tb-related-info h4 {
    margin: 0.3rem 0 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tb-related-card:visited h4 {
    color: #1f2937 !important;
}

/* ==================== */
/*     RESPONSIVE       */
/* ==================== */
@media (max-width: 1024px) {
    .tb-content-sidebar-wrapper {
        grid-template-columns: 1fr 280px;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .tb-single-container {
        padding: 0 15px !important;
    }

    .tb-content-sidebar-wrapper {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .tb-content-area {
        max-width: 100%;
        overflow-x: hidden;
    }

    .tb-sidebar,
    .tb-content-sidebar-wrapper .tb-blog-sidebar {
        position: static;
        order: 2;
        width: 100%;
        min-width: 0;
    }

    .entry-title {
        font-size: 1.5rem;
    }

    .tb-post-meta {
        gap: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }

    .tb-post-nav {
        grid-template-columns: 1fr;
    }

    .tb-related-grid {
        grid-template-columns: 1fr;
    }

    .entry-content {
        font-size: 1rem;
    }

    .entry-content h2 {
        font-size: 1.25rem;
    }

    .entry-content h3 {
        font-size: 1.1rem;
    }

    .entry-content blockquote {
        padding: 0.75rem 1rem;
        margin: 1rem 0;
    }

    .entry-content ul,
    .entry-content ol {
        margin-left: 1rem;
    }

    .post-thumbnail {
        margin: 0 -15px 1.5rem;
        border-radius: 0;
    }

    .tb-single-breadcrumb {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .tb-single-container {
        padding: 0 12px !important;
    }

    .entry-title {
        font-size: 1.3rem;
    }

    .tb-post-meta {
        flex-direction: column;
        gap: 0.4rem;
    }

    .tb-post-tags {
        gap: 0.35rem;
    }

    .tb-tag {
        font-size: 0.75rem;
        padding: 0.25rem 0.6rem;
    }
}

/* Override any centering on single post page */
body.single-post .entry-header,
body.single-post .entry-header *,
body.single-post .tb-post-meta,
body.single-post .entry-title {
    text-align: left !important;
}
body.single-post .tb-post-meta {
    justify-content: flex-start !important;
}
