/*
Theme Name: LLMS.txt Generator
Theme URI: https://llmcfgbox.com
Author: LLMS.txt Generator Team
Description: Standalone WordPress theme for an llms.txt generator, AI crawler policy helper, and webmaster SEO resource site.
Version: 1.0.0
License: GPL-2.0+
Text Domain: shortools-theme
*/

/* Design tokens */
:root {
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --secondary: #0ea5e9;
    --bg-body: #fbfcfd;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, #4f46e5 0%, #0ea5e9 100%);
}

/* Global reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background: var(--bg-body);
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.2s ease;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

.site-main-padding {
    padding-top: 60px;
    padding-bottom: 60px;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 0;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-menu {
    display: flex;
    gap: 28px;
}

.nav-menu a {
    position: relative;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary);
}

.nav-menu a.active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: var(--primary);
}

.header-tools {
    display: flex;
    align-items: center;
    gap: 14px;
}

.search-trigger {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    cursor: pointer;
    border: 1px solid var(--border);
    background: #f8fafc;
    border-radius: 8px;
    color: var(--text-main);
}

.search-trigger:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--white);
    box-shadow: 0 8px 18px -12px rgba(15, 23, 42, 0.45);
}

.search-trigger span {
    position: relative;
    display: block;
    width: 14px;
    height: 14px;
    border: 2px solid currentColor;
    border-radius: 50%;
}

.search-trigger span::after {
    content: "";
    position: absolute;
    right: -5px;
    bottom: -4px;
    width: 7px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transform: rotate(45deg);
    transform-origin: center;
}

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}

.lang-link {
    padding: 3px 6px;
    border-radius: 4px;
    color: var(--text-muted);
    font-weight: 600;
}

.lang-link:hover {
    background: #eef2ff;
    color: var(--primary);
}

.lang-link.active {
    background: var(--primary);
    color: var(--white);
}

/* Hero and section headers */
.hero {
    padding: 100px 0 60px;
}

.hero h1 {
    max-width: 780px;
    margin-bottom: 16px;
    color: #0f172a;
    font-size: 48px;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.1;
}

.hero p {
    max-width: 620px;
    color: var(--text-muted);
    font-size: 20px;
}

.page-hero {
    padding: 60px 0 30px;
    margin-bottom: 20px;
    text-align: center;
}

.page-hero h1 {
    margin-bottom: 12px;
    color: #0f172a;
    font-size: 36px;
    font-weight: 900;
    letter-spacing: 0;
}

.page-hero p {
    max-width: 620px;
    margin: 0 auto;
    color: var(--text-muted);
    font-size: 16px;
}

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin: 60px 0 32px;
}

.section-header h2 {
    position: relative;
    padding-left: 15px;
    font-size: 22px;
    font-weight: 700;
}

.section-header h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 20%;
    width: 4px;
    height: 60%;
    border-radius: 4px;
    background: var(--primary);
}

.section-header a,
.view-all,
.blog-card-link {
    color: var(--primary);
    font-size: 14px;
    font-weight: 700;
}

.section-header a:hover,
.view-all:hover,
.blog-card-link:hover {
    text-decoration: underline;
}

/* Cards and lists */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
}

.tool-item {
    display: block;
    min-height: 150px;
    padding: 28px 20px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--white);
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

.tool-item:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 18px 24px -12px rgba(15, 23, 42, 0.18);
}

.tool-icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin: 0 auto 16px;
    border-radius: 8px;
    background: #f5f3ff;
    color: var(--primary);
    font-size: 16px;
    font-weight: 800;
}

.content-list {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--white);
}

.post-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 32px;
    border-bottom: 1px solid var(--border);
}

.post-card:last-child {
    border-bottom: none;
}

.post-card:hover {
    background: #f8fafc;
}

.post-info h3 {
    margin-bottom: 6px;
    font-size: 18px;
    font-weight: 700;
}

.post-info h3 a:hover {
    color: var(--primary);
}

.post-meta {
    display: block;
    margin-bottom: 4px;
    color: var(--text-muted);
    font-size: 13px;
}

