/**
 * TextToolz Blog Theme - Blog-Specific Styles
 * Extends main site style.css
 */

/* ========================================
   WordPress Admin Bar Adjustments
   ======================================== */

/* Remove default WordPress admin bar margin */
html {
    margin-top: 0 !important;
}

body.admin-bar {
    margin-top: 0 !important;
}

/* Adjust header position when admin bar is present */
.admin-bar .ttz-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .ttz-header {
        top: 46px;
    }
}

/* Adjust TOC sticky position when admin bar is present */
.admin-bar .ttb-toc--sidebar {
    top: 112px;
}

@media screen and (max-width: 782px) {
    .admin-bar .ttb-toc--sidebar {
        top: 126px;
    }
}

/* ========================================
   Layout & Structure
   ======================================== */

.ttb-main-content {
    padding: 2rem 0;
    min-height: 60vh;
}

.ttb-content-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 992px) {
    .ttb-content-wrapper {
        grid-template-columns: 1fr 300px;
    }
}

/* Single Post Layout with Sidebar */
.ttb-post-with-sidebar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: start;
}

@media (min-width: 992px) {
    .ttb-post-with-sidebar {
        grid-template-columns: 1fr 300px;
        gap: 2rem;
    }
}

@media (min-width: 1200px) {
    .ttb-post-with-sidebar {
        grid-template-columns: 1fr 320px;
        gap: 2.5rem;
    }
}

.ttb-post-main-content {
    min-width: 0; /* Prevents grid blowout */
}

.ttb-single-post-container {
    margin-top: 1rem;
}

.ttb-post__content-wrapper {
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
}

@media (min-width: 768px) {
    .container {
        padding: 0 20px;
    }
}

@media (min-width: 1200px) {
    .container {
        padding: 0 15px;
    }
}

/* ========================================
   Breadcrumb Navigation (Main Site Style)
   ======================================== */

.tool-breadcrumbs {
    padding: 15px 0;
    font-size: 0.9rem;
    color: #777;
}

body.dark-mode .tool-breadcrumbs {
    color: #b0b3b8;
}

