/* ============================================================
   IBN Dark Mode — Complete Fix
   Matches Benqu theme dark palette: #08090b, #0f1217, #0a0d12
   ============================================================ */


/* ── Post title (single post H1) ── */
[data-theme="dark"] .entry-title,
[data-theme="dark"] .pfy-post-title,
[data-theme="dark"] .entry-title a,
[data-theme="dark"] .pfy-post-title a,
[data-theme="dark"] .bnq-single-con .entry-title,
[data-theme="dark"] h1.entry-title,
[data-theme="dark"] .pfy_single_post_wrapper .entry-title {
    color: #fff !important;
}

/* ── Category badge on single post ── */
[data-theme="dark"] .benqu-cate-badge a,
[data-theme="dark"] .pfy-post-cat a {
    color: #fff !important;
}

/* ── Post meta (date, views, reading time) ── */
[data-theme="dark"] .pfy-single-post-meta,
[data-theme="dark"] .pfy-single-post-meta ul li,
[data-theme="dark"] .pfy-single-post-meta a,
[data-theme="dark"] .pfy-post-date,
[data-theme="dark"] .pfy-post-views,
[data-theme="dark"] .ibn-reading-time {
    color: #989898 !important;
}

/* ── Global resets ── */
[data-theme="dark"] .pfy-main-wrapper,
[data-theme="dark"] .benqu-page-interal,
[data-theme="dark"] .bnq-single-con,
[data-theme="dark"] .pfy_single_post_wrapper {
    background: #08090b !important;
}

/* ── Content text ── */
[data-theme="dark"] .entry-content,
[data-theme="dark"] .entry-content p,
[data-theme="dark"] .entry-content li,
[data-theme="dark"] .entry-content span,
[data-theme="dark"] .entry-content td,
[data-theme="dark"] .ibn-tool-content,
[data-theme="dark"] .ibn-tool-content p,
[data-theme="dark"] .ibn-tool-content li {
    color: #d4d0d0 !important;
}

[data-theme="dark"] .entry-content a,
[data-theme="dark"] .ibn-tool-content a {
    color: #60a5fa;
}

[data-theme="dark"] .entry-content strong,
[data-theme="dark"] .ibn-tool-content strong {
    color: #f0eded;
}

/* ── Headings ── */
[data-theme="dark"] .entry-content h2,
[data-theme="dark"] .entry-content h3,
[data-theme="dark"] .entry-content h4,
[data-theme="dark"] .ibn-tool-content h2,
[data-theme="dark"] .ibn-tool-content h3 {
    color: #fff !important;
}

/* ── TOC / სარჩევი ── */
[data-theme="dark"] .ibn-toc,
[data-theme="dark"] .ibn-toc-container,
[data-theme="dark"] #ibn-toc,
[data-theme="dark"] .toc-wrapper {
    background: #0f1217 !important;
    border-color: #1a1e23 !important;
}

[data-theme="dark"] .ibn-toc a,
[data-theme="dark"] .ibn-toc-container a,
[data-theme="dark"] .toc-wrapper a {
    color: #a9a6a6 !important;
}

[data-theme="dark"] .ibn-toc a:hover,
[data-theme="dark"] .toc-wrapper a:hover {
    color: #fff !important;
}

[data-theme="dark"] .ibn-toc-title,
[data-theme="dark"] .ibn-toc-header,
[data-theme="dark"] .toc-title {
    color: #fff !important;
}

/* ── Sidebar ── */
[data-theme="dark"] #secondary,
[data-theme="dark"] .widget-area,
[data-theme="dark"] .widget {
    background: transparent !important;
    color: #d4d0d0;
}

[data-theme="dark"] .widget-title,
[data-theme="dark"] .benqu-section-title-wrap p {
    color: #fff !important;
}

[data-theme="dark"] .ibn-sidebar-tool-item {
    border-color: #1a1e23;
    color: #d4d0d0;
    background: #0f1217;
}

[data-theme="dark"] .ibn-sidebar-tool-item:hover {
    border-color: #60a5fa;
    color: #60a5fa;
}

/* ── Breadcrumb ── */
[data-theme="dark"] .benqu-breadcrumb {
    background: #0a0d12;
}

/* ── Social sharing ── */
[data-theme="dark"] .social-box a,
[data-theme="dark"] .bnq-social-sharing a,
[data-theme="dark"] .copy-link-btn {
    background: #0f1217 !important;
    border-color: #1a1e23 !important;
    color: #a9a6a6 !important;
}

[data-theme="dark"] .social-box a:hover,
[data-theme="dark"] .bnq-social-sharing a:hover {
    color: #fff !important;
    border-color: #60a5fa !important;
}

/* ── Font size controls ── */
[data-theme="dark"] .ibn-font-controls a,
[data-theme="dark"] .pfy-font-size a {
    color: #a9a6a6 !important;
}

/* ── Comments ── */
[data-theme="dark"] .comments-area input,
[data-theme="dark"] .comments-area textarea,
[data-theme="dark"] .comment-form input,
[data-theme="dark"] .comment-form textarea {
    background: #0a0d12 !important;
    border-color: #1a1e23 !important;
    color: #eae4e4 !important;
}