.category-tag {
    flex-shrink: 0;
    padding: 4px 10px;
    border-radius: 6px;
    background: #eff6ff;
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.recommended-card {
    border-left: 4px solid var(--secondary);
}

.rec-excerpt {
    margin-top: 5px;
    color: var(--text-muted);
    font-size: 14px;
}

.rec-tag {
    background: #e0f2fe;
    color: #0369a1;
}

/* Filters and pagination */
.category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.filter-tag {
    padding: 6px 16px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--white);
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
}

.filter-tag:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.filter-tag.active {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--white);
}

.pagination,
.nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 40px 0;
}

.pagination a,
.pagination span,
.nav-links a,
.nav-links span {
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--white);
    color: var(--text-main);
    font-size: 14px;
}

.pagination .current,
.nav-links .current {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--white);
}

.pagination a:hover,
.nav-links a:hover {
    background: #f1f5f9;
}

/* Search */
.search-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
}

.search-overlay.active {
    display: flex;
}

.search-overlay-inner {
    position: relative;
    width: min(90%, 620px);
    padding: 48px 36px 36px;
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.search-close {
    position: absolute;
    top: 16px;
    right: 20px;
    border: 0;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    font-size: 28px;
    line-height: 1;
}

.search-close:hover {
    color: #0f172a;
}

.search-title {
    margin-bottom: 28px;
    color: #0f172a;
    text-align: center;
    font-size: 24px;
    font-weight: 700;
}

.search-form {
    display: flex;
    overflow: hidden;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: var(--white);
}

.search-form:focus-within {
    border-color: var(--primary);
}

.search-field {
    flex: 1;
    min-width: 0;
    padding: 16px 20px;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 16px;
}

.search-submit {
    border: 0;
    padding: 0 24px;
    background: var(--primary);
    color: var(--white);
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
}

.search-submit:hover {
    background: var(--primary-hover);
}

.search-suggestions {
    margin-top: 24px;
    text-align: center;
}

.search-hint {
    color: #94a3b8;
    font-size: 13px;
}

.inline-search {
    max-width: 520px;
    margin: 24px auto 0;
}

.search-section {
    margin-bottom: 56px;
}

.result-count {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 400;
}

.tools-grid .tool-item p {
    display: -webkit-box;
    overflow: hidden;
    margin-top: 8px;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.search-blog-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.search-blog-item {
    display: flex;
    gap: 24px;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

.search-blog-item:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
    box-shadow: 0 12px 20px -6px rgba(0, 0, 0, 0.08);
}

.search-blog-thumb {
    flex-shrink: 0;
    width: 200px;
    height: 140px;
    overflow: hidden;
    border-radius: 8px;
    background: #f1f5f9;
}

.search-blog-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-blog-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.search-blog-meta {
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 13px;
}

.search-blog-title {
    margin-bottom: 8px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
}

.search-blog-title a:hover {
    color: var(--primary);
}

.search-blog-excerpt {
    display: -webkit-box;
    overflow: hidden;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

mark.search-highlight {
    border-radius: 3px;
    background: #fef08a;
    color: #0f172a;
    padding: 1px 4px;
    font-weight: 700;
}

.no-results,
.error-404 {
    text-align: center;
}

.no-results {
    padding: 80px 0 60px;
}

.no-results-icon {
    margin-bottom: 20px;
    font-size: 48px;
}

.no-results h2 {
    margin-bottom: 12px;
    color: #0f172a;
    font-size: 24px;
}

.no-results p {
    max-width: 460px;
    margin: 0 auto 28px;
    color: var(--text-muted);
}

.error-404-actions {
    margin-top: 24px;
}

.btn-primary {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    background: var(--primary);
    color: var(--white);
    font-size: 15px;
    font-weight: 700;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

/* Entry content */
.entry-header {
    margin-bottom: 24px;
}

.entry-title {
    color: #0f172a;
    font-size: 36px;
    line-height: 1.2;
}

.entry-content {
    font-size: 17px;
    line-height: 1.8;
}

.entry-content p {
    margin-bottom: 20px;
}

.entry-content h2 {
    margin: 40px 0 16px;
    font-size: 24px;
}

.entry-content h3 {
    margin: 32px 0 12px;
    font-size: 20px;
}

.entry-content img {
    margin: 20px 0;
    border-radius: 8px;
}

.entry-content pre {
    overflow-x: auto;
    margin: 20px 0;
    padding: 20px;
    border-radius: 8px;
    background: #1e293b;
    color: #e2e8f0;
}

.entry-content code {
    font-family: "JetBrains Mono", "Fira Code", monospace;
    font-size: 14px;
}

.entry-content blockquote {
    margin: 20px 0;
    padding: 10px 20px;
    border-left: 4px solid var(--primary);
    border-radius: 0 8px 8px 0;
    background: #f8fafc;
}

/* Standalone informational pages */
.standalone-page-wrap {
    background:
        linear-gradient(180deg, #f8fbff 0%, rgba(248, 251, 255, 0) 260px),
        var(--bg-body);
}

.standalone-page-card {
    max-width: 880px;
    min-height: 560px;
    margin: 0 auto;
    padding: 42px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 24px 46px -34px rgba(15, 23, 42, 0.32);
}

.standalone-page-header {
    margin-bottom: 28px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--border);
}

.standalone-page-kicker {
    display: inline-block;
    margin-bottom: 10px;
    color: #0f766e;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.standalone-page-title {
    max-width: 760px;
    margin: 0;
    color: #0f172a;
    font-size: 40px;
    line-height: 1.12;
}

.standalone-page-content {
    color: #233047;
    font-size: 16px;
    line-height: 1.85;
}

.standalone-page-content > *:first-child {
    margin-top: 0;
}

.standalone-page-content h2 {
    margin-top: 34px;
    margin-bottom: 12px;
    color: #0f172a;
    font-size: 24px;
    line-height: 1.25;
}

.standalone-page-content h3 {
    margin-top: 26px;
    margin-bottom: 10px;
    color: #0f172a;
    font-size: 19px;
}

.standalone-page-content p,
.standalone-page-content ul,
.standalone-page-content ol {
    margin-bottom: 16px;
}

.standalone-page-content ul,
.standalone-page-content ol {
    padding-left: 22px;
}

.standalone-page-content li + li {
    margin-top: 8px;
}

.standalone-page-content a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.standalone-page-content .notice-box {
    margin: 24px 0;
    padding: 18px 20px;
    border: 1px solid #ccfbf1;
    border-radius: 8px;
    background: #f0fdfa;
    color: #134e4a;
}

/* Single blog post */
.single-post-wrap {
    padding-top: 58px;
}

.single-post-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 42px;
    align-items: start;
}

.single-post-article {
    min-width: 0;
}

.single-post-header {
    margin-bottom: 30px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border);
}

.single-post-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.single-post-categories a,
.single-post-tags a {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--white);
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
}

.single-post-categories a:hover,
.single-post-tags a:hover {
    border-color: var(--primary);
    background: #eef2ff;
}

.single-post-title {
    max-width: 850px;
    margin-bottom: 18px;
    color: #0f172a;
    font-size: 44px;
    font-weight: 900;
    line-height: 1.12;
    letter-spacing: 0;
}

.single-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
}

