/*
Theme Name: Kakobuy SEO
Theme URI: https://sheetcn.com/
Author: SheetCN
Author URI: https://sheetcn.com/
Description: A fresh, light, SEO-optimized WordPress theme for kakobuy spreadsheet content. Features bright pastel colors, Western shopping aesthetic, dropdown categories, and clean typography optimized for Google indexing.
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: kakobuy-seo
Tags: blog, custom-colors, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ============ RESET & BASE ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #2D3047;
    background: #FFFBF5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #FF6B9D; text-decoration: none; transition: color .2s ease; }
a:hover { color: #e04a7f; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.3; color: #2D3047; margin-bottom: .6em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: clamp(1.2rem, 2.4vw, 1.5rem); }
p { margin-bottom: 1em; }
ul, ol { margin: 0 0 1em 1.2em; }
li { margin-bottom: .4em; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ============ HEADER ============ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 251, 245, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(45, 48, 71, 0.08);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    gap: 20px;
}
.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.25rem;
    color: #2D3047;
    letter-spacing: -0.02em;
}
.site-logo:hover { color: #FF6B9D; }
.logo-mark {
    width: 36px; height: 36px;
    background: linear-gradient(135deg, #FF6B9D 0%, #FFE66D 100%);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 900; font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(255, 107, 157, 0.25);
}

.main-nav { display: flex; align-items: center; gap: 8px; }
.main-nav ul { display: flex; list-style: none; margin: 0; padding: 0; gap: 4px; }
.main-nav li { margin: 0; position: relative; }
.main-nav a {
    display: block;
    padding: 10px 14px;
    color: #4A5068;
    font-weight: 500;
    font-size: .95rem;
    border-radius: 8px;
}
.main-nav a:hover { color: #FF6B9D; background: rgba(255, 107, 157, 0.08); }

/* Dropdowns */
.has-dropdown > a::after {
    content: "";
    display: inline-block;
    margin-left: 6px;
    border: 4px solid transparent;
    border-top-color: currentColor;
    transform: translateY(2px);
}
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(45, 48, 71, 0.12);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all .2s ease;
    list-style: none;
    display: block !important;
}
.has-dropdown:hover > .dropdown,
.has-dropdown:focus-within > .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown li { margin: 0; }
.dropdown a {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: .92rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
.dropdown a::before {
    content: "";
    width: 6px; height: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF6B9D, #45B7D1);
    flex-shrink: 0;
}
.dropdown a:hover { background: #FFF5F8; }

.menu-toggle {
    display: none;
    width: 42px; height: 42px;
    border-radius: 10px;
    background: #FFF5F8;
    color: #2D3047;
    align-items: center;
    justify-content: center;
}
.menu-toggle span {
    display: block;
    width: 20px; height: 2px;
    background: currentColor;
    position: relative;
}
.menu-toggle span::before,
.menu-toggle span::after {
    content: "";
    position: absolute;
    left: 0; width: 20px; height: 2px;
    background: currentColor;
}
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }

/* ============ BUTTONS ============ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 1rem;
    transition: all .25s ease;
    text-align: center;
    cursor: pointer;
    line-height: 1;
    white-space: nowrap;
}
.btn-primary {
    background: linear-gradient(135deg, #FF6B9D 0%, #FF8E53 100%);
    color: #fff;
    box-shadow: 0 6px 20px rgba(255, 107, 157, 0.35);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(255, 107, 157, 0.45);
    color: #fff;
}
.btn-secondary {
    background: #fff;
    color: #2D3047;
    box-shadow: 0 4px 14px rgba(45, 48, 71, 0.08);
    border: 2px solid #2D3047;
}
.btn-secondary:hover {
    background: #2D3047;
    color: #fff;
    transform: translateY(-2px);
}
.btn-ghost {
    background: rgba(255, 255, 255, 0.7);
    color: #2D3047;
    border: 1px solid rgba(45, 48, 71, 0.12);
    backdrop-filter: blur(10px);
}
.btn-ghost:hover {
    background: #fff;
    color: #FF6B9D;
    transform: translateY(-2px);
}

/* ============ HERO ============ */
.hero {
    position: relative;
    padding: 80px 0 100px;
    overflow: hidden;
    background:
        radial-gradient(circle at 15% 20%, rgba(255, 230, 109, 0.35) 0%, transparent 40%),
        radial-gradient(circle at 85% 30%, rgba(255, 107, 157, 0.28) 0%, transparent 45%),
        radial-gradient(circle at 50% 90%, rgba(78, 205, 196, 0.25) 0%, transparent 50%),
        linear-gradient(180deg, #FFFBF5 0%, #FFF5F8 100%);
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle, rgba(255, 107, 157, 0.08) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.4;
    pointer-events: none;
}
.hero-inner {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 107, 157, 0.2);
    border-radius: 999px;
    font-size: .85rem;
    font-weight: 600;
    color: #FF6B9D;
    margin-bottom: 20px;
}
.hero-eyebrow .dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #FF6B9D;
    box-shadow: 0 0 0 4px rgba(255, 107, 157, 0.2);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.7; }
}
.hero h1 {
    font-size: clamp(2.2rem, 4.6vw, 3.6rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}
.hero h1 .accent {
    background: linear-gradient(135deg, #FF6B9D 0%, #FF8E53 50%, #FFE66D 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-desc {
    font-size: 1.1rem;
    color: #4A5068;
    margin-bottom: 32px;
    max-width: 540px;
}
.hero-buttons { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 36px; }
.hero-meta {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
    padding-top: 28px;
    border-top: 1px solid rgba(45, 48, 71, 0.1);
}
.hero-meta-item { text-align: left; }
.hero-meta-num {
    font-size: 1.6rem;
    font-weight: 800;
    color: #2D3047;
    letter-spacing: -0.02em;
}
.hero-meta-label {
    font-size: .85rem;
    color: #6B7280;
}

.hero-visual {
    position: relative;
    aspect-ratio: 1 / 1;
    max-width: 500px;
    margin-left: auto;
}
.hero-visual svg { width: 100%; height: 100%; }

/* ============ SECTIONS ============ */
.section { padding: 80px 0; }
.section-tight { padding: 50px 0; }
.section-header { text-align: center; max-width: 720px; margin: 0 auto 50px; }
.section-eyebrow {
    display: inline-block;
    padding: 4px 12px;
    background: #FFE8EF;
    color: #FF6B9D;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 14px;
}
.section-title { margin-bottom: 14px; }
.section-desc { color: #4A5068; font-size: 1.05rem; }

/* ============ CATEGORY GRID ============ */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}
.category-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 24px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(45, 48, 71, 0.06);
    transition: all .3s ease;
    overflow: hidden;
    aspect-ratio: 4/5;
    text-decoration: none;
    color: inherit;
}
.category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 36px rgba(45, 48, 71, 0.12);
    color: inherit;
}
.category-card .cat-visual {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    border-radius: 14px;
    position: relative;
    overflow: hidden;
}
.category-card .cat-visual svg { width: 70%; height: 70%; }
.category-card .cat-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2D3047;
    margin-bottom: 4px;
}
.category-card .cat-arrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .85rem;
    font-weight: 600;
    color: #FF6B9D;
}
.category-card .cat-arrow::after {
    content: "→";
    transition: transform .25s ease;
}
.category-card:hover .cat-arrow::after { transform: translateX(4px); }