.tool-breadcrumbs ul {
    padding: 0;
    margin: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.tool-breadcrumbs li {
    display: inline;
    margin-right: 0.5em;
    white-space: nowrap;
}

.tool-breadcrumbs li a {
    color: #6c63ff;
    text-decoration: none;
    font-weight: 600;
}

body.dark-mode .tool-breadcrumbs li a {
    color: #b4aaff;
}

.tool-breadcrumbs li a:hover {
    text-decoration: underline;
}

.tool-breadcrumbs li:not(:last-child)::after {
    content: '>>';
    margin: 0 0.4em;
    color: #888;
}

body.dark-mode .tool-breadcrumbs li:not(:last-child)::after {
    color: #666;
}

.tool-breadcrumbs li:last-child {
    margin-right: 0;
    color: #555;
}

body.dark-mode .tool-breadcrumbs li:last-child {
    color: #b0b3b8;
}

@media (max-width: 768px) {
    .tool-breadcrumbs {
        padding: 10px 0;
        font-size: 0.8rem;
    }
}

/* ========================================
   Post Container
   ======================================== */

.ttb-post__container {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 3rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

body.dark-mode .ttb-post__container {
    background: #181a1b;
    border-color: #23272a;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

@media (min-width: 768px) {
    .ttb-post__container {
        padding: 2rem;
    }
}

@media (min-width: 992px) {
    .ttb-post__container {
        padding: 2.5rem;
    }
}

/* ========================================
   Post Header
   ======================================== */

.ttb-post__header {
    margin-bottom: 2rem;
}

.ttb-post__featured-image {
    margin: 0 0 1.5rem 0;
    border-radius: 8px;
    overflow: hidden;
}

.ttb-post__featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.ttb-post__title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 1rem 0;
    color: #222;
}

body.dark-mode .ttb-post__title {
    color: #e5e7eb;
}

@media (max-width: 768px) {
    .ttb-post__title {
        font-size: 2rem;
    }
}

/* ========================================
   Post Meta
   ======================================== */

.ttb-post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 1.5rem;
}

body.dark-mode .ttb-post-meta {
    color: #b0b3b8;
}

.ttb-post-meta__author-link {
    color: #5a4fff;
    text-decoration: none;
    font-weight: 600;
}

.ttb-post-meta__author-link:hover {
    color: #3a2fd6;
}

.ttb-post-meta__reading-time {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.ttb-post-meta__categories,
.ttb-post-meta__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.ttb-post-meta__category,
.ttb-post-meta__tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #f5f7ff;
    color: #5a4fff;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: background 0.2s;
}

.ttb-post-meta__category:hover,
.ttb-post-meta__tag:hover {
    background: #e8ecff;
}

body.dark-mode .ttb-post-meta__category,
body.dark-mode .ttb-post-meta__tag {
    background: #23272a;
    color: #b4aaff;
}

body.dark-mode .ttb-post-meta__category:hover,
body.dark-mode .ttb-post-meta__tag:hover {
    background: #2a2e32;
}

/* ========================================
   Table of Contents
   ======================================== */

.ttb-toc {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

body.dark-mode .ttb-toc {
    background: #181a1b;
    border-color: #23272a;
}

.ttb-toc__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.ttb-toc__title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ttb-toc__toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    color: #666;
    transition: transform 0.2s;
}

.ttb-toc__toggle[aria-expanded="false"] i {
    transform: rotate(-90deg);
}

.ttb-toc__nav {
    max-height: 500px;
    overflow-y: auto;
}

.ttb-toc__nav[aria-hidden="true"] {
    display: none;
}

.ttb-toc__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ttb-toc__item {
    margin-bottom: 0.5rem;
}

.ttb-toc__item--indent {
    padding-left: 1rem;
}

.ttb-toc__link {
    color: #555;
    text-decoration: none;
    display: block;
    padding: 0.25rem 0;
    transition: color 0.2s;
    font-size: 0.95rem;
}

.ttb-toc__link:hover,
.ttb-toc__link.active {
    color: #5a4fff;
}

body.dark-mode .ttb-toc__link {
    color: #b0b3b8;
}

body.dark-mode .ttb-toc__link:hover,
body.dark-mode .ttb-toc__link.active {
    color: #b4aaff;
}

.ttb-toc--sidebar {
    position: sticky;
    top: 80px;
}

/* ========================================
   Post Content
   ======================================== */

.ttb-post__content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

body.dark-mode .ttb-post__content {
    color: #e5e7eb;
}

.ttb-post__content p {
    margin-bottom: 1.5rem;
}

.ttb-post__content h2,
.ttb-post__content h3,
.ttb-post__content h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.ttb-post__content h2 {
    font-size: 1.8rem;
}

.ttb-post__content h3 {
    font-size: 1.5rem;
}

.ttb-post__content h4 {
    font-size: 1.3rem;
}

.ttb-post__content ul,
.ttb-post__content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.ttb-post__content li {
    margin-bottom: 0.5rem;
}

.ttb-post__content blockquote {
    border-left: 4px solid #5a4fff;
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #666;
}

body.dark-mode .ttb-post__content blockquote {
    color: #b0b3b8;
    border-color: #b4aaff;
}

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

.ttb-post__content code {
    background: #f5f5f5;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9em;
    font-family: 'Courier New', monospace;
}

body.dark-mode .ttb-post__content code {
    background: #23272a;
    color: #e5e7eb;
}

.ttb-post__content pre {
    background: #f5f5f5;
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
}

body.dark-mode .ttb-post__content pre {
    background: #23272a;
}

.ttb-post__content pre code {
    background: none;
    padding: 0;
}

/* ========================================
   Post Footer
   ======================================== */

.ttb-post__footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

body.dark-mode .ttb-post__footer {
    border-color: #23272a;
}

.ttb-post__taxonomy {
    margin-bottom: 1.5rem;
}

.ttb-post__categories,
.ttb-post__tags {
    margin-bottom: 0.75rem;
}

.ttb-post__categories a,
.ttb-post__tags a {
    color: #5a4fff;
    text-decoration: none;
    margin-right: 0.5rem;
}

.ttb-post__categories a:hover,
.ttb-post__tags a:hover {
    text-decoration: underline;
}

.ttb-social-share {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.ttb-social-share__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #f5f7ff;
    color: #5a4fff;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.2s;
}

.ttb-social-share__link:hover {
    background: #5a4fff;
    color: #fff;
    transform: translateY(-2px);
}

body.dark-mode .ttb-social-share__link {
    background: #23272a;
    color: #b4aaff;
}

body.dark-mode .ttb-social-share__link:hover {
    background: #5a4fff;
    color: #fff;
}

/* ========================================
   Post Navigation
   ======================================== */

.ttb-post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 3rem 0;
    padding: 2rem 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

body.dark-mode .ttb-post-navigation {
    border-color: #23272a;
}

.ttb-post-navigation__prev,
.ttb-post-navigation__next {
    display: flex;
    flex-direction: column;
}

.ttb-post-navigation__next {
    text-align: right;
}

.ttb-post-navigation__label {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ttb-post-navigation__link {
    color: #5a4fff;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.2s;
}

.ttb-post-navigation__link:hover {
    color: #3a2fd6;
}

/* ========================================
   Related Tools
   ======================================== */

.ttb-related-tools {
    margin: 3rem 0;
    padding: 2rem 0;
    border-top: 1px solid #e5e7eb;
}

body.dark-mode .ttb-related-tools {
    border-color: #23272a;
}

.ttb-related-tools__title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
}

.ttb-related-tools__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* ========================================
   Author Box
   ======================================== */

.ttb-author-box {
    margin: 3rem 0;
    padding: 2rem;
    background: #f9fafb;
    border-radius: 8px;
}

body.dark-mode .ttb-author-box {
    background: #23272a;
}

.ttb-author-box__content {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.ttb-author-box__avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
}

.ttb-author-box__name {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.ttb-author-box__name a {
    color: #222;
    text-decoration: none;
}

body.dark-mode .ttb-author-box__name a {
    color: #e5e7eb;
}

.ttb-author-box__bio {
    color: #666;
    margin-bottom: 1rem;
}

body.dark-mode .ttb-author-box__bio {
    color: #b0b3b8;
}

.ttb-author-box__link {
    color: #5a4fff;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* ========================================
   Related Articles
   ======================================== */

.ttb-related-articles {
    margin: 3rem 0;
    padding: 2rem 0;
    border-top: 1px solid #e5e7eb;
}

body.dark-mode .ttb-related-articles {
    border-color: #23272a;
}

.ttb-related-articles__title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
}

.ttb-related-articles__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.ttb-related-articles__card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

body.dark-mode .ttb-related-articles__card {
    background: #181a1b;
    border-color: #23272a;
}

.ttb-related-articles__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.ttb-related-articles__image {
    display: block;
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.ttb-related-articles__content {
    padding: 1.5rem;
}

.ttb-related-articles__heading {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 0.75rem 0;
}

.ttb-related-articles__heading a {
    color: #222;
    text-decoration: none;
}

body.dark-mode .ttb-related-articles__heading a {
    color: #e5e7eb;
}

.ttb-related-articles__meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.75rem;
}

body.dark-mode .ttb-related-articles__meta {
    color: #b0b3b8;
}

/* ========================================
   Archive Pages
   ======================================== */

.ttb-archive-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e5e7eb;
}

body.dark-mode .ttb-archive-header {
    border-color: #23272a;
}

.ttb-archive-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
}