.single-post-meta a {
    color: var(--text-main);
    font-weight: 800;
}

.single-post-meta a:hover {
    color: var(--primary);
}

.single-post-excerpt {
    max-width: 760px;
    margin-top: 20px;
    color: var(--text-muted);
    font-size: 18px;
    line-height: 1.7;
}

.single-post-featured {
    overflow: hidden;
    margin: 0 0 34px;
    border-radius: 8px;
    background: #f1f5f9;
}

.single-post-featured img {
    display: block;
    width: 100%;
    max-height: 520px;
    object-fit: cover;
}

.single-post-content {
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border);
}

.single-post-content > * {
    max-width: 760px;
}

.single-post-content > .alignwide,
.single-post-content > .alignfull,
.single-post-content > figure,
.single-post-content > img {
    max-width: 100%;
}

.single-post-content p {
    color: #233047;
}

.single-post-content a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.single-post-content ul,
.single-post-content ol {
    max-width: 760px;
    margin: 0 0 24px 22px;
    padding-left: 18px;
    line-height: 1.8;
}

.single-post-content li {
    margin-bottom: 8px;
}

.single-post-content table {
    width: 100%;
    max-width: 100%;
    margin: 24px 0;
    border-collapse: collapse;
    background: var(--white);
}

.single-post-content th,
.single-post-content td {
    padding: 12px;
    border: 1px solid var(--border);
    text-align: left;
}

