/* =============================================
   ToolszAI — Blog Post Page Styles
   ============================================= */

/* === Back Link === */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 32px;
    transition: var(--transition-fast);
}

.back-link:hover {
    color: white;
}

.back-link svg {
    width: 18px;
    height: 18px;
}

/* === Blog Post Hero === */
.blog-post-hero {
    position: relative;
    padding: 140px 0 60px;
    overflow: hidden;
}

.blog-post-hero-bg {
    position: absolute;
    inset: 0;
    opacity: 0.15;
    z-index: 0;
}

.blog-post-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, var(--bg-primary) 0%, transparent 30%, transparent 70%, var(--bg-primary) 100%);
    z-index: 1;
}

.blog-post-hero .container {
    position: relative;
    z-index: 2;
}

.blog-post-hero-content {
    max-width: 800px;
}

.blog-post-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.blog-post-tag {
    padding: 5px 14px;
    background: rgba(124, 58, 237, 0.15);
    border: 1px solid rgba(124, 58, 237, 0.25);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-light);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.blog-post-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(28px, 5vw, 48px);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.blog-post-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 28px;
    max-width: 700px;
}

.blog-post-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.blog-post-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    color: white;
    font-family: 'Space Grotesk', sans-serif;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.author-role {
    font-size: 13px;
    color: var(--text-muted);
}

.blog-post-details {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.detail-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-muted);
}

.detail-item svg {
    width: 15px;
    height: 15px;
}

/* === Blog Post Layout === */
.blog-post-layout {
    padding: 60px 0 80px;
    position: relative;
    z-index: 1;
}

.blog-post-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 48px;
    align-items: start;
}

/* === Share Bar === */
.share-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 32px;
}

.share-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    margin-right: 4px;
}

.share-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.share-btn svg {
    width: 16px;
    height: 16px;
}

.share-btn:hover {
    transform: translateY(-2px);
}

.share-twitter:hover {
    background: rgba(29, 161, 242, 0.15);
    border-color: rgba(29, 161, 242, 0.3);
    color: #1da1f2;
}

.share-facebook:hover {
    background: rgba(24, 119, 242, 0.15);
    border-color: rgba(24, 119, 242, 0.3);
    color: #1877f2;
}

.share-linkedin:hover {
    background: rgba(10, 102, 194, 0.15);
    border-color: rgba(10, 102, 194, 0.3);
    color: #0a66c2;
}

.share-copy:hover {
    background: rgba(124, 58, 237, 0.15);
    border-color: rgba(124, 58, 237, 0.3);
    color: var(--primary-light);
}

/* === Table of Contents === */
.toc-box {
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 3px solid var(--primary);
    border-radius: 12px;
    margin-bottom: 36px;
}

.toc-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.toc-title svg {
    width: 18px;
    height: 18px;
    color: var(--primary-light);
}

.toc-list {
    padding-left: 20px;
    counter-reset: toc;
}

.toc-list li {
    margin-bottom: 8px;
    counter-increment: toc;
}

.toc-list a {
    font-size: 14px;
    color: var(--text-secondary);
    transition: var(--transition-fast);
    line-height: 1.5;
}

.toc-list a:hover {
    color: var(--primary-light);
    padding-left: 4px;
}

/* === Article Body === */
.article-body {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
}

.article-lead {
    font-size: 19px;
    line-height: 1.75;
    color: var(--text-primary);
    margin-bottom: 24px;
    font-weight: 400;
}

.article-body p {
    margin-bottom: 20px;
}

.article-body h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 48px 0 16px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    scroll-margin-top: 100px;
}

.article-body h2:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.article-body h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 28px 0 12px;
}

.article-body ul,
.article-body ol {
    padding-left: 24px;
    margin-bottom: 24px;
}

.article-body li {
    margin-bottom: 10px;
    line-height: 1.7;
}

.article-body strong {
    color: var(--text-primary);
    font-weight: 600;
}

.article-body a {
    color: var(--primary-light);
    text-decoration: underline;
    text-decoration-color: rgba(167, 139, 250, 0.3);
    text-underline-offset: 3px;
    transition: var(--transition-fast);
}

.article-body a:hover {
    text-decoration-color: var(--primary-light);
}

/* === Article Quote === */
.article-quote {
    position: relative;
    margin: 32px 0;
    padding: 24px 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 3px solid var(--primary);
    border-radius: 12px;
}

.article-quote::before {
    content: '"';
    position: absolute;
    top: -8px;
    left: 20px;
    font-size: 64px;
    font-family: 'Space Grotesk', serif;
    color: var(--primary);
    opacity: 0.2;
    line-height: 1;
}

.article-quote p {
    font-size: 17px;
    font-style: italic;
    color: var(--text-primary);
    line-height: 1.7;
    margin-bottom: 8px;
}