.ttb-archive-description {
    color: #666;
    margin-top: 0.5rem;
}

body.dark-mode .ttb-archive-description {
    color: #b0b3b8;
}

.ttb-archive-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 992px) {
    .ttb-archive-content {
        grid-template-columns: 1fr 300px;
    }
}

.ttb-posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .ttb-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .ttb-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.ttb-post-card {
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

body.dark-mode .ttb-post-card {
    background: #1e2124;
    border-color: #2a2e32;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.ttb-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(90, 79, 255, 0.15);
    border-color: #5a4fff;
}

body.dark-mode .ttb-post-card:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.ttb-post-card__image {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    position: relative;
    background: #f0f0f0;
    aspect-ratio: 16 / 9;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    line-height: 0;
}

body.dark-mode .ttb-post-card__image {
    background: #2a2e32;
}

.ttb-post-card__image img,
.ttb-post-card__image img[width],
.ttb-post-card__image img[height],
.ttb-post-card__image .wp-post-image,
.ttb-post-card__image .attachment-ttb-blog-card {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    aspect-ratio: 16 / 9 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    vertical-align: top !important;
    box-sizing: border-box !important;
}

.ttb-post-card__content {
    padding: 1.5rem;
    background: #fff;
}

body.dark-mode .ttb-post-card__content {
    background: #181a1b;
}

.ttb-post-card__title {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 0.75rem 0;
    line-height: 1.3;
}

.ttb-post-card__title a {
    color: #222;
    text-decoration: none;
    transition: color 0.2s;
}

.ttb-post-card__title a:hover {
    color: #5a4fff;
}

body.dark-mode .ttb-post-card__title a {
    color: #e5e7eb;
}

body.dark-mode .ttb-post-card__title a:hover {
    color: #b4aaff;
}

.ttb-post-card__meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.75rem;
}