.single-post-footer {
    margin-top: 28px;
}

.single-post-footer h2 {
    margin-bottom: 12px;
    color: #0f172a;
    font-size: 16px;
}

.single-post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.single-post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 34px;
}

.single-post-nav-item {
    min-height: 96px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--white);
}

.single-post-nav-item span {
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.single-post-nav-item a {
    color: #0f172a;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.4;
}

.single-post-nav-item a:hover {
    color: var(--primary);
}

.single-post-nav-next {
    text-align: right;
}

.single-post-comments {
    margin-top: 34px;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--white);
}

.single-post-comments .comments-title,
.single-post-comments .comment-reply-title {
    margin-bottom: 16px;
    color: #0f172a;
    font-size: 22px;
    font-weight: 900;
}

.single-post-comments .comment-list {
    margin: 0 0 30px;
    padding: 0;
    list-style: none;
}

.single-post-comments .comment-list .children {
    margin: 18px 0 0 28px;
    padding-left: 18px;
    border-left: 2px solid #e2e8f0;
    list-style: none;
}

.single-post-comments .comment,
.single-post-comments .pingback,
.single-post-comments .trackback {
    margin-bottom: 18px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #f8fafc;
}

.single-post-comments .comment-body {
    position: relative;
}

.single-post-comments .comment-meta {
    margin-bottom: 12px;
}

.single-post-comments .comment-author {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #0f172a;
    font-size: 14px;
    font-weight: 800;
}

.single-post-comments .avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
}

.single-post-comments .says {
    display: none;
}

.single-post-comments .comment-metadata,
.single-post-comments .comment-awaiting-moderation {
    margin-top: 6px;
    color: var(--text-muted);
    font-size: 12px;
}

.single-post-comments .comment-metadata a:hover,
.single-post-comments .comment-edit-link:hover {
    color: var(--primary);
}

.single-post-comments .comment-content {
    color: #233047;
    font-size: 15px;
    line-height: 1.75;
}

.single-post-comments .reply {
    margin-top: 12px;
}

.single-post-comments .comment-reply-link,
.single-post-comments #cancel-comment-reply-link {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 4px 10px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--white);
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
}

.single-post-comments .comment-reply-link:hover,
.single-post-comments #cancel-comment-reply-link:hover {
    border-color: var(--primary);
    background: #eef2ff;
}

.single-post-comments .comment-respond {
    margin-top: 26px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.single-post-comments .comment-notes,
.single-post-comments .logged-in-as {
    margin-bottom: 16px;
    color: var(--text-muted);
    font-size: 14px;
}

.single-post-comments .comment-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.single-post-comments .comment-form-comment,
.single-post-comments .comment-notes,
.single-post-comments .comment-form-cookies-consent,
.single-post-comments .form-submit,
.single-post-comments .logged-in-as {
    grid-column: 1 / -1;
}

.single-post-comments .comment-form label {
    display: block;
    margin-bottom: 7px;
    color: #0f172a;
    font-size: 13px;
    font-weight: 800;
}

.single-post-comments textarea,
.single-post-comments input[type="text"],
.single-post-comments input[type="email"],
.single-post-comments input[type="url"] {
    width: 100%;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    background: #f8fafc;
    color: var(--text-main);
    font: inherit;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.single-post-comments textarea {
    min-height: 150px;
    padding: 14px;
    resize: vertical;
}

.single-post-comments input[type="text"],
.single-post-comments input[type="email"],
.single-post-comments input[type="url"] {
    min-height: 42px;
    padding: 0 12px;
}

.single-post-comments textarea:focus,
.single-post-comments input[type="text"]:focus,
.single-post-comments input[type="email"]:focus,
.single-post-comments input[type="url"]:focus {
    border-color: var(--secondary);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.12);
}

.single-post-comments .comment-form-cookies-consent {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: var(--text-muted);
    font-size: 14px;
}

.single-post-comments .comment-form-cookies-consent label {
    margin: 0;
    color: var(--text-muted);
    font-weight: 600;
}

.single-post-comments input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-top: 3px;
    accent-color: var(--primary);
}