/* Category color variants */
.cat-shoes .cat-visual { background: linear-gradient(135deg, #FFE4F0 0%, #FFD1E3 100%); }
.cat-hoodies .cat-visual { background: linear-gradient(135deg, #E8F7F5 0%, #C8EEEA 100%); }
.cat-tshirts .cat-visual { background: linear-gradient(135deg, #FFF4D6 0%, #FFE89C 100%); }
.cat-jackets .cat-visual { background: linear-gradient(135deg, #E8E4FF 0%, #D5CEFF 100%); }
.cat-pants .cat-visual { background: linear-gradient(135deg, #D9ECFF 0%, #BBDBFF 100%); }
.cat-headwear .cat-visual { background: linear-gradient(135deg, #FFE4D6 0%, #FFCBB0 100%); }
.cat-accessories .cat-visual { background: linear-gradient(135deg, #FDE2E4 0%, #FFC8CB 100%); }
.cat-other .cat-visual { background: linear-gradient(135deg, #E4F7E0 0%, #C8EEBF 100%); }

/* ============ ARTICLE / CONTENT ============ */
.article-section { background: #fff; border-radius: 24px; padding: 50px; box-shadow: 0 6px 30px rgba(45, 48, 71, 0.06); }
.article-section h2 { margin-top: 1.4em; }
.article-section h2:first-child { margin-top: 0; }
.article-section h3 { margin-top: 1.4em; color: #FF6B9D; }
.article-section p { color: #3A3E54; font-size: 1.02rem; }
.article-section ul li, .article-section ol li { color: #3A3E54; }
.article-section .lead {
    font-size: 1.15rem;
    color: #4A5068;
    padding: 18px 22px;
    background: linear-gradient(135deg, #FFF5F8 0%, #FFFBF0 100%);
    border-left: 4px solid #FF6B9D;
    border-radius: 10px;
    margin-bottom: 28px;
}

/* ============ GUIDE CARDS ============ */
.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}
.guide-card {
    display: flex;
    flex-direction: column;
    padding: 28px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(45, 48, 71, 0.06);
    transition: all .3s ease;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}
.guide-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #FF6B9D, #FFE66D, #4ECDC4);
}
.guide-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 36px rgba(45, 48, 71, 0.1);
    color: inherit;
}
.guide-card .tag {
    display: inline-block;
    padding: 4px 10px;
    background: #FFF5F8;
    color: #FF6B9D;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 700;
    margin-bottom: 14px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    width: fit-content;
}
.guide-card h3 { font-size: 1.2rem; margin-bottom: 10px; color: #2D3047; }
.guide-card p { color: #4A5068; font-size: .95rem; margin-bottom: 18px; flex: 1; }
.guide-card .read-link {
    color: #FF6B9D;
    font-weight: 600;
    font-size: .9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.guide-card .read-link::after {
    content: "→";
    transition: transform .25s ease;
}
.guide-card:hover .read-link::after { transform: translateX(4px); }

/* ============ CTA BAND ============ */
.cta-band {
    background: linear-gradient(135deg, #FF6B9D 0%, #FF8E53 50%, #FFE66D 100%);
    border-radius: 28px;
    padding: 60px 50px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.cta-band::before, .cta-band::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
}
.cta-band::before { width: 220px; height: 220px; top: -60px; left: -60px; }
.cta-band::after { width: 160px; height: 160px; bottom: -50px; right: -40px; }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, 0.95); font-size: 1.1rem; max-width: 580px; margin: 0 auto 28px; }
.cta-band .btn-primary {
    background: #fff;
    color: #FF6B9D;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}
.cta-band .btn-primary:hover { background: #2D3047; color: #fff; }
.cta-band .btn-secondary {
    background: transparent;
    color: #fff;
    border-color: #fff;
}
.cta-band .btn-secondary:hover { background: #fff; color: #FF6B9D; }

/* ============ FOOTER ============ */
.site-footer {
    background: #2D3047;
    color: #B8BCCC;
    padding: 60px 0 30px;
    margin-top: 80px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.site-footer h4 {
    color: #fff;
    font-size: .95rem;
    margin-bottom: 16px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: #B8BCCC; font-size: .95rem; }
.site-footer a:hover { color: #FF6B9D; }
.footer-brand p { color: #B8BCCC; max-width: 360px; font-size: .95rem; }
.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    font-size: .85rem;
    color: #8E92A6;
}

/* ============ UTILITIES ============ */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.flex-center { display: flex; align-items: center; justify-content: center; }

/* Content prose for inner pages */
.prose {
    max-width: 820px;
    margin: 0 auto;
    padding: 50px 20px;
}
.prose .article-section { padding: 60px 50px; }
.prose .article-meta {
    display: flex;
    gap: 16px;
    font-size: .85rem;
    color: #6B7280;
    margin-bottom: 26px;
    flex-wrap: wrap;
}
.prose .article-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.prose .table-of-contents {
    background: #FFF5F8;
    border-radius: 14px;
    padding: 20px 26px;
    margin: 26px 0 32px;
    border: 1px solid rgba(255, 107, 157, 0.15);
}
.prose .table-of-contents strong {
    display: block;
    margin-bottom: 10px;
    color: #2D3047;
}
.prose .table-of-contents ol { margin-bottom: 0; color: #4A5068; }

.related-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(45, 48, 71, 0.1);
}
.related-nav a {
    display: block;
    padding: 18px 22px;
    background: #FFF5F8;
    border-radius: 14px;
    color: #2D3047;
}
.related-nav a:hover { background: #FFE8EF; color: #FF6B9D; }
.related-nav .label {
    display: block;
    font-size: .78rem;
    color: #FF6B9D;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 4px;
}
.related-nav .title { font-weight: 600; font-size: 1rem; }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
    .hero { padding: 60px 0 70px; }
    .hero-inner { grid-template-columns: 1fr; gap: 40px; }
    .hero-visual { max-width: 400px; margin: 0 auto; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
    .article-section, .prose .article-section { padding: 32px 24px; }
    .cta-band { padding: 48px 24px; }
    .section { padding: 60px 0; }
}

@media (max-width: 720px) {
    .menu-toggle { display: inline-flex; }
    .main-nav {
        position: absolute;
        top: 100%;
        left: 20px; right: 20px;
        background: #fff;
        border-radius: 16px;
        box-shadow: 0 10px 40px rgba(45, 48, 71, 0.14);
        padding: 12px;
        display: none;
        flex-direction: column;
        gap: 0;
    }
    .main-nav.open { display: flex; }
    .main-nav ul { flex-direction: column; width: 100%; gap: 0; }
    .main-nav li { width: 100%; }
    .main-nav a { padding: 12px 14px; }
    .dropdown {
        position: static;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none !important;
        padding-left: 20px;
    }
    .has-dropdown.open > .dropdown { display: block !important; }
    .category-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .category-card { padding: 18px; aspect-ratio: 1/1.1; }
    .hero-buttons { justify-content: center; }
    .hero-inner, .section-header { text-align: center; }
    .hero-eyebrow { margin-left: auto; margin-right: auto; }
    .hero-meta { justify-content: center; }
    .footer-grid { grid-template-columns: 1fr; }
    .related-nav { grid-template-columns: 1fr; }
}

@media (max-width: 440px) {
    .btn { padding: 12px 20px; font-size: .92rem; }
    .category-grid { grid-template-columns: 1fr 1fr; }
    .cta-band { padding: 40px 20px; }
}
