/* ================================================
   AI Tool Bible — Dark Theme Stylesheet
   ================================================ */

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #f0f0ec;
    background: #0f0f0e;
    margin: 0;
    padding: 0;
}

a { color: #5ba3e0; text-decoration: none; }
a:hover { color: #7cb8e8; text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
input, select, textarea, button { font-family: inherit; font-size: inherit; }

/* ------------------------------------------------
   Topbar
   ------------------------------------------------ */
.topbar {
    background: #181817;
    border-bottom: 1px solid #2a2a27;
    padding: 0.85rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 8px rgba(0,0,0,0.4);
}

.topbar-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.topbar-logo:hover { text-decoration: none; }

.logo-mark {
    width: 34px; height: 34px;
    border-radius: 8px;
    background: #2563a8;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 0 12px rgba(37,99,168,0.4);
}
.logo-mark svg { width: 18px; height: 18px; }

.logo-name { font-size: 17px; font-weight: 700; color: #f0f0ec; letter-spacing: -0.02em; }
.logo-name span { color: #5ba3e0; }

.breadcrumb { font-size: 12px; color: #aaa; }
.breadcrumb a { color: #aaa; }
.breadcrumb a:hover { color: #5ba3e0; text-decoration: none; }
.breadcrumb .sep { margin: 0 5px; }

/* ------------------------------------------------
   Hero
   ------------------------------------------------ */
.hero {
    background: #181817;
    border-bottom: 1px solid #2a2a27;
    padding: 3.5rem 1.5rem 2.5rem;
    text-align: center;
}

.hero-eyebrow {
    display: inline-block;
    font-size: 11px; font-weight: 700;
    letter-spacing: 0.12em; color: #5ba3e0;
    text-transform: uppercase;
    margin-bottom: 1rem;
    background: rgba(91,163,224,0.12);
    border: 1px solid rgba(91,163,224,0.25);
    padding: 4px 14px; border-radius: 99px;
}

.hero h1 {
    font-size: 2.6rem; font-weight: 800;
    color: #f0f0ec; line-height: 1.1;
    margin: 0 0 0.85rem;
    letter-spacing: -0.04em;
}
.hero h1 span { color: #5ba3e0; }

.hero p {
    font-size: 1rem; color: #a8a8a4;
    max-width: 480px; margin: 0 auto 1.75rem;
    line-height: 1.75;
}

/* ------------------------------------------------
   Search
   ------------------------------------------------ */
.search-form { display: flex; gap: 8px; max-width: 520px; margin: 0 auto; }

.search-form input {
    flex: 1; padding: 12px 18px;
    border: 1.5px solid #2e2e2b; border-radius: 10px;
    font-size: 14px;
    background: #222220; color: #f0f0ec;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.search-form input:focus {
    outline: none; border-color: #2563a8;
    box-shadow: 0 0 0 3px rgba(37,99,168,0.2);
}
.search-form input::placeholder { color: #666; }

.search-form button {
    padding: 12px 22px;
    background: #2563a8; color: #fff;
    border: none; border-radius: 10px;
    font-size: 14px; font-weight: 600;
    cursor: pointer; transition: background 0.15s;
    white-space: nowrap;
}
.search-form button:hover { background: #1d4f8a; }

/* ------------------------------------------------
   Stats Bar
   ------------------------------------------------ */
.stats-bar {
    background: #181817; border-bottom: 1px solid #2a2a27;
    display: flex; justify-content: center;
    gap: 3rem; padding: 1.1rem 1.5rem; flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-num { font-size: 20px; font-weight: 800; color: #f0f0ec; letter-spacing: -0.03em; }
.stat-lbl { font-size: 11px; color: #aaa; text-transform: uppercase; letter-spacing: 0.06em; margin-top: 2px; }

/* ------------------------------------------------
   Filters
   ------------------------------------------------ */
.filters-wrap { padding: 1.25rem 1.5rem 0.5rem; background: #0f0f0e; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }

.filter-btn {
    padding: 7px 16px; border-radius: 99px;
    border: 1.5px solid #2a2a27;
    font-size: 13px; font-weight: 500;
    cursor: pointer; background: #181817; color: #b0b0ac;
    text-decoration: none; display: inline-block;
    transition: all 0.15s; white-space: nowrap;
}
.filter-btn:hover { border-color: #2563a8; color: #5ba3e0; text-decoration: none; background: #181817; }
.filter-btn.active { background: #2563a8; color: #fff; border-color: #2563a8; font-weight: 700; }

/* ------------------------------------------------
   Section Labels
   ------------------------------------------------ */
.section-label {
    padding: 1.25rem 1.5rem 0.75rem;
    font-size: 11px; font-weight: 700;
    color: #666; letter-spacing: 0.1em; text-transform: uppercase;
}

/* ------------------------------------------------
   Cards Grid
   ------------------------------------------------ */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
    padding: 0 1.5rem 1.5rem;
}

.tool-card {
    background: #1a1a18;
    border: 1.5px solid #2a2a27;
    border-radius: 14px;
    padding: 1.25rem;
    display: flex; flex-direction: column;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
    position: relative;
}
.tool-card:hover {
    border-color: #2563a8;
    box-shadow: 0 4px 24px rgba(0,0,0,0.4), 0 0 0 1px rgba(37,99,168,0.2);
    transform: translateY(-1px);
}
.tool-card.featured {
    border: 2px solid #2563a8;
    box-shadow: 0 0 20px rgba(37,99,168,0.15);
}

.featured-badge {
    display: inline-block;
    background: rgba(37,99,168,0.2);
    color: #5ba3e0;
    font-size: 10px; font-weight: 700;
    padding: 3px 10px; border-radius: 6px;
    margin-bottom: 10px;
    letter-spacing: 0.06em; text-transform: uppercase;
    border: 1px solid rgba(91,163,224,0.2);
}

.card-top {
    display: flex; align-items: flex-start;
    justify-content: space-between; margin-bottom: 12px;
}

.card-icon {
    width: 46px; height: 46px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; flex-shrink: 0;
    background: #222220; border: 1px solid #2e2e2b;
}

.card-meta { text-align: right; }

.cat-tag {
    display: inline-block; font-size: 11px; font-weight: 700;
    padding: 3px 9px; border-radius: 6px;
    background: #222220; color: #b0b0ac;
    text-transform: uppercase; letter-spacing: 0.05em;
}
.cat-tag.writing      { background: rgba(37,99,168,0.2);  color: #5ba3e0; }
.cat-tag.image        { background: rgba(127,119,221,0.2); color: #a89cf0; }
.cat-tag.video        { background: rgba(186,117,23,0.2);  color: #d4a043; }
.cat-tag.code         { background: rgba(59,109,17,0.2);   color: #7ab84a; }
.cat-tag.productivity { background: rgba(15,110,86,0.2);   color: #3dcaa5; }
.cat-tag.audio        { background: rgba(153,53,86,0.2);   color: #e07aaa; }
.cat-tag.seo          { background: rgba(37,99,168,0.2);   color: #5ba3e0; }
.cat-tag.marketing    { background: rgba(186,117,23,0.2);  color: #d4a043; }
.cat-tag.design       { background: rgba(127,119,221,0.2); color: #a89cf0; }

.card-price { font-size: 11px; color: #666; margin-top: 4px; }

.tool-card h3 {
    font-size: 16px; font-weight: 700; color: #f0f0ec;
    margin: 0 0 6px; letter-spacing: -0.02em;
}
.tool-card p {
    font-size: 13px; color: #b0b0ac; line-height: 1.65;
    margin: 0 0 16px; flex: 1;
}

.card-footer {
    display: flex; align-items: center;
    justify-content: space-between; margin-top: auto;
}

.card-rating { display: flex; align-items: center; gap: 5px; font-size: 12px; color: #aaa; }
.stars { color: #c49020; font-size: 13px; letter-spacing: -1px; }

.btn-learn-more {
    font-size: 12px; font-weight: 600;
    padding: 7px 16px; border-radius: 8px;
    background: #222220; border: 1.5px solid #2e2e2b;
    color: #aaa; text-decoration: none;
    cursor: pointer; transition: all 0.15s; white-space: nowrap;
}
.btn-learn-more:hover {
    background: #2563a8; color: #fff;
    border-color: #2563a8; text-decoration: none;
}

/* ------------------------------------------------
   Verse Block
   ------------------------------------------------ */
.verse-block {
    margin: 0.5rem 1.5rem 1.25rem;
    padding: 1rem 1.25rem;
    background: #1a1a18;
    border-left: 4px solid #2563a8;
    border-radius: 0 10px 10px 0;
    border-top: 1px solid #2a2a27;
    border-right: 1px solid #2a2a27;
    border-bottom: 1px solid #2a2a27;
}
.verse-label {
    font-size: 10px; font-weight: 700;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: #5ba3e0; margin-bottom: 5px;
}
.verse-text { font-size: 13px; color: #aaa; line-height: 1.7; font-style: italic; }

/* ------------------------------------------------
   Ad Banner
   ------------------------------------------------ */
.ad-banner {
    margin: 0.5rem 1.5rem 2rem;
    padding: 1.1rem 1.4rem;
    background: #1a1a18; border: 1.5px solid #2a2a27;
    border-radius: 14px;
    display: flex; align-items: center;
    justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.ad-label { font-size: 10px; color: #333; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 3px; font-weight: 700; }
.ad-text { font-size: 14px; font-weight: 700; color: #f0f0ec; }
.ad-sub { font-size: 12px; color: #aaa; margin-top: 2px; }

.btn-get-listed {
    padding: 9px 18px; border-radius: 9px;
    border: 1.5px solid #2a2a27; font-size: 13px; font-weight: 600;
    cursor: pointer; background: #222220; color: #aaa;
    text-decoration: none; display: inline-block;
    white-space: nowrap; transition: all 0.15s;
}
.btn-get-listed:hover { background: #2563a8; color: #fff; border-color: #2563a8; text-decoration: none; }

/* ------------------------------------------------
   No Results
   ------------------------------------------------ */
.no-results { padding: 4rem 1.5rem; text-align: center; color: #666; font-size: 15px; }
.no-results a { color: #5ba3e0; }

/* ------------------------------------------------
   Footer
   ------------------------------------------------ */
.site-footer {
    background: #181817; border-top: 1px solid #2a2a27;
    padding: 1.5rem; text-align: center;
    font-size: 13px; color: #666; margin-top: 1rem;
}
.site-footer a { color: #666; }
.site-footer a:hover { color: #5ba3e0; }
.footer-aff-note { font-size: 11px; color: #666; margin-top: 6px; }

/* ------------------------------------------------
   Tool Detail Page
   ------------------------------------------------ */
.tool-hero {
    background: #181817; border-bottom: 1px solid #2a2a27;
    padding: 2rem 1.5rem 1.5rem;
}
.tool-hero-top {
    display: flex; align-items: flex-start;
    gap: 1.25rem; margin-bottom: 1.25rem; flex-wrap: wrap;
}
.tool-icon-lg {
    width: 70px; height: 70px; border-radius: 14px;
    background: #222220; border: 1px solid #2e2e2b;
    display: flex; align-items: center; justify-content: center;
    font-size: 34px; flex-shrink: 0;
}
.tool-icon-lg img { width: 54px; height: 54px; object-fit: contain; border-radius: 8px; }

.tool-hero-meta { flex: 1; min-width: 200px; }
.tool-hero-meta h1 {
    font-size: 2rem; font-weight: 800; color: #f0f0ec;
    margin: 0 0 5px; letter-spacing: -0.04em;
}
.tool-hero-sub { font-size: 13px; color: #bbb; margin-bottom: 12px; }
.tool-hero-sub strong { color: #aaa; }

.badge-row { display: flex; flex-wrap: wrap; gap: 7px; }
.badge {
    display: inline-block; font-size: 11px; font-weight: 700;
    padding: 4px 12px; border-radius: 99px; letter-spacing: 0.04em;
}
.badge-cat     { background: rgba(37,99,168,0.2);  color: #5ba3e0;  border: 1px solid rgba(91,163,224,0.2); }
.badge-free    { background: rgba(59,109,17,0.2);   color: #7ab84a;  border: 1px solid rgba(122,184,74,0.2); }
.badge-popular { background: rgba(127,119,221,0.2); color: #a89cf0;  border: 1px solid rgba(168,156,240,0.2); }
.badge-aff     { background: rgba(186,117,23,0.2);  color: #d4a043;  border: 1px solid rgba(212,160,67,0.2); }

.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 1.25rem; }

.btn-primary {
    padding: 11px 24px; border-radius: 10px;
    background: #2563a8; color: #fff;
    font-size: 14px; font-weight: 700;
    border: none; cursor: pointer; text-decoration: none;
    display: inline-block; transition: background 0.15s;
    box-shadow: 0 2px 12px rgba(37,99,168,0.3);
}
.btn-primary:hover { background: #1d4f8a; text-decoration: none; color: #fff; }

.btn-secondary {
    padding: 11px 20px; border-radius: 10px;
    background: #222220; color: #aaa;
    font-size: 14px; font-weight: 500;
    border: 1.5px solid #2e2e2b; cursor: pointer;
    text-decoration: none; display: inline-block; transition: all 0.15s;
}
.btn-secondary:hover { background: #2a2a27; color: #ccc; text-decoration: none; }

.tool-stats-row {
    background: #181817; border-bottom: 1px solid #2a2a27;
    display: flex; gap: 2.5rem; padding: 1rem 1.5rem; flex-wrap: wrap;
}
.tool-stat { text-align: center; }
.tool-stat-val { font-size: 19px; font-weight: 800; color: #f0f0ec; letter-spacing: -0.03em; }
.tool-stat-lbl { font-size: 11px; color: #aaa; text-transform: uppercase; letter-spacing: 0.05em; }

.tool-content { max-width: 900px; margin: 0 auto; padding: 1.5rem; }

.info-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(180px,1fr)); gap: 10px; margin-bottom: 1.5rem; }
.info-card { background: #1a1a18; border: 1px solid #2a2a27; border-radius: 10px; padding: 0.85rem 1rem; }
.info-card-label { font-size: 10px; font-weight: 700; color: #666; text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 4px; }
.info-card-value { font-size: 14px; font-weight: 600; color: #f0f0ec; }

.content-section {
    background: #1a1a18; border: 1px solid #2a2a27;
    border-radius: 14px; padding: 1.4rem 1.5rem; margin-bottom: 1.25rem;
}
.content-section h2 {
    font-size: 16px; font-weight: 700; color: #f0f0ec;
    margin: 0 0 0.85rem; padding-bottom: 0.6rem;
    border-bottom: 1px solid #242422; letter-spacing: -0.01em;
}
.content-section p { font-size: 14px; color: #a8a8a4; line-height: 1.8; margin: 0 0 0.75rem; }
.content-section p:last-child { margin-bottom: 0; }

.audience-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 0.75rem; }
.audience-tag {
    font-size: 12px; padding: 6px 13px; border-radius: 99px;
    background: #222220; border: 1px solid #2e2e2b; color: #a8a8a4; font-weight: 500;
}

.pros-cons-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(240px,1fr)); gap: 14px; margin-top: 0.75rem; }

.pros-box, .cons-box {
    background: #1a1a18; border: 1px solid #2a2a27;
    border-radius: 0 0 12px 12px; padding: 1.1rem;
}
.pros-box { border-top: 4px solid #3a7a18; }
.cons-box { border-top: 4px solid #8a2424; }
.pros-box h3 { font-size: 12px; font-weight: 800; color: #7ab84a; margin: 0 0 10px; text-transform: uppercase; letter-spacing: 0.07em; }
.cons-box h3 { font-size: 12px; font-weight: 800; color: #e06060; margin: 0 0 10px; text-transform: uppercase; letter-spacing: 0.07em; }

.pc-list { list-style: none; padding: 0; margin: 0; }
.pc-list li {
    font-size: 13px; color: #a8a8a4; line-height: 1.6;
    padding: 7px 0; border-bottom: 1px solid #222220;
    display: flex; gap: 9px; align-items: flex-start;
}
.pc-list li:last-child { border-bottom: none; padding-bottom: 0; }

.dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; flex-shrink: 0; }
.dot-green { background: #5a9e30; }
.dot-red   { background: #c04040; }

.pricing-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 0.85rem; }
.pricing-table th {
    text-align: left; padding: 9px 14px;
    background: #222220; color: #666; font-weight: 700;
    font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em;
    border-bottom: 1px solid #2a2a27;
}
.pricing-table td { padding: 10px 14px; border-bottom: 1px solid #222220; color: #aaa; vertical-align: top; }
.pricing-table tr:last-child td { border-bottom: none; }
.pricing-table td:first-child { font-weight: 600; color: #f0f0ec; }

.verdict-box {
    background: rgba(37,99,168,0.1);
    border-left: 4px solid #2563a8;
    border-radius: 0 10px 10px 0; padding: 1.25rem; margin-top: 0.85rem;
    border-top: 1px solid rgba(37,99,168,0.2);
    border-right: 1px solid rgba(37,99,168,0.2);
    border-bottom: 1px solid rgba(37,99,168,0.2);
}
.verdict-box p { font-size: 14px; color: #7cb8e8; line-height: 1.8; margin: 0; }

.tool-bottom-cta { text-align: center; padding: 1.5rem 0 0.5rem; }
.aff-note { font-size: 11px; color: #666; margin-top: 10px; }

/* ------------------------------------------------
   Scrollbar (WebKit)
   ------------------------------------------------ */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #0f0f0e; }
::-webkit-scrollbar-thumb { background: #2a2a27; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #3a3a36; }

/* ------------------------------------------------
   Responsive
   ------------------------------------------------ */
@media (max-width: 640px) {
    .hero h1 { font-size: 1.8rem; }
    .search-form { flex-direction: column; }
    .search-form button { width: 100%; text-align: center; }
    .stats-bar { gap: 1.5rem; }
    .cards-grid { grid-template-columns: 1fr; padding: 0 1rem 1rem; }
    .filters-wrap { padding: 1rem 1rem 0.5rem; }
    .topbar { padding: 0.75rem 1rem; }
    .tool-hero, .tool-content { padding: 1.25rem 1rem; }
    .content-section { padding: 1.1rem 1rem; }
    .ad-banner, .verse-block { margin-left: 1rem; margin-right: 1rem; }
    .section-label { padding-left: 1rem; padding-right: 1rem; }
}