.single-post-comments .submit {
    min-height: 42px;
    padding: 0 18px;
    border: 0;
    border-radius: 8px;
    background: #0f172a;
    color: var(--white);
    cursor: pointer;
    font-size: 14px;
    font-weight: 800;
}

.single-post-comments .submit:hover {
    background: var(--secondary);
}

.single-post-sidebar {
    min-height: auto;
}

/* Blog index */
.blog-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 36px;
    align-items: start;
    margin-top: 32px;
    min-height: 60vh;
}

.blog-main {
    min-width: 0;
    min-height: 60vh;
}

.blog-list {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.blog-list-card {
    display: grid;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03);
}

.blog-list-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
    box-shadow: 0 18px 24px -12px rgba(15, 23, 42, 0.18);
}

.blog-list-card-single-image {
    grid-template-columns: 240px minmax(0, 1fr);
}

.blog-list-card-no-image {
    padding-top: 2px;
}

.blog-list-media {
    display: block;
    overflow: hidden;
    background: #f1f5f9;
}

.blog-list-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-list-media-single {
    min-height: 190px;
}

.blog-list-media-gallery {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 2px;
    height: 178px;
}

.blog-gallery-image {
    display: block;
    min-width: 0;
    overflow: hidden;
    background: #f1f5f9;
}

.blog-gallery-image:first-child {
    grid-row: span 2;
}

.blog-gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-list-body {
    min-width: 0;
    padding: 24px;
}

.blog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 18px;
}

.blog-format-label {
    flex-shrink: 0;
    padding: 4px 8px;
    border-radius: 6px;
    background: #f8fafc;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
}

.blog-sidebar {
    position: sticky;
    top: 96px;
    display: flex;
    flex-direction: column;
    gap: 22px;
    min-height: 60vh;
}

.blog-sidebar-widget {
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

.blog-sidebar-widget h2 {
    margin-bottom: 14px;
    color: #0f172a;
    font-size: 16px;
    font-weight: 800;
}

.blog-sidebar .search-form {
    align-items: center;
    gap: 8px;
    overflow: visible;
    padding: 6px;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    background: #f8fafc;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.blog-sidebar .search-form:focus-within {
    border-color: var(--secondary);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.12);
}

.blog-sidebar .search-field {
    min-height: 38px;
    padding: 0 10px;
    font-size: 14px;
}

.blog-sidebar .search-submit {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    min-height: 38px;
    padding: 0;
    border-radius: 6px;
    background: #0f172a;
    color: var(--white);
    font-size: 0;
    line-height: 1;
    white-space: nowrap;
}

.blog-sidebar .search-submit:hover {
    background: var(--secondary);
}

.blog-sidebar .search-submit::before {
    content: "";
    width: 13px;
    height: 13px;
    border: 2px solid currentColor;
    border-radius: 50%;
}

.blog-sidebar .search-submit::after {
    content: "";
    position: absolute;
    right: 9px;
    bottom: 10px;
    width: 7px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transform: rotate(45deg);
}

.recommended-post-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.recommended-post {
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.recommended-post:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.recommended-post-meta {
    display: block;
    margin-bottom: 5px;
    color: var(--text-muted);
    font-size: 12px;
}

.recommended-post h3 {
    font-size: 15px;
    line-height: 1.45;
}

.recommended-post a:hover {
    color: var(--primary);
}

.sidebar-empty {
    color: var(--text-muted);
    font-size: 14px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
    margin: 40px 0;
}

.blog-card {
    display: flex;
    overflow: hidden;
    flex-direction: column;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03);
}

.blog-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 18px 24px -12px rgba(15, 23, 42, 0.18);
}