/* ── Post cards / grids ── */
[data-theme="dark"] .pfy-post-item,
[data-theme="dark"] .pfy-post-content {
    background: #0f1217;
}

[data-theme="dark"] .pfy-post-excerpt,
[data-theme="dark"] .pfy-post-date {
    color: #989898;
}

/* ── Tools pages ── */
[data-theme="dark"] .ibn-tool-page,
[data-theme="dark"] .ibn-tool-article {
    background: #08090b;
}

[data-theme="dark"] .ibn-tool-title {
    color: #fff !important;
}

[data-theme="dark"] .ibn-tool-excerpt {
    color: #989898;
}

/* ── Tool form elements ── */
[data-theme="dark"] .ibn-form-group label {
    color: #d4d0d0;
}

[data-theme="dark"] .ibn-form-group input,
[data-theme="dark"] .ibn-form-group select {
    background: #0a0d12 !important;
    border-color: #1a1e23 !important;
    color: #eae4e4 !important;
}

[data-theme="dark"] .ibn-form-group input:focus,
[data-theme="dark"] .ibn-form-group select:focus {
    border-color: #60a5fa !important;
}

/* ── Tool result ── */
[data-theme="dark"] .ibn-result {
    background: #0f1217 !important;
    border-color: #1a1e23 !important;
}

[data-theme="dark"] .ibn-result-title {
    color: #fff;
}

[data-theme="dark"] .ibn-result-label {
    color: #989898;
}

[data-theme="dark"] .ibn-result-value {
    color: #eae4e4;
}

[data-theme="dark"] .ibn-result-row {
    border-color: #1a1e23;
}

/* ── Tools & Companies archive cards ── */
[data-theme="dark"] .ibn-tool-card {
    background: #0f1217 !important;
    border-color: #1a1e23 !important;
}

[data-theme="dark"] .ibn-tool-card:hover {
    border-color: #60a5fa !important;
}

[data-theme="dark"] .ibn-tool-card-title {
    color: #fff;
}

[data-theme="dark"] .ibn-tool-card-desc {
    color: #989898;
}

[data-theme="dark"] .ibn-tool-card-icon {
    background: #08090b;
    color: #60a5fa;
}

[data-theme="dark"] .ibn-tools-archive-title {
    color: #fff !important;
}

[data-theme="dark"] .ibn-tools-archive-desc {
    color: #989898;
}

/* ── Companies cards ── */
[data-theme="dark"] .ibn-company-card {
    background: #0f1217;
    border-color: #1a1e23;
}

[data-theme="dark"] .ibn-company-card:hover {
    border-color: #60a5fa;
}

[data-theme="dark"] .ibn-company-name {
    color: #fff;
}

[data-theme="dark"] .ibn-company-desc {
    color: #989898;
}

[data-theme="dark"] .ibn-company-logo {
    background: #08090b;
}

/* ── Company submission form ── */
[data-theme="dark"] .ibn-co-submit {
    background: #0f1217 !important;
    border-color: #1a1e23 !important;
}

[data-theme="dark"] .ibn-co-submit label {
    color: #d4d0d0;
}

[data-theme="dark"] .ibn-co-submit input {
    background: #0a0d12 !important;
    border-color: #1a1e23 !important;
    color: #eae4e4 !important;
}

/* ── Calculator feature checkboxes ── */
[data-theme="dark"] .ibn-feature-item {
    border-color: #1a1e23;
    color: #d4d0d0;
    background: #0f1217;
}

[data-theme="dark"] .ibn-feature-item:hover {
    border-color: #60a5fa;
}

[data-theme="dark"] .ibn-calc-step h3 {
    color: #fff;
}

/* ── Tables ── */
[data-theme="dark"] .entry-content table,
[data-theme="dark"] .entry-content th,
[data-theme="dark"] .entry-content td {
    border-color: #1a1e23 !important;
}

[data-theme="dark"] .entry-content th {
    background: #0f1217;
    color: #fff;
}

/* ── Blockquote ── */
[data-theme="dark"] .entry-content blockquote {
    background: #0f1217;
    border-left-color: #60a5fa;
    color: #d4d0d0;
}

/* ── Code ── */
[data-theme="dark"] .entry-content code,
[data-theme="dark"] .entry-content pre {
    background: #0a0d12;
    color: #eae4e4;
}

/* ── Newsletter box ── */
[data-theme="dark"] .bnq__cf-wrap {
    background: #0f1217;
}

/* ── SEO content on company category pages ── */
[data-theme="dark"] .ibn-company-seo-content {
    color: #d4d0d0;
}

[data-theme="dark"] .ibn-company-seo-content h2 {
    color: #fff !important;
}

/* ── Mobile menu ── */
[data-theme="dark"] .hamburger_menu {
    background: #08090b;
}

/* ── Related posts ── */
[data-theme="dark"] .related-post-wrap .pfy-post-item {
    background: #0f1217;
}

/* ── Author box ── */
[data-theme="dark"] .author-box,
[data-theme="dark"] .author-bio {
    background: #0f1217;
    border-color: #1a1e23;
    color: #d4d0d0;
}

/* ── Search results ── */
[data-theme="dark"] .search-results .pfy-post-item {
    background: #0f1217;
}

/* ── 404 ── */
[data-theme="dark"] .error-page {
    color: #d4d0d0;
}
