/*
Theme Name: Lovegobuy Spreadsheet Guide
Theme URI: https://sheetfinds.com/
Author: SheetFinds
Author URI: https://sheetfinds.com/
Description: A fresh, colorful SEO-focused WordPress theme built around the Lovegobuy Spreadsheet topic. Includes an auto-generated homepage, category dropdown, product category buttons, and 21 pre-written SEO guide articles with internal linking.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lovegobuy-spreadsheet
Tags: seo, blog, colorful, light, ecommerce, guide
*/

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Poppins', 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
    color: #2b2d42;
    line-height: 1.7;
    background:
        radial-gradient(1200px 600px at 10% -10%, #ffe4f0 0%, transparent 60%),
        radial-gradient(1000px 600px at 100% 0%, #dff3ff 0%, transparent 60%),
        radial-gradient(900px 500px at 50% 100%, #eafbe7 0%, transparent 60%),
        #fdfcff;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #ff5c8a; text-decoration: none; transition: color .2s ease; }
a:hover { color: #ff2b6d; }
h1, h2, h3, h4 { font-family: 'Poppins', sans-serif; color: #1f2340; line-height: 1.25; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
p  { margin: 0 0 1em; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    backdrop-filter: saturate(150%) blur(14px);
    background: rgba(255,255,255,.75);
    border-bottom: 1px solid rgba(255,255,255,.6);
    box-shadow: 0 6px 24px rgba(80, 60, 120, .06);
}
.site-header .inner {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 0;
}
.site-logo {
    font-family: 'Poppins', sans-serif;
    font-weight: 800; font-size: 1.4rem;
    background: linear-gradient(90deg, #ff6ba8, #6bc4ff 60%, #6be2b6);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    letter-spacing: -.5px;
}
.main-nav { display: flex; align-items: center; gap: 18px; }
.main-nav a { color: #4b4f6d; font-weight: 500; }
.main-nav a:hover { color: #ff5c8a; }

/* Dropdowns */
.dropdown { position: relative; }
.dropdown > button {
    background: linear-gradient(135deg, #ffd6e7, #d8ecff);
    color: #2b2d42; border: 0; padding: 9px 16px; border-radius: 999px;
    font-weight: 600; cursor: pointer; font-size: .95rem;
    box-shadow: 0 2px 10px rgba(120, 90, 200, .12);
}
.dropdown > button:hover { filter: brightness(1.03); }
.dropdown-menu {
    display: none; position: absolute; right: 0; top: calc(100% + 8px);
    background: #ffffff; border-radius: 14px; min-width: 240px;
    box-shadow: 0 12px 40px rgba(80, 60, 120, .18);
    padding: 8px; overflow: hidden; z-index: 60;
}
.dropdown-menu a {
    display: block; padding: 10px 14px; border-radius: 10px;
    color: #2b2d42; font-weight: 500; font-size: .95rem;
}
.dropdown-menu a:hover { background: linear-gradient(135deg, #ffe4f0, #dff3ff); color: #1f2340; }
.dropdown.open .dropdown-menu { display: block; }

/* Mobile toggle */
.nav-toggle { display: none; background: transparent; border: 0; font-size: 1.5rem; cursor: pointer; color: #2b2d42; }

/* ---------- Hero ---------- */
.hero {
    padding: 80px 0 60px;
    position: relative; overflow: hidden;
}
.hero-grid {
    display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center;
}
.hero .eyebrow {
    display: inline-block;
    background: #fff4fa; color: #ff2b6d;
    padding: 6px 14px; border-radius: 999px;
    font-size: .8rem; font-weight: 700; letter-spacing: .06em;
    text-transform: uppercase; margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(255, 80, 130, .12);
}
.hero h1 span {
    background: linear-gradient(90deg, #ff6ba8, #6bc4ff);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead { font-size: 1.1rem; color: #4b4f6d; max-width: 560px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 26px; border-radius: 999px;
    font-weight: 700; font-size: .98rem;
    transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
    border: 0; cursor: pointer;
}
.btn-primary {
    background: linear-gradient(135deg, #ff6ba8, #ff9ecb);
    color: #fff;
    box-shadow: 0 10px 26px rgba(255, 107, 168, .35);
}
.btn-primary:hover { transform: translateY(-2px); color: #fff; filter: brightness(1.05); }
.btn-secondary {
    background: linear-gradient(135deg, #6bc4ff, #a4dfff);
    color: #0f2a44;
    box-shadow: 0 10px 26px rgba(107, 196, 255, .35);
}
.btn-secondary:hover { transform: translateY(-2px); color: #0f2a44; filter: brightness(1.05); }
.btn-ghost {
    background: #fff; color: #2b2d42; border: 1.5px solid #e7e3ff;
    box-shadow: 0 6px 18px rgba(120, 90, 200, .08);
}
.btn-ghost:hover { transform: translateY(-2px); border-color: #c8bfff; }

/* Hero visual card */
.hero-visual {
    background: linear-gradient(135deg, #ffe4f0 0%, #dff3ff 55%, #eafbe7 100%);
    border-radius: 28px; padding: 28px;
    box-shadow: 0 20px 60px rgba(120, 90, 200, .18);
    position: relative;
}
.hero-visual .float-card {
    background: #fff; border-radius: 16px; padding: 16px 18px;
    box-shadow: 0 10px 30px rgba(80, 60, 120, .12);
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 12px;
}
.dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.dot.pink { background: #ff6ba8; }
.dot.blue { background: #6bc4ff; }
.dot.green { background: #6be2b6; }
.dot.yellow { background: #ffd166; }
.dot.purple { background: #b892ff; }
.hero-visual small { color: #7a7f9a; }

/* ---------- Sections ---------- */
section { padding: 60px 0; }
.section-head { text-align: center; margin-bottom: 40px; }
.section-head p { color: #6a6e8a; max-width: 640px; margin: 0 auto; }

/* Category chip buttons */
.chip-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
}
.chip {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px; border-radius: 18px;
    background: #fff; color: #2b2d42; font-weight: 600;
    box-shadow: 0 6px 18px rgba(120, 90, 200, .08);
    border: 1px solid rgba(230, 225, 255, .8);
    transition: transform .15s ease, box-shadow .2s ease;
}
.chip:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(120, 90, 200, .18); color: #ff2b6d; }
.chip .badge {
    width: 30px; height: 30px; border-radius: 10px;
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff; font-size: .85rem; font-weight: 700;
}
.badge.c1 { background: linear-gradient(135deg, #ff9ecb, #ff6ba8); }
.badge.c2 { background: linear-gradient(135deg, #ffd18b, #ffab5c); }
.badge.c3 { background: linear-gradient(135deg, #a4dfff, #6bc4ff); }
.badge.c4 { background: linear-gradient(135deg, #b892ff, #8f66ff); }
.badge.c5 { background: linear-gradient(135deg, #7de1b3, #4dc98d); }
.badge.c6 { background: linear-gradient(135deg, #ffe08a, #ffc94d); }
.badge.c7 { background: linear-gradient(135deg, #ff9d9d, #ff6b6b); }
.badge.c8 { background: linear-gradient(135deg, #9de5df, #4dc7bf); }
.badge.c9 { background: linear-gradient(135deg, #c9a3ff, #a97bff); }
.badge.c10 { background: linear-gradient(135deg, #ffb5d1, #ff85b3); }
.badge.c11 { background: linear-gradient(135deg, #b2e4ff, #7cc7f5); }

/* Feature blocks */
.feature-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
}
.feature {
    background: #fff; border-radius: 22px; padding: 26px;
    box-shadow: 0 10px 30px rgba(120, 90, 200, .08);
    border: 1px solid rgba(230, 225, 255, .8);
}
.feature .ico {
    width: 46px; height: 46px; border-radius: 14px;
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 800; margin-bottom: 14px;
    background: linear-gradient(135deg, #ff6ba8, #6bc4ff);
}
.feature h3 { margin-bottom: 8px; }
.feature p { color: #5b607a; margin: 0; }

/* Article cards */
.article-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
}
.article-card {
    background: #fff; border-radius: 20px; overflow: hidden;
    box-shadow: 0 10px 30px rgba(120, 90, 200, .08);
    border: 1px solid rgba(230, 225, 255, .8);
    transition: transform .15s ease, box-shadow .2s ease;
    display: flex; flex-direction: column;
}
.article-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(120, 90, 200, .18); }
.article-card .thumb {
    height: 140px; background: linear-gradient(135deg, #ffd6e7, #d8ecff);
    display: flex; align-items: center; justify-content: center;
    font-family: 'Poppins', sans-serif; font-weight: 800; color: #fff; font-size: 1.4rem;
    text-shadow: 0 2px 10px rgba(0,0,0,.12);
}
.article-card .thumb.t2  { background: linear-gradient(135deg, #ffe08a, #ffb27a); }
.article-card .thumb.t3  { background: linear-gradient(135deg, #a4dfff, #7cc7f5); }
.article-card .thumb.t4  { background: linear-gradient(135deg, #c9a3ff, #a97bff); }
.article-card .thumb.t5  { background: linear-gradient(135deg, #7de1b3, #4dc98d); }
.article-card .thumb.t6  { background: linear-gradient(135deg, #ffb5d1, #ff85b3); }
.article-card .thumb.t7  { background: linear-gradient(135deg, #b2e4ff, #7cc7f5); }
.article-card .thumb.t8  { background: linear-gradient(135deg, #9de5df, #4dc7bf); }
.article-card .thumb.t9  { background: linear-gradient(135deg, #ffe4a1, #ffc76b); }
.article-card .thumb.t10 { background: linear-gradient(135deg, #d6c1ff, #b599ff); }
.article-card .body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex-grow: 1; }
.article-card .tag { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #ff2b6d; margin-bottom: 8px; }
.article-card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.article-card p { color: #5b607a; font-size: .93rem; margin-bottom: 14px; flex-grow: 1; }
.article-card a.read-more { font-weight: 700; color: #6bc4ff; }
.article-card a.read-more:hover { color: #ff5c8a; }

/* Big CTA band */
.cta-band {
    background: linear-gradient(135deg, #ffd6e7 0%, #dff3ff 50%, #eafbe7 100%);
    border-radius: 28px; padding: 46px;
    text-align: center; box-shadow: 0 16px 44px rgba(120, 90, 200, .12);
}
.cta-band h2 { margin-bottom: 10px; }
.cta-band p { color: #4b4f6d; max-width: 640px; margin: 0 auto 22px; }

/* Article page */
.article-hero {
    padding: 80px 0 30px;
}
.article-hero h1 { max-width: 820px; }
.article-hero .meta { color: #7a7f9a; font-size: .9rem; margin-bottom: 8px; }
.article-body { padding: 20px 0 60px; }
.article-body .container { max-width: 820px; }
.article-body h2 { margin-top: 1.6em; }
.article-body h3 { margin-top: 1.4em; }
.article-body ul { padding-left: 1.2em; }
.article-body ul li { margin-bottom: .5em; }
.article-body .callout {
    background: linear-gradient(135deg, #fff4fa, #eef6ff);
    border-left: 4px solid #ff6ba8;
    padding: 18px 22px; border-radius: 14px; margin: 24px 0;
}
.article-body .related {
    margin-top: 40px; padding: 26px; border-radius: 20px;
    background: #fff; box-shadow: 0 10px 30px rgba(120, 90, 200, .08);
    border: 1px solid rgba(230, 225, 255, .8);
}
.article-body .related h3 { margin-top: 0; }
.article-body .related ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; }
.article-body .related ul li::before { content: "› "; color: #ff6ba8; font-weight: 800; }
.back-home {
    display: inline-flex; align-items: center; gap: 8px;
    margin-top: 24px; font-weight: 700; color: #6bc4ff;
}

/* ---------- Footer ---------- */
.site-footer {
    margin-top: 40px;
    background: #1f2340; color: #d7d9e8; padding: 46px 0 22px;
}
.site-footer a { color: #ffb5d1; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.site-footer h4 { color: #fff; margin-bottom: 12px; font-size: 1rem; letter-spacing: .04em; text-transform: uppercase; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer ul li { margin-bottom: 6px; font-size: .92rem; }
.footer-bottom {
    margin-top: 30px; padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,.1);
    text-align: center; font-size: .85rem; color: #a8adc7;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero { padding: 60px 0 40px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .article-body .related ul { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .nav-toggle { display: inline-block; }
    .main-nav { position: absolute; top: 100%; right: 20px; left: 20px;
        background: #fff; border-radius: 16px; padding: 14px;
        box-shadow: 0 12px 30px rgba(80, 60, 120, .18);
        display: none; flex-direction: column; align-items: stretch; gap: 10px;
    }
    .main-nav.open { display: flex; }
    .dropdown-menu { position: static; box-shadow: none; }
    .footer-grid { grid-template-columns: 1fr; }
    section { padding: 44px 0; }
    .cta-band { padding: 30px 22px; }
}