.article-quote cite {
    font-size: 13px;
    color: var(--text-muted);
    font-style: normal;
}

/* === Tool Highlight Box === */
.tool-highlight-box {
    margin: 24px 0;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    transition: var(--transition-normal);
}

.tool-highlight-box:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow);
}

.tool-highlight-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.tool-highlight-logo {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
    color: white;
    font-family: 'Space Grotesk', sans-serif;
    flex-shrink: 0;
}

.tool-highlight-header h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.tool-highlight-category {
    font-size: 12px;
    color: var(--text-muted);
}

.tool-highlight-link {
    margin-left: auto;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-light) !important;
    text-decoration: none !important;
    white-space: nowrap;
    transition: var(--transition-fast);
}

.tool-highlight-link:hover {
    color: var(--accent-light) !important;
}

.tool-highlight-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tool-highlight-features span {
    padding: 5px 12px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.15);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    color: var(--neon-green);
}

/* === Ad Slots === */
.ad-banner-top,
.ad-banner-bottom {
    padding: 16px 0;
    position: relative;
    z-index: 1;
}

.ad-slot {
    margin: 0 auto;
}

.ad-placeholder {
    position: relative;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.ad-label {
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.6;
}

/* Leaderboard Ad (top/bottom) */
.ad-demo-content {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 8px 0;
}

.ad-demo-content.ad-demo-horizontal {
    flex-wrap: wrap;
}

.ad-demo-icon {
    font-size: 36px;
    flex-shrink: 0;
}

.ad-demo-text {
    flex: 1;
    min-width: 200px;
}

.ad-demo-text strong {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.ad-demo-text span {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.ad-demo-cta {
    display: inline-flex;
    padding: 10px 24px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transition: var(--transition-normal);
    flex-shrink: 0;
}

.ad-demo-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.3);
}

/* In-Article Ad */
.ad-in-article {
    margin: 36px 0;
}

.ad-affiliate-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 8px 0;
    flex-wrap: wrap;
}

.ad-affiliate-logo {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    color: white;
    font-family: 'Space Grotesk', sans-serif;
    flex-shrink: 0;
}

.ad-affiliate-info {
    flex: 1;
    min-width: 200px;
}

.ad-affiliate-info strong {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.ad-affiliate-info p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 6px;
}

.ad-affiliate-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ad-affiliate-rating .stars {
    color: #f59e0b;
    font-size: 14px;
}

.ad-affiliate-rating .rating-text {
    font-size: 12px;
    color: var(--text-muted);
}

.ad-affiliate-btn {
    display: inline-flex;
    padding: 10px 24px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transition: var(--transition-normal);
    flex-shrink: 0;
}

.ad-affiliate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.3);
}

/* Sidebar Ad */
.ad-sidebar-rect {
    margin-bottom: 24px;
}

.ad-sidebar-demo {
    text-align: center;
    padding: 12px 0;
}

.ad-sidebar-demo-logo {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 800;
    color: white;
    font-family: 'Space Grotesk', sans-serif;
    margin: 0 auto 12px;
}

.ad-sidebar-demo h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.ad-sidebar-demo p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 10px;
}

.ad-sidebar-stars {
    font-size: 14px;
    color: #f59e0b;
    margin-bottom: 14px;
}

.ad-sidebar-stars span {
    font-size: 12px;
    color: var(--text-muted);
    margin-left: 6px;
}

.ad-sidebar-demo-btn {
    display: inline-flex;
    padding: 10px 24px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition-normal);
}

.ad-sidebar-demo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(124, 58, 237, 0.3);
}

/* === Affiliate Comparison Box === */
.affiliate-comparison-box {
    margin: 36px 0;
    padding: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
}

.comparison-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 12px;
}

.comparison-table th {
    text-align: left;
    padding: 10px 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid var(--border);
}

.comparison-table td {
    padding: 12px;
    font-size: 14px;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(148, 163, 184, 0.05);
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table tr:hover td {
    background: rgba(124, 58, 237, 0.03);
}

.affiliate-link {
    color: var(--primary-light) !important;
    font-weight: 600;
    text-decoration: none !important;
    white-space: nowrap;
}

.affiliate-link:hover {
    color: var(--accent-light) !important;
}

.affiliate-disclosure {
    font-size: 11px;
    color: var(--text-muted);
    opacity: 0.7;
    font-style: italic;
}

/* === Affiliate Banner === */
.affiliate-banner {
    margin: 36px 0;
    padding: 24px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(6, 182, 212, 0.05));
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: 14px;
}

.affiliate-banner-content {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.affiliate-banner-icon {
    font-size: 36px;
    flex-shrink: 0;
}

.affiliate-banner-text {
    flex: 1;
    min-width: 200px;
}

.affiliate-banner-text h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.affiliate-banner-text p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

.affiliate-banner-btn {
    display: inline-flex;
    padding: 10px 24px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transition: var(--transition-normal);
    text-decoration: none !important;
    flex-shrink: 0;
}

.affiliate-banner-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.3);
}