.blog-card-image {
    display: block;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f1f5f9;
}

.blog-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-card-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 24px;
}

.blog-card-meta {
    margin-bottom: 10px;
    color: var(--text-muted);
    font-size: 13px;
}

.post-category {
    color: var(--primary);
    font-weight: 700;
}

.blog-card-title {
    margin-bottom: 10px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
}

.blog-card-title a:hover {
    color: var(--primary);
}

.blog-card-excerpt {
    flex: 1;
    margin-bottom: 16px;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.7;
}

.no-posts {
    grid-column: 1 / -1;
    padding: 60px 0;
    color: var(--text-muted);
    text-align: center;
    font-size: 16px;
}

/* Tools page */
.tool-section {
    margin-bottom: 60px;
}

.tool-section .section-header {
    align-items: baseline;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.tool-section .section-header h2 {
    font-size: 24px;
}

.tool-section .section-header p {
    margin: 0;
    color: var(--text-muted);
    font-size: 15px;
}

.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.tool-group {
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

.tool-group:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
    box-shadow: 0 12px 20px -6px rgba(0, 0, 0, 0.08);
}

.tool-group-title {
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    color: var(--primary);
    font-size: 18px;
    font-weight: 700;
}

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

.tool-group li {
    margin-bottom: 12px;
    font-size: 15px;
}

.tool-group li:last-child {
    margin-bottom: 0;
}

.tool-group li a {
    display: flex;
    align-items: center;
    padding: 6px 0;
    color: var(--text-main);
    font-weight: 600;
}

.tool-group li a::before {
    content: ">";
    margin-right: 10px;
    color: var(--primary);
    opacity: 0.65;
}

.tool-group li a:hover {
    color: var(--primary);
}

.tool-group li a:hover::before {
    transform: translateX(4px);
    opacity: 1;
}

/* llms.txt generator */
.llms-generator-page {
    min-height: 760px;
}

.llms-tool-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 28px;
    align-items: end;
    padding: 56px 0 28px;
}

.llms-tool-kicker {
    display: inline-block;
    margin-bottom: 10px;
    color: #0f766e;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.llms-tool-hero h1 {
    max-width: 760px;
    margin-bottom: 14px;
    color: #0f172a;
    font-size: 44px;
    font-weight: 900;
    line-height: 1.08;
}

.llms-tool-hero p {
    max-width: 720px;
    color: var(--text-muted);
    font-size: 17px;
    line-height: 1.75;
}

.llms-hero-note,
.llms-panel {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 18px 32px -24px rgba(15, 23, 42, 0.28);
}

.llms-hero-note {
    display: grid;
    gap: 10px;
    padding: 18px;
}

.llms-hero-note strong {
    color: #0f172a;
    font-size: 14px;
}

.llms-hero-note span:not(:first-child) {
    padding: 9px 10px;
    border: 1px solid #dbeafe;
    border-radius: 6px;
    background: #f8fbff;
    color: #1d4ed8;
    font-size: 13px;
    font-weight: 800;
}

.llms-tool-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.95fr);
    gap: 24px;
    align-items: start;
}

.llms-panel {
    padding: 24px;
}

.llms-output-panel {
    position: sticky;
    top: 96px;
}

.llms-form-section + .llms-form-section {
    margin-top: 28px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
}

.llms-section-title {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.llms-section-title > span {
    display: inline-flex;
    flex: 0 0 34px;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #ecfeff;
    color: #0f766e;
    font-size: 13px;
    font-weight: 900;
}

.llms-section-title h2,
.llms-output-header h2 {
    margin: 0 0 6px;
    color: #0f172a;
    font-size: 20px;
    line-height: 1.25;
}

.llms-section-title p {
    margin: 0;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
}

.llms-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.llms-field {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
}

.llms-field span,
.llms-crawler-group p {
    color: #334155;
    font-size: 13px;
    font-weight: 800;
}

.llms-field input,
.llms-field textarea,
.llms-output-header select {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 7px;
    background: #ffffff;
    color: var(--text-main);
    font: inherit;
}

.llms-field input,
.llms-output-header select {
    min-height: 44px;
    padding: 0 13px;
}

.llms-field textarea {
    resize: vertical;
    min-height: 104px;
    padding: 12px 13px;
    line-height: 1.6;
}

.llms-field input:focus,
.llms-field textarea:focus,
.llms-output-header select:focus,
.llms-output:focus {
    outline: 2px solid rgba(14, 165, 233, 0.18);
    border-color: #0ea5e9;
}

.llms-field small {
    color: var(--text-muted);
    font-size: 12px;
}

.llms-mode-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 18px;
}

