/*
Theme Name: Hipobuy SEO
Theme URI: https://sheetcn.com/
Author: Hipobuy
Author URI: https://sheetcn.com/
Description: Fresh, air-mail inspired SEO theme for the Hipobuy Spreadsheet affiliate site. Soft mint and sky palette, inline SVG product icons, and dedicated article landing pages for fast Google indexing.
Version: 1.0.0
Requires at least: 5.5
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hipobuy-seo
Tags: one-column, custom-menu, featured-images, seo, affiliate
*/

/* ---------- Reset & base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.75;
    color: #334155;
    background: #fafaf9;
    -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

a { color: #0ea5e9; text-decoration: none; transition: color .2s ease; }
a:hover { color: #0369a1; }

h1, h2, h3, h4 { font-weight: 700; line-height: 1.3; color: #0f172a; margin: 0 0 .6em; letter-spacing: -0.01em; }
h1 { font-size: 2.1rem; }
h2 { font-size: 1.55rem; margin-top: 1.8em; }
h3 { font-size: 1.2rem; margin-top: 1.4em; }
p { margin: 0 0 1em; }

ul, ol { padding-left: 1.3em; margin: 0 0 1em; }
li { margin-bottom: .4em; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.site-header {
    background: rgba(255, 255, 255, .85);
    backdrop-filter: saturate(180%) blur(10px);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid #e0f2fe;
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 14px 0;
}
.site-brand a {
    font-size: 1.4rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.015em;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.site-brand .brand-accent { color: #10b981; }
.site-brand .brand-mark {
    display: inline-flex;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: linear-gradient(135deg, #a7f3d0 0%, #7dd3fc 100%);
    color: #ffffff;
}

.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav > ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.main-nav > ul > li { position: relative; }
.main-nav a,
.main-nav .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    color: #334155;
    font-weight: 600;
    font-size: .95rem;
    border-radius: 8px;
    background: none;
    border: 0;
    cursor: pointer;
    font-family: inherit;
}
.main-nav a:hover,
.main-nav .nav-toggle:hover { background: #ecfeff; color: #0369a1; }
.main-nav .caret { font-size: .7rem; }

.dropdown { position: relative; }
.dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 260px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(14,165,233,.1), 0 4px 10px rgba(0,0,0,.04);
    padding: 8px;
    list-style: none;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: all .18s ease;
}
.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu,
.dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown-menu li { margin: 0; }
.dropdown-menu a {
    display: block;
    padding: 9px 12px;
    border-radius: 8px;
    font-weight: 500;
    color: #475569;
}
.dropdown-menu a:hover { background: #f0f9ff; color: #0369a1; }

.mobile-toggle {
    display: none;
    background: none;
    border: 0;
    font-size: 1.4rem;
    cursor: pointer;
    color: #0f172a;
}

/* ---------- Hero (airmail fresh palette with SVG clouds + plane) ---------- */
.hero {
    position: relative;
    background:
        radial-gradient(1200px 400px at 85% -10%, rgba(167, 243, 208, .55), transparent 70%),
        radial-gradient(900px 500px at 15% 110%, rgba(186, 230, 253, .6), transparent 70%),
        linear-gradient(170deg, #f0f9ff 0%, #ecfeff 45%, #f0fdf4 100%);
    padding: 90px 0 80px;
    text-align: center;
    overflow: hidden;
    border-bottom: 1px solid #e0f2fe;
}
.hero-decor {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}
.hero-decor svg { position: absolute; }
.hero-cloud-a { top: 18%; left: 6%; width: 140px; opacity: .9; animation: floatA 10s ease-in-out infinite; }
.hero-cloud-b { top: 56%; left: 10%; width: 90px; opacity: .85; animation: floatB 12s ease-in-out infinite; }
.hero-cloud-c { top: 22%; right: 7%; width: 170px; opacity: .9; animation: floatA 11s ease-in-out infinite reverse; }
.hero-plane { top: 36%; left: 50%; transform: translateX(-50%); width: 110px; opacity: .9; animation: planeDrift 9s ease-in-out infinite; }
.hero-parcel { bottom: 10%; right: 12%; width: 86px; opacity: .95; animation: floatB 7s ease-in-out infinite; }
.hero-dot-path { top: 42%; left: 8%; width: 85%; height: 50px; opacity: .55; }

@keyframes floatA {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}
@keyframes floatB {
    0%, 100% { transform: translateY(0) translateX(0); }
    50% { transform: translateY(-10px) translateX(6px); }
}
@keyframes planeDrift {
    0%, 100% { transform: translateX(-50%) translateY(0) rotate(-6deg); }
    50% { transform: translateX(-48%) translateY(-16px) rotate(-4deg); }
}

.hero-inner { position: relative; z-index: 1; }
.hero .eyebrow {
    display: inline-block;
    background: rgba(255,255,255,.9);
    border: 1px solid #bbf7d0;
    color: #047857;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 18px;
}
.hero h1 {
    font-size: 2.75rem;
    max-width: 860px;
    margin: 0 auto .5em;
    letter-spacing: -0.025em;
    color: #0f172a;
}
.hero .lede {
    font-size: 1.18rem;
    color: #475569;
    max-width: 740px;
    margin: 0 auto 2.2em;
    line-height: 1.65;
}
.cta-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    border: 2px solid transparent;
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
    white-space: nowrap;
}
.btn-primary {
    background: linear-gradient(135deg, #10b981 0%, #0ea5e9 100%);
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(14,165,233,.3);
}
.btn-primary:hover {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(14,165,233,.38);
}
.btn-secondary {
    background: #ffffff;
    color: #0ea5e9;
    border-color: #7dd3fc;
}
.btn-secondary:hover {
    background: #0ea5e9;
    color: #ffffff;
    border-color: #0ea5e9;
    transform: translateY(-2px);
}

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-light { background: #ffffff; }
.section-tint {
    background:
        radial-gradient(600px 200px at 20% 0%, rgba(236, 254, 255, .9), transparent 60%),
        #fafaf9;
}
.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: .4em;
}
.section-sub {
    text-align: center;
    color: #64748b;
    max-width: 720px;
    margin: 0 auto 2.8em;
    font-size: 1.02rem;
}

/* ---------- Category grid (fresh pastel cards with SVG icons) ---------- */
.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}
.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 26px 18px 22px;
    color: #0f172a;
    font-weight: 600;
    transition: all .22s ease;
    position: relative;
}
.category-card:hover {
    border-color: transparent;
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(14,165,233,.14);
    color: #0369a1;
}
.category-card .icon-wrap {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    background: linear-gradient(135deg, var(--c1, #a7f3d0) 0%, var(--c2, #bae6fd) 100%);
    transition: transform .22s ease;
}
.category-card:hover .icon-wrap { transform: scale(1.06); }
.category-card .icon-wrap svg { width: 32px; height: 32px; color: #ffffff; stroke-width: 1.7; }
.category-card .label { font-size: 1rem; }

/* per-card gradients (soft, fresh) */
.cat-shoes       { --c1:#fbcfe8; --c2:#f9a8d4; }
.cat-hoodies     { --c1:#a7f3d0; --c2:#6ee7b7; }
.cat-tshirts     { --c1:#bae6fd; --c2:#7dd3fc; }
.cat-jackets     { --c1:#c4b5fd; --c2:#a78bfa; }
.cat-pants       { --c1:#fed7aa; --c2:#fdba74; }
.cat-headwear    { --c1:#fde68a; --c2:#fcd34d; }
.cat-accessories { --c1:#99f6e4; --c2:#5eead4; }
.cat-other       { --c1:#fecaca; --c2:#fca5a5; }

/* ---------- Article grid ---------- */
.article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.article-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    transition: all .2s ease;
    position: relative;
    overflow: hidden;
}
.article-card:before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #10b981, #0ea5e9);
    opacity: 0;
    transition: opacity .2s ease;
}
.article-card:hover {
    border-color: #bae6fd;
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(14,165,233,.1);
}
.article-card:hover:before { opacity: 1; }
.article-card .tag {
    display: inline-block;
    background: #ecfeff;
    color: #0369a1;
    font-size: .72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    letter-spacing: .06em;
    text-transform: uppercase;
    align-self: flex-start;
    margin-bottom: 14px;
}
.article-card h3 {
    margin: 0 0 10px;
    font-size: 1.12rem;
    color: #0f172a;
}
.article-card p {
    color: #64748b;
    font-size: .94rem;
    flex-grow: 1;
    margin-bottom: 1.1em;
}
.article-card .read-more {
    font-weight: 700;
    font-size: .9rem;
    align-self: flex-start;
    color: #0ea5e9;
}
.article-card .read-more:after { content: " →"; }

/* ---------- Content / article body ---------- */
.content-area {
    max-width: 820px;
    margin: 0 auto;
    padding: 70px 20px 20px;
}
.content-area h1 { font-size: 2.3rem; letter-spacing: -0.025em; }
.content-area h2 { font-size: 1.5rem; }
.content-area h3 { font-size: 1.18rem; }
.content-area ul li, .content-area ol li { color: #334155; }
.content-area .lede {
    font-size: 1.14rem;
    color: #475569;
    margin-bottom: 1.6em;
}
.content-area .inline-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 30px 0;
}
.related-box {
    margin-top: 54px;
    padding: 28px 30px;
    background: linear-gradient(135deg, #ecfdf5 0%, #f0f9ff 100%);
    border-radius: 16px;
    border: 1px solid #d1fae5;
}
.related-box h3 { margin-top: 0; color: #065f46; }
.related-box ul { margin-bottom: 0; }
.related-box a { color: #0369a1; font-weight: 500; }

.back-home {
    display: inline-block;
    margin-top: 36px;
    font-weight: 600;
    color: #0ea5e9;
}
.back-home:before { content: "← "; }

/* ---------- Footer ---------- */
.site-footer {
    background: #0f172a;
    color: #cbd5e1;
    padding: 56px 0 24px;
    margin-top: 70px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 36px;
    margin-bottom: 32px;
}
.site-footer h4 {
    color: #ffffff;
    font-size: 1rem;
    margin-bottom: 14px;
    letter-spacing: .02em;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #cbd5e1; font-size: .92rem; }
.site-footer a:hover { color: #6ee7b7; }
.footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 20px;
    text-align: center;
    font-size: .85rem;
    color: #94a3b8;
}
.footer-bottom a { color: #6ee7b7; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .category-grid { grid-template-columns: repeat(2, 1fr); }
    .article-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hero h1 { font-size: 2.2rem; }
}

@media (max-width: 720px) {
    h1 { font-size: 1.75rem; }
    .hero { padding: 60px 0 54px; }
    .hero h1 { font-size: 1.95rem; }
    .hero .lede { font-size: 1.02rem; }
    .section { padding: 54px 0; }
    .section-title { font-size: 1.55rem; }
    .hero-cloud-a, .hero-cloud-c { width: 90px; }
    .hero-plane { width: 80px; }
    .hero-parcel { width: 60px; }

    .mobile-toggle { display: inline-flex; }
    .main-nav {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background: #ffffff;
        border-top: 1px solid #e2e8f0;
        box-shadow: 0 10px 20px rgba(0,0,0,.05);
        display: none;
        padding: 10px 16px;
    }
    .main-nav.open { display: block; }
    .main-nav > ul {
        flex-direction: column;
        gap: 2px;
    }
    .dropdown-menu {
        position: static;
        box-shadow: none;
        border: 0;
        padding-left: 10px;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        background: #f8fafc;
    }
    .dropdown.open .dropdown-menu { display: block; }

    .article-grid { grid-template-columns: 1fr; }
    .category-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 420px) {
    .btn { padding: 12px 20px; font-size: .95rem; }
    .category-card { padding: 20px 12px 18px; }
    .category-card .icon-wrap { width: 56px; height: 56px; }
    .category-card .icon-wrap svg { width: 26px; height: 26px; }
}