body.dark-mode .ttb-post-card__meta {
    color: #b0b3b8;
}

.ttb-post-card__excerpt {
    color: #555;
    margin-bottom: 1rem;
    line-height: 1.6;
}

body.dark-mode .ttb-post-card__excerpt {
    color: #b0b3b8;
}

.ttb-post-card__read-more {
    color: #5a4fff;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.2s;
}

.ttb-post-card__read-more:hover {
    gap: 0.75rem;
}

/* ========================================
   Sidebar
   ======================================== */

.ttb-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}

/* Adjust for admin bar */
.admin-bar .ttb-sidebar {
    top: 132px;
}

@media screen and (max-width: 782px) {
    .admin-bar .ttb-sidebar {
        top: 146px;
    }
}

@media (max-width: 991px) {
    .ttb-sidebar {
        position: static;
        margin-top: 2rem;
        max-height: none;
        overflow-y: visible;
    }
}

.widget {
    margin-bottom: 2rem;
    padding: 1.25rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

@media (min-width: 992px) {
    .widget {
        padding: 1.5rem;
    }
}

body.dark-mode .widget {
    background: #181a1b;
    border-color: #23272a;
}

.widget-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e5e7eb;
    color: #222;
}

body.dark-mode .widget-title {
    border-color: #23272a;
    color: #e5e7eb;
}

.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget ul li {
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f0f0f0;
}

body.dark-mode .widget ul li {
    border-color: #23272a;
}

.widget ul li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.widget ul li a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

body.dark-mode .widget ul li a {
    color: #e5e7eb;
}

.widget ul li a:hover {
    color: #5a4fff;
}

.widget .post-date {
    display: block;
    font-size: 0.85rem;
    color: #999;
    margin-top: 0.25rem;
}

body.dark-mode .widget .post-date {
    color: #666;
}

.widget ul li .count {
    float: right;
    background: #f5f7ff;
    color: #5a4fff;
    padding: 0.1rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

body.dark-mode .widget ul li .count {
    background: #23272a;
    color: #b4aaff;
}

/* ========================================
   Pagination
   ======================================== */

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 3rem 0;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    color: #555;
    text-decoration: none;
    transition: all 0.2s;
}

body.dark-mode .page-numbers {
    background: #181a1b;
    border-color: #23272a;
    color: #b0b3b8;
}

.page-numbers:hover,
.page-numbers.current {
    background: #5a4fff;
    border-color: #5a4fff;
    color: #fff;
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 991px) {
    .ttb-content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .ttb-post__content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .ttb-toc--sidebar {
        position: static;
    }
    
    .ttb-post__main {
        flex-direction: column;
    }
    
    .ttb-toc {
        order: -1;
    }
    
    .ttb-post-navigation {
        grid-template-columns: 1fr;
    }
    
    .ttb-archive-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .ttb-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .ttb-related-tools__grid,
    .ttb-related-articles__grid {
        grid-template-columns: 1fr;
    }
    
    .ttb-comment__body {
        flex-direction: column;
    }
}

/* ========================================
   Comments Section
   ======================================== */

.ttb-comments-area {
    margin-top: 3rem;
    padding: 2rem;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

body.dark-mode .ttb-comments-area {
    background: #1e2124;
    border-color: #2a2e32;
}

.ttb-comments-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 2rem 0;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e5e7eb;
}

body.dark-mode .ttb-comments-title {
    border-color: #2a2e32;
}

.ttb-comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ttb-comment {
    margin-bottom: 2rem;
}