.affiliate-disclosure-small {
    display: block;
    margin-top: 10px;
    font-size: 10px;
    color: var(--text-muted);
    opacity: 0.6;
}

/* === Article CTA Box === */
.article-cta-box {
    margin: 48px 0;
    padding: 36px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.08), rgba(6, 182, 212, 0.04));
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: 16px;
    text-align: center;
}

.article-cta-box h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.article-cta-box p {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.article-cta-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* === Author Box === */
.author-box {
    display: flex;
    gap: 20px;
    padding: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    margin: 40px 0;
}

.author-box-avatar {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    color: white;
    font-family: 'Space Grotesk', sans-serif;
    flex-shrink: 0;
}

.author-box-content h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.author-box-content p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 10px;
}

.author-box-social {
    display: flex;
    gap: 12px;
}

.author-box-social a {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-light);
    text-decoration: none !important;
    transition: var(--transition-fast);
}

.author-box-social a:hover {
    color: var(--accent-light);
}

/* === Article Tags === */
.article-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 32px;
}

.article-tags-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
}

.article-tag {
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none !important;
    transition: var(--transition-fast);
}

.article-tag:hover {
    border-color: var(--primary);
    color: var(--primary-light);
    background: rgba(124, 58, 237, 0.08);
}

/* === Sidebar === */
.blog-post-sidebar {
    min-width: 0;
}

.sidebar-sticky {
    position: sticky;
    top: 90px;
}

.sidebar-widget {
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    margin-bottom: 24px;
}

.sidebar-widget-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.sidebar-widget-title svg {
    width: 18px;
    height: 18px;
    color: var(--primary-light);
}

/* Popular Tools Widget */
.sidebar-tool-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-tool-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    transition: var(--transition-fast);
}

.sidebar-tool-item:hover {
    background: rgba(124, 58, 237, 0.06);
}

.sidebar-tool-logo {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    color: white;
    font-family: 'Space Grotesk', sans-serif;
    flex-shrink: 0;
}

.sidebar-tool-info {
    flex: 1;
    min-width: 0;
}

.sidebar-tool-info strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.sidebar-tool-info span {
    font-size: 12px;
    color: var(--text-muted);
}

.sidebar-tool-badge {
    padding: 3px 8px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 5px;
    font-size: 10px;
    font-weight: 600;
    color: var(--neon-green);
    text-transform: uppercase;
    flex-shrink: 0;
}

/* Newsletter Widget */
.sidebar-newsletter {
    position: relative;
    overflow: hidden;
    border-color: rgba(124, 58, 237, 0.2);
}

.sidebar-newsletter-glow {
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.06) 0%, transparent 60%);
    pointer-events: none;
}

.sidebar-newsletter p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 14px;
    position: relative;
}

.sidebar-newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
}

.sidebar-newsletter-form input {
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    transition: var(--transition-normal);
}

.sidebar-newsletter-form input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.sidebar-newsletter-form input::placeholder {
    color: var(--text-muted);
}

.sidebar-newsletter-form .btn-primary {
    width: 100%;
    justify-content: center;
    padding: 10px;
}

.sidebar-newsletter-note {
    display: block;
    margin-top: 8px;
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
    position: relative;
}

/* Related Posts Widget */
.sidebar-related-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sidebar-related-item {
    display: flex;
    gap: 12px;
    transition: var(--transition-fast);
}

.sidebar-related-item:hover {
    opacity: 0.8;
}

.sidebar-related-thumb {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    flex-shrink: 0;
}

.sidebar-related-info {
    flex: 1;
    min-width: 0;
}