.llms-mode-options label,
.llms-check-grid label {
    display: flex;
    align-items: center;
    gap: 9px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #ffffff;
    cursor: pointer;
    color: #334155;
    font-size: 13px;
    font-weight: 800;
}

.llms-mode-options label {
    min-height: 48px;
    padding: 10px 12px;
}

.llms-mode-options input,
.llms-check-grid input {
    accent-color: #0f766e;
}

.llms-crawler-group {
    padding: 16px;
    border: 1px solid #ccfbf1;
    border-radius: 8px;
    background: #f0fdfa;
    transition: opacity 0.2s ease;
}

.llms-crawler-group.is-muted {
    opacity: 0.62;
}

.llms-crawler-group p {
    margin: 0 0 12px;
}

.llms-check-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.llms-check-grid label {
    min-height: 42px;
    padding: 9px 11px;
}

.llms-readiness-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: end;
}

.llms-readiness-row .llms-field {
    margin-bottom: 0;
}

.llms-readiness-row .llms-secondary-btn {
    min-height: 44px;
    margin-bottom: 0;
}

.llms-secondary-btn {
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #ffffff;
    color: #0f172a;
    cursor: pointer;
    font-weight: 800;
}

.llms-secondary-btn:hover {
    border-color: #0ea5e9;
    color: #0369a1;
}

.llms-score-card {
    margin-top: 16px;
    padding: 16px;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    background: #f8fbff;
}

.llms-score-top {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 10px;
}

.llms-score-top strong {
    color: #0f766e;
    font-size: 32px;
    line-height: 1;
}

.llms-score-top span,
.llms-score-card p {
    color: var(--text-muted);
    font-size: 13px;
}

.llms-score-meter {
    overflow: hidden;
    height: 9px;
    margin-bottom: 10px;
    border-radius: 999px;
    background: #e2e8f0;
}

.llms-score-meter span {
    display: block;
    width: 82%;
    height: 100%;
    border-radius: inherit;
    background: #0f766e;
}

.llms-output-header {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 16px;
}

.llms-output-header select {
    max-width: 150px;
}

.llms-output-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 12px;
}

.llms-tab {
    min-height: 38px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #ffffff;
    color: #334155;
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
}

.llms-tab.active {
    border-color: #0f766e;
    background: #0f766e;
    color: #ffffff;
}

.llms-output {
    display: block;
    width: 100%;
    min-height: 520px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #0f172a;
    color: #e5edf7;
    font-family: Consolas, Monaco, "Courier New", monospace;
    font-size: 13px;
    line-height: 1.62;
    resize: vertical;
}

.llms-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.llms-output-status {
    min-height: 20px;
    margin-top: 10px;
    color: #0f766e;
    font-size: 13px;
    font-weight: 800;
}

.llms-faq-section {
    padding: 56px 0 0;
}

.llms-faq-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.llms-faq-card {
    min-height: 190px;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 16px 26px -24px rgba(15, 23, 42, 0.26);
}

.llms-faq-card h3 {
    margin-bottom: 10px;
    color: #0f172a;
    font-size: 16px;
    line-height: 1.35;
}

.llms-faq-card p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.7;
}

/* Footer */
.site-footer {
    margin-top: 100px;
    padding: 80px 0 40px;
    background: #0f172a;
    color: #f8fafc;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 48px;
    margin-bottom: 60px;
}

.footer-grid-standalone {
    grid-template-columns: repeat(3, minmax(180px, 1fr));
}

.footer-column h4 {
    margin-bottom: 24px;
    color: #94a3b8;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
}