.ttb-comment__body {
    display: flex;
    gap: 1rem;
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

body.dark-mode .ttb-comment__body {
    background: #181a1b;
    border-color: #23272a;
}

.ttb-comment__avatar img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

.ttb-comment__content {
    flex: 1;
}

.ttb-comment__header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.ttb-comment__author {
    font-weight: 600;
    font-style: normal;
    color: #222;
}

body.dark-mode .ttb-comment__author {
    color: #e5e7eb;
}

.ttb-comment__author a {
    color: #5a4fff;
    text-decoration: none;
}

.ttb-comment__date {
    font-size: 0.85rem;
    color: #666;
}

body.dark-mode .ttb-comment__date {
    color: #b0b3b8;
}

.ttb-comment__date a {
    color: #666;
    text-decoration: none;
}

.ttb-comment__edit {
    font-size: 0.85rem;
    margin-left: auto;
}

.ttb-comment__edit a {
    color: #5a4fff;
    text-decoration: none;
}

.ttb-comment__text {
    color: #333;
    line-height: 1.7;
}

body.dark-mode .ttb-comment__text {
    color: #e5e7eb;
}

.ttb-comment__reply a {
    color: #5a4fff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}

.ttb-comment__awaiting-moderation {
    padding: 0.75rem;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
    color: #856404;
    margin-bottom: 1rem;
}

/* Comment Form */
.ttb-comment-reply-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 2rem 0 1.5rem 0;
}

.comment-form {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

body.dark-mode .comment-form {
    background: #181a1b;
    border-color: #23272a;
}

.comment-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

body.dark-mode .comment-form label {
    color: #e5e7eb;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

body.dark-mode .comment-form input[type="text"],
body.dark-mode .comment-form input[type="email"],
body.dark-mode .comment-form input[type="url"],
body.dark-mode .comment-form textarea {
    background: #23272a;
    border-color: #2a2e32;
    color: #e5e7eb;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: #5a4fff;
    box-shadow: 0 0 0 3px rgba(90, 79, 255, 0.1);
}

.comment-form textarea {
    min-height: 150px;
    resize: vertical;
}

.comment-form .required {
    color: #dc2626;
}

.ttb-submit-button {
    background: #5a4fff;
    color: #fff;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.ttb-submit-button:hover {
    background: #3a2fd6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(90, 79, 255, 0.3);
}

.form-submit {
    margin-top: 1rem;
}

/* ========================================
   No Results / Empty State
   ======================================== */

.ttb-no-results {
    padding: 3rem 2rem;
    text-align: center;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

body.dark-mode .ttb-no-results {
    background: #1e2124;
    border-color: #2a2e32;
}

.ttb-no-results__title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #222;
}

body.dark-mode .ttb-no-results__title {
    color: #e5e7eb;
}

.ttb-no-results__content {
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

body.dark-mode .ttb-no-results__content {
    color: #b0b3b8;
}

.ttb-no-results__content p {
    margin-bottom: 1.5rem;
}

/* ========================================
   Search Form
   ======================================== */

.ttb-search-form {
    margin: 2rem 0;
}

.ttb-search-form__wrapper {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.ttb-search-form__input {
    width: 100%;
    padding: 1rem 3.5rem 1rem 1.5rem;
    border: 2px solid #e5e7eb;
    border-radius: 50px;
    font-size: 1rem;
    transition: all 0.2s;
}

body.dark-mode .ttb-search-form__input {
    background: #23272a;
    border-color: #2a2e32;
    color: #e5e7eb;
}

.ttb-search-form__input:focus {
    outline: none;
    border-color: #5a4fff;
    box-shadow: 0 0 0 3px rgba(90, 79, 255, 0.1);
}

.ttb-search-form__button {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: #5a4fff;
    color: #fff;
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ttb-search-form__button:hover {
    background: #3a2fd6;
    transform: translateY(-50%) scale(1.05);
}

/* ========================================
   Search Results
   ======================================== */

.ttb-search-header {
    margin-bottom: 2rem;
}

.ttb-search-query {
    color: #5a4fff;
    font-weight: 700;
}

body.dark-mode .ttb-search-query {
    color: #b4aaff;
}

.ttb-search-count {
    font-size: 1rem;
    color: #666;
    margin-top: 0.5rem;
}

body.dark-mode .ttb-search-count {
    color: #b0b3b8;
}

/* ========================================
   Author Archive
   ======================================== */

.ttb-author-archive-header {
    margin-bottom: 2rem;
}

.ttb-author-archive-info {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    background: #f9fafb;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

body.dark-mode .ttb-author-archive-info {
    background: #1e2124;
    border-color: #2a2e32;
}

.ttb-author-archive-avatar img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
}

.ttb-author-archive-details {
    flex: 1;
}

.ttb-author-stats {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}

.ttb-author-stat {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: #666;
}

body.dark-mode .ttb-author-stat {
    color: #b0b3b8;
}

.ttb-author-stat i {
    color: #5a4fff;
}

/* ========================================
   Badges
   ======================================== */

.ttb-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #f5f7ff;
    color: #5a4fff;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
}

.ttb-badge:hover {
    background: #5a4fff;
    color: #fff;
}

body.dark-mode .ttb-badge {
    background: #23272a;
    color: #b4aaff;
}

body.dark-mode .ttb-badge:hover {
    background: #5a4fff;
    color: #fff;
}

.ttb-post-card__categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

/* ========================================
   Utility Classes
   ======================================== */

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

