/*
Theme Name: Oopbuy 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 Oopbuy Spreadsheet topic. Includes an auto-generated homepage, category dropdown, product category buttons, and 6 pre-written long-form 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: oopbuy-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: 'Nunito', 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
    color: #2a2d4a;
    line-height: 1.75;
    background:
        radial-gradient(1200px 600px at 0% -10%, #ffe8f2 0%, transparent 60%),
        radial-gradient(1000px 600px at 100% 10%, #e4f4ff 0%, transparent 60%),
        radial-gradient(900px 500px at 60% 100%, #eefbe4 0%, transparent 60%),
        radial-gradient(700px 400px at 20% 90%, #fff4d9 0%, transparent 60%),
        #fdfbff;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #ff6fa1; text-decoration: none; transition: color .2s ease; }
a:hover { color: #ff2f7d; }
h1, h2, h3, h4 { font-family: 'Nunito', sans-serif; color: #1e2144; line-height: 1.3; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 900; letter-spacing: -.02em; }
h2 { font-size: clamp(1.55rem, 2.4vw, 2rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 800; }
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(160%) blur(14px);
    background: rgba(255,255,255,.78);
    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: 'Nunito', sans-serif;
    font-weight: 900; font-size: 1.45rem;
    background: linear-gradient(90deg, #ff7ab0, #7cc6ff 55%, #7bdba9);
    -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: #4a4e70; font-weight: 600; }
.main-nav a:hover { color: #ff6fa1; }

.dropdown { position: relative; }
.dropdown > button {
    background: linear-gradient(135deg, #ffe0ec, #dcefff);
    color: #2a2d4a; border: 0; padding: 9px 16px; border-radius: 999px;
    font-weight: 700; cursor: pointer; font-size: .95rem;
    box-shadow: 0 3px 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: #2a2d4a; font-weight: 600; font-size: .95rem;
}
.dropdown-menu a:hover { background: linear-gradient(135deg, #ffe8f2, #e4f4ff); color: #1e2144; }
.dropdown.open .dropdown-menu { display: block; }

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

/* ---------- Hero ---------- */
.hero { padding: 84px 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: #fff5fb; color: #ff2f7d;
    padding: 6px 14px; border-radius: 999px;
    font-size: .8rem; font-weight: 800; 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, #ff7ab0, #7cc6ff);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead { font-size: 1.1rem; color: #4a4e70; 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: 800; font-size: .98rem;
    transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
    border: 0; cursor: pointer;
}
.btn-primary {
    background: linear-gradient(135deg, #ff7ab0, #ffa2cc);
    color: #fff; box-shadow: 0 10px 26px rgba(255, 122, 176, .35);
}
.btn-primary:hover { transform: translateY(-2px); color: #fff; filter: brightness(1.05); }
.btn-secondary {
    background: linear-gradient(135deg, #7cc6ff, #a9dcff);
    color: #0f2a44; box-shadow: 0 10px 26px rgba(124, 198, 255, .35);
}
.btn-secondary:hover { transform: translateY(-2px); color: #0f2a44; filter: brightness(1.05); }
.btn-ghost {
    background: #fff; color: #2a2d4a; 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 {
    background: linear-gradient(135deg, #ffe8f2 0%, #e4f4ff 55%, #eefbe4 100%);
    border-radius: 28px; padding: 28px;
    box-shadow: 0 20px 60px rgba(120, 90, 200, .18);
}
.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;
    transition: transform .2s ease;
}
.hero-visual .float-card:hover { transform: translateX(4px); }
.dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.dot.pink   { background: #ff7ab0; }
.dot.blue   { background: #7cc6ff; }
.dot.green  { background: #7bdba9; }
.dot.yellow { background: #ffd166; }
.dot.purple { background: #b892ff; }
.hero-visual small { color: #7a7f9a; }

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

/* Category chips */
.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: #2a2d4a; font-weight: 700;
    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: #ff2f7d; }
.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: 800;
}
.badge.c1  { background: linear-gradient(135deg, #ffa2cc, #ff7ab0); }
.badge.c2  { background: linear-gradient(135deg, #ffcf8a, #ffa855); }
.badge.c3  { background: linear-gradient(135deg, #a9dcff, #7cc6ff); }
.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); }

/* Features */
.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);
    transition: transform .15s ease;
}
.feature:hover { transform: translateY(-4px); }
.feature .ico {
    width: 46px; height: 46px; border-radius: 14px;
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 900; margin-bottom: 14px;
    background: linear-gradient(135deg, #ff7ab0, #7cc6ff);
}
.feature h3 { margin-bottom: 8px; }
.feature p { color: #5b607a; margin: 0; }

/* Articles */
.article-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 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: 150px;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Nunito', sans-serif; font-weight: 900; color: #fff; font-size: 1.6rem;
    text-shadow: 0 2px 10px rgba(0,0,0,.12);
}
.article-card .thumb.t1 { background: linear-gradient(135deg, #ffe0ec, #ff7ab0); }
.article-card .thumb.t2 { background: linear-gradient(135deg, #ffe08a, #ffb27a); }
.article-card .thumb.t3 { background: linear-gradient(135deg, #a9dcff, #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 .body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex-grow: 1; }
.article-card .tag { display: inline-block; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: #ff2f7d; margin-bottom: 8px; }
.article-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.article-card p { color: #5b607a; font-size: .95rem; margin-bottom: 14px; flex-grow: 1; }
.article-card a.read-more { font-weight: 800; color: #7cc6ff; }
.article-card a.read-more:hover { color: #ff6fa1; }

/* CTA band */
.cta-band {
    background: linear-gradient(135deg, #ffe0ec 0%, #e4f4ff 50%, #eefbe4 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: #4a4e70; 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.8em; }
.article-body h3 { margin-top: 1.5em; }
.article-body ul { padding-left: 1.2em; }
.article-body ul li { margin-bottom: .5em; }
.article-body .callout {
    background: linear-gradient(135deg, #fff5fb, #eef6ff);
    border-left: 4px solid #ff7ab0;
    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: #ff7ab0; font-weight: 900; }

/* Footer */
.site-footer { margin-top: 40px; background: #1e2144; 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; }
}