.footer-column a {
    display: block;
    margin-bottom: 12px;
    color: #cbd5e1;
    font-size: 14px;
}

.footer-column a:hover {
    color: var(--white);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid #1e293b;
    color: #64748b;
    text-align: center;
    font-size: 13px;
}

/* Responsive */
@media (max-width: 900px) {
    .header-content {
        flex-wrap: wrap;
    }

    .nav-menu {
        order: 3;
        width: 100%;
        justify-content: center;
    }

    .blog-layout {
        grid-template-columns: 1fr;
    }

    .single-post-layout {
        grid-template-columns: 1fr;
    }

    .blog-sidebar {
        position: static;
    }

    .llms-tool-hero,
    .llms-tool-layout {
        grid-template-columns: 1fr;
    }

    .llms-output-panel {
        position: static;
    }
}

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

    .hero {
        padding: 60px 0 40px;
    }

    .hero h1 {
        font-size: 34px;
    }

    .hero p {
        font-size: 16px;
    }

    .section-header,
    .tool-section .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .tools-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }

    .tool-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-list-card-single-image {
        grid-template-columns: 1fr;
    }

    .blog-list-media-single {
        height: 220px;
        min-height: 0;
    }

    .blog-list-media-gallery {
        height: 220px;
    }

    .single-post-wrap {
        padding-top: 36px;
    }

    .single-post-title {
        font-size: 34px;
    }

    .single-post-excerpt {
        font-size: 16px;
    }

    .single-post-featured img {
        max-height: 360px;
    }

    .single-post-comments .comment-form {
        grid-template-columns: 1fr;
    }

    .single-post-comments .comment-list .children {
        margin-left: 12px;
        padding-left: 12px;
    }

    .post-card,
    .search-blog-item,
    .search-blog-item.has-thumb {
        flex-direction: column;
        align-items: flex-start;
    }

    .post-card {
        padding: 20px;
    }

    .search-blog-thumb {
        width: 100%;
        height: 180px;
    }

    .search-overlay-inner {
        padding: 28px 20px 24px;
    }

    .search-form {
        flex-direction: column;
    }

    .blog-sidebar .search-form {
        flex-direction: row;
    }

    .search-submit {
        min-height: 44px;
    }

    .blog-sidebar .search-submit {
        min-height: 38px;
    }

    .llms-tool-hero {
        padding-top: 36px;
    }

    .llms-tool-hero h1 {
        font-size: 34px;
    }

    .llms-form-grid,
    .llms-mode-options,
    .llms-check-grid,
    .llms-readiness-row {
        grid-template-columns: 1fr;
    }

    .llms-output-header {
        flex-direction: column;
    }

    .llms-output-header select {
        max-width: none;
    }

    .llms-output-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .llms-output {
        min-height: 420px;
    }

    .standalone-page-card {
        padding: 30px 24px;
    }

    .standalone-page-title {
        font-size: 32px;
    }

    .llms-faq-grid,
    .footer-grid-standalone {
        grid-template-columns: 1fr 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 520px) {
    .container {
        padding: 0 16px;
    }

    .header-content {
        align-items: flex-start;
    }

    .nav-menu {
        overflow-x: auto;
        justify-content: flex-start;
        gap: 18px;
        padding-bottom: 4px;
    }

    .hero h1,
    .page-hero h1,
    .entry-title {
        font-size: 28px;
    }

    .single-post-title {
        font-size: 30px;
    }

    .standalone-page-card {
        padding: 24px 18px;
    }

    .standalone-page-title {
        font-size: 28px;
    }

    .single-post-meta {
        gap: 8px 12px;
        font-size: 13px;
    }

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

    .single-post-nav-next {
        text-align: left;
    }

    .tools-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .blog-list-body {
        padding: 20px;
    }

    .blog-card-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .blog-list-media-single,
    .blog-list-media-gallery {
        height: 190px;
    }

    .tool-item {
        min-height: 136px;
        padding: 22px 14px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .llms-faq-grid,
    .footer-grid-standalone {
        grid-template-columns: 1fr;
    }
}
