/*
Theme Name: Superbuy Port
Theme URI: https://sheetcn.com/
Author: Superbuy
Author URI: https://sheetcn.com/
Description: Harbor-themed SEO site for the Superbuy Spreadsheet affiliate hub. Denim-blue palette, chubby cartoon product icons, six all-original articles for 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: superbuy-port
Tags: one-column, custom-menu, featured-images, seo, affiliate
*/

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

a { color: #2563eb; text-decoration: none; transition: color .2s ease; }
a:hover { color: #1d4ed8; }

h1, h2, h3, h4 { font-weight: 800; line-height: 1.3; color: #0f172a; margin: 0 0 .6em; letter-spacing: -0.015em; }
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(254, 249, 243, .9);
    backdrop-filter: saturate(180%) blur(10px);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid #dbeafe;
    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: 10px;
}
.site-brand .brand-accent { color: #f59e0b; }
.site-brand .brand-mark {
    display: inline-flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: linear-gradient(135deg, #60a5fa 0%, #f59e0b 100%);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(37,99,235,.3);
}

.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: 700;
    font-size: .95rem;
    border-radius: 10px;
    background: none;
    border: 0;
    cursor: pointer;
    font-family: inherit;
}
.main-nav a:hover,
.main-nav .nav-toggle:hover { background: #eff6ff; color: #2563eb; }
.main-nav .caret { font-size: .7rem; }

.dropdown { position: relative; }
.dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 280px;
    background: #ffffff;
    border: 1px solid #dbeafe;
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(37,99,235,.15), 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: 10px 14px;
    border-radius: 10px;
    font-weight: 600;
    color: #475569;
    font-size: .92rem;
}
.dropdown-menu a:hover { background: #eff6ff; color: #2563eb; }

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

/* ---------- Hero (harbor + cargo ship scene) ---------- */
.hero {
    position: relative;
    background:
        radial-gradient(900px 400px at 85% -10%, rgba(254, 215, 170, .4), transparent 70%),
        radial-gradient(900px 500px at 10% 110%, rgba(191, 219, 254, .55), transparent 70%),
        radial-gradient(700px 300px at 50% 50%, rgba(254, 243, 199, .35), transparent 75%),
        linear-gradient(170deg, #fef9f3 0%, #eff6ff 45%, #ecfeff 100%);
    padding: 100px 0 140px;
    text-align: center;
    overflow: hidden;
    border-bottom: 1px solid #dbeafe;
}
.hero-decor {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}
.hero-decor svg { position: absolute; }

.hero-ship { bottom: 14%; right: 5%; width: 220px; animation: shipSway 7s ease-in-out infinite; }
.hero-lighthouse { bottom: 12%; left: 7%; width: 90px; }
.hero-sailboat { top: 42%; left: 36%; width: 80px; animation: boatBob 5s ease-in-out infinite; }
.hero-containers { bottom: 10%; left: 28%; width: 110px; }
.hero-anchor { top: 18%; right: 18%; width: 50px; animation: anchorSpin 15s linear infinite; opacity: .55; }
.hero-gull-a { top: 20%; left: 24%; width: 46px; animation: gullFly 6s ease-in-out infinite; }
.hero-gull-b { top: 30%; right: 32%; width: 36px; animation: gullFly 8s ease-in-out infinite reverse; }
.hero-gull-c { top: 15%; left: 50%; width: 30px; animation: gullFly 7s ease-in-out infinite 1s; }
.hero-waves { bottom: 2%; left: 0; width: 100%; height: 50px; opacity: .6; }
.hero-sun { top: 10%; right: 10%; width: 60px; }

@keyframes shipSway {
    0%, 100% { transform: translateY(0) rotate(-1deg); }
    50% { transform: translateY(-6px) rotate(1deg); }
}
@keyframes boatBob {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-10px) rotate(2deg); }
}
@keyframes anchorSpin {
    from { transform: rotate(-5deg); }
    to { transform: rotate(355deg); }
}
@keyframes gullFly {
    0%, 100% { transform: translateX(0) translateY(0); }
    50% { transform: translateX(14px) translateY(-6px); }
}

.hero-inner { position: relative; z-index: 1; }
.hero .eyebrow {
    display: inline-block;
    background: rgba(255,255,255,.9);
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 7px 16px;
    border-radius: 999px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(37,99,235,.15);
}
.hero h1 {
    font-size: 2.85rem;
    max-width: 880px;
    margin: 0 auto .5em;
    letter-spacing: -0.03em;
    color: #0f172a;
}
.hero h1 .accent {
    background: linear-gradient(90deg, #2563eb, #f59e0b);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero .lede {
    font-size: 1.18rem;
    color: #475569;
    max-width: 760px;
    margin: 0 auto 2.4em;
    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 30px;
    border-radius: 999px;
    font-weight: 800;
    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;
    font-family: inherit;
}
.btn-primary {
    background: linear-gradient(135deg, #2563eb 0%, #f59e0b 100%);
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(37,99,235,.3);
}
.btn-primary:hover {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(37,99,235,.38);
}
.btn-secondary {
    background: #ffffff;
    color: #2563eb;
    border-color: #bfdbfe;
}
.btn-secondary:hover {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
    transform: translateY(-2px);
}

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-light { background: #ffffff; }
.section-tint {
    background:
        radial-gradient(600px 220px at 15% 0%, rgba(239, 246, 255, .9), transparent 70%),
        radial-gradient(500px 220px at 85% 100%, rgba(254, 243, 199, .7), transparent 70%),
        #fef9f3;
}
.section-title {
    text-align: center;
    font-size: 2.05rem;
    margin-bottom: .4em;
}
.section-sub {
    text-align: center;
    color: #64748b;
    max-width: 720px;
    margin: 0 auto 2.8em;
    font-size: 1.02rem;
}

/* ---------- Category grid (chubby cartoon icons on rounded cards with offset shadow) ---------- */
.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #ffffff;
    border: 2px solid #0f172a;
    border-radius: 24px;
    padding: 32px 20px 26px;
    color: #0f172a;
    font-weight: 800;
    transition: all .22s ease;
    position: relative;
    box-shadow: 6px 6px 0 var(--shadow, #93c5fd);
}
.category-card:hover {
    transform: translate(-3px, -3px);
    box-shadow: 9px 9px 0 var(--shadow, #93c5fd);
    color: var(--primary);
}
.category-card .icon-wrap {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    background: var(--bg, #dbeafe);
    border: 2px solid #0f172a;
    position: relative;
}
.category-card .icon-wrap svg { width: 54px; height: 54px; }
.category-card .label { font-size: 1rem; letter-spacing: -0.01em; }

/* per-card themes */
.cat-shoes       { --bg:#fecaca; --primary:#b91c1c; --shadow:#fca5a5; }
.cat-hoodies     { --bg:#bae6fd; --primary:#0369a1; --shadow:#7dd3fc; }
.cat-tshirts     { --bg:#fde68a; --primary:#b45309; --shadow:#fcd34d; }
.cat-jackets     { --bg:#c7d2fe; --primary:#3730a3; --shadow:#a5b4fc; }
.cat-pants       { --bg:#a7f3d0; --primary:#047857; --shadow:#6ee7b7; }
.cat-headwear    { --bg:#fed7aa; --primary:#c2410c; --shadow:#fdba74; }
.cat-accessories { --bg:#f5d0fe; --primary:#86198f; --shadow:#f0abfc; }
.cat-other       { --bg:#fecdd3; --primary:#be185d; --shadow:#fda4af; }

/* ---------- Article grid ---------- */
.article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.article-card {
    background: #ffffff;
    border: 2px solid #0f172a;
    border-radius: 22px;
    padding: 30px 26px;
    display: flex;
    flex-direction: column;
    transition: all .22s ease;
    position: relative;
    box-shadow: 5px 5px 0 #fcd34d;
}
.article-card:hover {
    transform: translate(-3px, -3px);
    box-shadow: 8px 8px 0 #fcd34d;
}
.article-card .tag {
    display: inline-block;
    background: #0f172a;
    color: #fcd34d;
    font-size: .72rem;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 999px;
    letter-spacing: .08em;
    text-transform: uppercase;
    align-self: flex-start;
    margin-bottom: 16px;
}
.article-card h3 {
    margin: 0 0 10px;
    font-size: 1.14rem;
    color: #0f172a;
}
.article-card p {
    color: #475569;
    font-size: .94rem;
    flex-grow: 1;
    margin-bottom: 1.1em;
}
.article-card .read-more {
    font-weight: 800;
    font-size: .9rem;
    align-self: flex-start;
    color: #2563eb;
}
.article-card .read-more:after { content: " ⚓"; }

/* ---------- Content ---------- */
.content-area {
    max-width: 820px;
    margin: 0 auto;
    padding: 70px 20px 20px;
}
.content-area h1 { font-size: 2.35rem; letter-spacing: -0.03em; }
.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: 32px 0;
}
.related-box {
    margin-top: 54px;
    padding: 30px 32px;
    background: #fef9f3;
    border: 2px solid #0f172a;
    border-radius: 22px;
    box-shadow: 5px 5px 0 #93c5fd;
}
.related-box h3 { margin-top: 0; color: #1e3a8a; }
.related-box ul { margin-bottom: 0; }
.related-box a { color: #2563eb; font-weight: 700; }

.back-home {
    display: inline-block;
    margin-top: 36px;
    font-weight: 800;
    color: #2563eb;
}
.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;
}
.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: #fcd34d; }
.footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 20px;
    text-align: center;
    font-size: .85rem;
    color: #94a3b8;
}
.footer-bottom a { color: #fcd34d; }

/* ---------- 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.3rem; }
}

@media (max-width: 720px) {
    h1 { font-size: 1.75rem; }
    .hero { padding: 60px 0 110px; }
    .hero h1 { font-size: 2rem; }
    .hero .lede { font-size: 1.02rem; }
    .section { padding: 56px 0; }
    .section-title { font-size: 1.6rem; }
    .hero-ship { width: 140px; }
    .hero-lighthouse { width: 60px; }
    .hero-sailboat { width: 55px; }
    .hero-containers { width: 72px; }
    .hero-gull-a, .hero-gull-b, .hero-gull-c { width: 28px; }
    .hero-anchor { width: 36px; }
    .hero-sun { width: 42px; }

    .mobile-toggle { display: inline-flex; }
    .main-nav {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background: #ffffff;
        border-top: 1px solid #dbeafe;
        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: #eff6ff;
    }
    .dropdown.open .dropdown-menu { display: block; }

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

@media (max-width: 420px) {
    .btn { padding: 12px 22px; font-size: .95rem; }
    .category-card { padding: 24px 14px 20px; box-shadow: 4px 4px 0 var(--shadow, #93c5fd); }
    .category-card .icon-wrap { width: 70px; height: 70px; }
    .category-card .icon-wrap svg { width: 42px; height: 42px; }
}
