/*
Theme Name: ThumbForge Creator Theme
Theme URI: https://thumbforge.ai
Author: ThumbForge
Author URI: https://thumbforge.ai
Description: A fast, modern WordPress theme for an AI thumbnail, banner, and creator graphics SaaS website. Includes responsive layouts, strong typography, SEO-ready templates, and ThumbForge plugin support.
Version: 1.2.0
Requires at least: 5.8
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: thumbforge-theme
Tags: custom-logo, custom-menu, featured-images, blog, one-column, two-columns, block-styles, wide-blocks
*/

:root {
    --tf-bg: #050816;
    --tf-surface: #0f172a;
    --tf-surface-2: #111827;
    --tf-card: rgba(15, 23, 42, 0.78);
    --tf-text: #f8fafc;
    --tf-muted: #cbd5e1;
    --tf-soft: #94a3b8;
    --tf-border: rgba(255, 255, 255, 0.12);
    --tf-primary: #7c3aed;
    --tf-secondary: #06b6d4;
    --tf-accent: #f59e0b;
    --tf-green: #22c55e;
    --tf-danger: #fb7185;
    --tf-shadow: 0 30px 100px rgba(2, 6, 23, 0.45);
    --tf-radius: 28px;
    --tf-font-heading: "Sora", "Inter", system-ui, sans-serif;
    --tf-font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--tf-font-body);
    background:
        radial-gradient(circle at 10% 0%, rgba(124, 58, 237, 0.26), transparent 30%),
        radial-gradient(circle at 90% 8%, rgba(6, 182, 212, 0.2), transparent 28%),
        linear-gradient(180deg, #050816 0%, #020617 100%);
    color: var(--tf-text);
    line-height: 1.7;
    min-height: 100vh;
}
body.admin-bar .site-header { top: 32px; }
a { color: #67e8f9; text-decoration-thickness: 0.08em; text-underline-offset: 0.16em; }
a:hover { color: #a78bfa; }
img { max-width: 100%; height: auto; border-radius: 18px; }
.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.screen-reader-text { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.site-header {
    position: sticky;
    top: 0;
    z-index: 99;
    border-bottom: 1px solid var(--tf-border);
    background: rgba(5, 8, 22, 0.84);
    backdrop-filter: blur(18px);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 82px;
}
.site-title { margin: 0; font-family: var(--tf-font-heading); font-size: 1.24rem; font-weight: 900; letter-spacing: -0.04em; }
.site-title a { color: #fff; text-decoration: none; }
.site-description { margin: 4px 0 0; color: var(--tf-soft); font-size: 0.86rem; }
.custom-logo-link img { max-height: 48px; width: auto; }
.main-navigation ul { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; list-style: none; margin: 0; padding: 0; }
.main-navigation a {
    display: inline-flex;
    padding: 10px 14px;
    border-radius: 999px;
    color: #e2e8f0;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.94rem;
}
.main-navigation a:hover,
.main-navigation .current-menu-item > a { background: rgba(255,255,255,0.1); color: #fff; }
.menu-toggle { display: none; }
.hero {
    padding: clamp(72px, 12vw, 138px) 0 clamp(46px, 8vw, 90px);
    position: relative;
    overflow: hidden;
}
.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: clamp(32px, 6vw, 72px);
    align-items: center;
}
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    color: #bae6fd;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
}
h1, h2, h3, h4, h5, h6 {
    font-family: var(--tf-font-heading);
    color: #fff;
    line-height: 1.08;
    letter-spacing: -0.05em;
}
h1 { font-size: clamp(2.75rem, 8vw, 6.7rem); margin: 20px 0; }
h2 { font-size: clamp(2rem, 5vw, 3.7rem); margin: 44px 0 18px; }
h3 { font-size: clamp(1.35rem, 3vw, 2rem); margin: 32px 0 12px; }
p { color: var(--tf-muted); }
.lead { font-size: clamp(1.05rem, 2.2vw, 1.32rem); max-width: 760px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.button, .wp-block-button__link, .tf-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 22px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--tf-primary), var(--tf-secondary));
    color: #fff !important;
    text-decoration: none;
    font-weight: 900;
    border: 0;
    box-shadow: 0 16px 50px rgba(124, 58, 237, 0.35);
}
.tf-button.secondary { background: rgba(255,255,255,0.1); box-shadow: none; border: 1px solid var(--tf-border); }
.preview-card {
    border-radius: 38px;
    padding: 22px;
    background:
        linear-gradient(135deg, rgba(124,58,237,0.22), rgba(6,182,212,0.16)),
        rgba(15, 23, 42, 0.75);
    border: 1px solid var(--tf-border);
    box-shadow: var(--tf-shadow);
}
.preview-window {
    min-height: 390px;
    border-radius: 28px;
    padding: 22px;
    background: linear-gradient(145deg, #111827, #020617);
    border: 1px solid rgba(255,255,255,0.1);
}
.preview-art {
    display: grid;
    gap: 14px;
}
.preview-banner {
    height: 170px;
    border-radius: 22px;
    background:
        radial-gradient(circle at 20% 30%, rgba(245,158,11,0.78), transparent 19%),
        radial-gradient(circle at 75% 25%, rgba(6,182,212,0.78), transparent 18%),
        linear-gradient(135deg, #7c3aed, #111827 60%);
}
.preview-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.preview-tile {
    height: 120px;
    border-radius: 20px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
}
.preview-tile:nth-child(2) { background: linear-gradient(135deg, rgba(6,182,212,0.22), rgba(124,58,237,0.2)); }
.section { padding: clamp(48px, 8vw, 86px) 0; }
.section-heading { max-width: 820px; margin-bottom: 30px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card {
    padding: 26px;
    border: 1px solid var(--tf-border);
    border-radius: var(--tf-radius);
    background: var(--tf-card);
    box-shadow: 0 20px 70px rgba(2, 6, 23, 0.22);
}
.card h3 { margin-top: 0; }
.badge {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(6,182,212,0.12);
    color: #a5f3fc;
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.site-main { padding: clamp(50px, 8vw, 86px) 0; }
.content-shell {
    max-width: 880px;
    margin: 0 auto;
    padding: clamp(24px, 5vw, 52px);
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid var(--tf-border);
    border-radius: 34px;
    box-shadow: var(--tf-shadow);
}
.entry-title { margin-top: 0; }
.entry-meta, .entry-footer, .post-navigation, .comments-area { color: var(--tf-soft); font-size: 0.94rem; }
.entry-content ul, .entry-content ol { color: var(--tf-muted); padding-left: 1.4rem; }
.entry-content li { margin-bottom: 10px; }
.entry-content blockquote {
    margin: 28px 0;
    padding: 18px 22px;
    border-left: 4px solid var(--tf-secondary);
    background: rgba(255,255,255,0.06);
    border-radius: 16px;
}
.blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.post-card { display: flex; flex-direction: column; }
.post-card .post-thumbnail img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.post-card h2 { font-size: 1.35rem; margin: 16px 0 10px; letter-spacing: -0.035em; }
.post-card h2 a { color: #fff; text-decoration: none; }
.read-more { margin-top: auto; font-weight: 900; }
.pagination { margin-top: 34px; }
.site-footer {
    margin-top: 60px;
    padding: 64px 0;
    border-top: 1px solid var(--tf-border);
    background: rgba(2, 6, 23, 0.72);
}
.footer-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 30px; align-items: start; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
.footer-links a { color: var(--tf-muted); text-decoration: none; }
.search-form { display: flex; gap: 10px; }
.search-field, input[type="text"], input[type="email"], input[type="url"], textarea {
    width: 100%;
    min-height: 48px;
    border-radius: 16px;
    border: 1px solid var(--tf-border);
    background: rgba(255,255,255,0.06);
    color: #fff;
    padding: 12px 14px;
}
.search-submit, input[type="submit"], button { cursor: pointer; }
@media (max-width: 900px) {
    .hero-grid, .grid-3, .blog-grid, .footer-grid { grid-template-columns: 1fr; }
    .footer-links { justify-content: flex-start; }
    .menu-toggle { display: inline-flex; }
    .main-navigation ul { display: none; position: absolute; left: 20px; right: 20px; top: 82px; padding: 14px; background: #0f172a; border: 1px solid var(--tf-border); border-radius: 20px; }
    .main-navigation.toggled ul { display: grid; }
}
@media (max-width: 600px) {
    body.admin-bar .site-header { top: 0; }
    .container { width: min(100% - 28px, 1180px); }
    .header-inner { min-height: 72px; }
    .preview-row { grid-template-columns: 1fr; }
    .content-shell { border-radius: 24px; }
}