.sidebar-related-info strong {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sidebar-related-info span {
    font-size: 11px;
    color: var(--text-muted);
}

/* Search Widget */
.search-form { display: block; }

.search-form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.search-form-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.search-field {
    flex: 1;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
    -webkit-appearance: none;
    appearance: none;
    min-width: 0;
}

.search-field:focus {
    border-color: var(--primary);
    background: rgba(124, 58, 237, 0.06);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
}

.search-field::placeholder { color: var(--text-muted); }

.search-submit {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 0.2s, transform 0.2s;
    flex-shrink: 0;
}

.search-submit:hover { opacity: 0.9; transform: translateY(-1px); }
.search-submit svg { width: 14px; height: 14px; }

/* Block search widget fallback */
.wp-block-search { display: block; }
.wp-block-search__label { display: block; font-size: 13px; font-weight: 600; color: var(--text-primary); margin-bottom: 8px; }
.wp-block-search__inside-wrapper { display: flex; gap: 8px; }
.wp-block-search__input { flex: 1; padding: 10px 14px; background: rgba(255,255,255,0.05); border: 1px solid var(--border); border-radius: 10px; color: var(--text-primary); font-size: 14px; outline: none; }
.wp-block-search__input:focus { border-color: var(--primary); background: rgba(124,58,237,0.06); box-shadow: 0 0 0 3px rgba(124,58,237,0.12); }
.wp-block-search__button { padding: 10px 16px; background: var(--gradient-primary); border: none; border-radius: 10px; color: white; font-size: 13px; font-weight: 600; cursor: pointer; flex-shrink: 0; }

/* Categories Widget */
.sidebar-categories {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-cat-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.sidebar-cat-item:hover {
    background: rgba(124, 58, 237, 0.06);
    color: var(--primary-light);
}

.sidebar-cat-count {
    padding: 2px 8px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
}

/* === Related Posts Section (Bottom) === */
.related-posts-section {
    padding: 60px 0 80px;
    border-top: 1px solid var(--border);
    position: relative;
    z-index: 1;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* === Responsive === */
@media (max-width: 1024px) {
    .blog-post-grid {
        grid-template-columns: 1fr 280px;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .blog-post-grid {
        grid-template-columns: 1fr;
    }

    .sidebar-sticky {
        position: static;
    }

    .blog-post-hero {
        padding: 120px 0 40px;
    }

    .blog-post-title {
        font-size: 28px;
    }

    .blog-post-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .ad-demo-content {
        flex-direction: column;
        text-align: center;
    }

    .ad-affiliate-card {
        flex-direction: column;
        text-align: center;
    }

    .affiliate-banner-content {
        flex-direction: column;
        text-align: center;
    }

    .comparison-table {
        font-size: 13px;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 8px;
    }

    .share-bar {
        flex-wrap: wrap;
    }

    .tool-highlight-header {
        flex-wrap: wrap;
    }

    .tool-highlight-link {
        margin-left: 0;
        margin-top: 8px;
    }

    .author-box {
        flex-direction: column;
        text-align: center;
    }

    .author-box-social {
        justify-content: center;
    }

    .article-cta-buttons {
        flex-direction: column;
    }

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

/* =============================================
   WordPress Comment Form — Dark Theme
   ============================================= */

.comments-area {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

.comments-title,
.comment-reply-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.comment-reply-title small { margin-left: 12px; font-size: 13px; }
.comment-reply-title small a { color: var(--primary-light); font-weight: 500; }

/* Comment list */
.comment-list { list-style: none; padding: 0; margin: 0 0 48px; }
.comment-list .children { list-style: none; padding-left: 40px; }

.comment-body {
    padding: 20px 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.06);
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.comment-author img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
}

.comment-author .fn {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
}

.comment-meta a,
.comment-metadata a {
    font-size: 12px;
    color: var(--text-muted);
}

.comment-content p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 8px;
}

.reply a {
    font-size: 12px;
    color: var(--primary-light);
    font-weight: 600;
}

/* Comment form */
.comment-form p { margin-bottom: 16px; }

.comment-form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

/* All inputs / textarea */
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
    border-color: var(--primary);
    background: rgba(124, 58, 237, 0.06);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
}

.comment-form input[type="text"]::placeholder,
.comment-form input[type="email"]::placeholder,
.comment-form input[type="url"]::placeholder,
.comment-form textarea::placeholder {
    color: var(--text-muted);
}

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

/* Name / Email / Website side by side */
.comment-form .comment-form-author,
.comment-form .comment-form-email,
.comment-form .comment-form-url {
    display: inline-block;
    width: calc(33.33% - 11px);
    margin-right: 16px;
    vertical-align: top;
}

.comment-form .comment-form-url { margin-right: 0; }

/* Cookie consent */
.comment-form .comment-form-cookies-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.comment-form .comment-form-cookies-consent input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    accent-color: var(--primary);
    flex-shrink: 0;
}

.comment-form .comment-form-cookies-consent label {
    font-size: 12px;
    font-weight: 400;
    color: var(--text-muted);
    margin-bottom: 0;
    line-height: 1.5;
}

/* Submit button */
.comment-form .form-submit { margin-bottom: 0; }

.comment-form input[type="submit"] {
    display: inline-flex;
    align-items: center;
    padding: 12px 28px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 15px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s;
    width: auto;
}

.comment-form input[type="submit"]:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Must-login notice */
.must-log-in {
    font-size: 14px;
    color: var(--text-muted);
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.must-log-in a { color: var(--primary-light); font-weight: 600; }

.comment-awaiting-moderation {
    font-size: 12px;
    color: #f59e0b;
    margin-top: 6px;
}

@media (max-width: 768px) {
    .comment-form .comment-form-author,
    .comment-form .comment-form-email,
    .comment-form .comment-form-url {
        width: 100%;
        margin-right: 0;
        display: block;
    }
    .comment-list .children { padding-left: 20px; }
}
