/* ATCGnu Home — homepage widgets styling
 * Leverages zibll CSS variables where possible:
 *   --main-color, --theme-color-gradient, --main-bg, --muted-1-color
 */

:root {
    --atc-hero-grad: linear-gradient(135deg, #1e3a8a 0%, #7c3aed 55%, #ec4899 100%);
}

/* Make widget container in fluid zones look edge-to-edge */
.fluid-widget .widget { margin: 0 !important; }

/* ───── Shared button ───── */
.atc-btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 99px;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: .02em;
    text-decoration: none !important;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
    border: 1px solid transparent;
    line-height: 1.2;
}
.atc-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.15); }
.atc-btn-primary { background: #fff; color: #1e3a8a; }
.atc-btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.atc-btn-ghost   { background: transparent; color: #fff; padding: 12px 8px; }
.atc-btn-ghost:hover { transform: translateX(4px); box-shadow: none; }

/* ───── ① Hero ───── */
.atc-hero {
    position: relative;
    overflow: hidden;
    padding: 96px 24px 112px;
    color: #fff;
    text-align: center;
    border-radius: 0 0 32px 32px;
    margin-bottom: 24px;
}
.atc-hero-bg {
    position: absolute; inset: 0;
    background: var(--atc-hero-grad);
    z-index: 0;
}
.atc-hero-bg::before, .atc-hero-bg::after {
    content: ""; position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: .35;
}
.atc-hero-bg::before { width: 420px; height: 420px; background: #60a5fa; top: -120px; left: -80px; }
.atc-hero-bg::after  { width: 360px; height: 360px; background: #f472b6; bottom: -100px; right: -60px; }
.atc-hero-inner { position: relative; z-index: 1; max-width: 860px; margin: 0 auto; }
.atc-hero-title {
    font-size: clamp(36px, 5vw, 60px);
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 16px;
    letter-spacing: .02em;
    color: #fff;
}
.atc-hero-sub {
    font-size: clamp(15px, 1.6vw, 19px);
    opacity: .92;
    margin: 0 0 40px;
}
.atc-hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ───── ② Stats bar ───── */
.atc-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    max-width: 1100px;
    margin: -56px auto 40px;
    padding: 28px 24px;
    background: var(--main-bg, #fff);
    border-radius: 18px;
    box-shadow: 0 8px 30px rgba(0,0,0,.08);
    position: relative;
    z-index: 2;
}
.atc-stat { text-align: center; }
.atc-stat-num {
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 800;
    background: var(--atc-hero-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.1;
}
.atc-stat-label {
    margin-top: 4px;
    color: var(--muted-2-color, #6b7280);
    font-size: 13px;
}
.atc-stat-suffix { margin-left: 2px; }

@media (max-width: 640px) {
    .atc-stats { grid-template-columns: repeat(2, 1fr); margin-top: -40px; }
}

/* ───── Shared section ───── */
.atc-home-section { margin: 40px 0; }
.atc-home-section > h2,
.atc-home-section > .widget-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 18px;
    padding-left: 12px;
    border-left: 4px solid var(--main-color, #3b82f6);
}
.atc-section-sub {
    font-size: 16px; font-weight: 600; margin: 28px 0 14px;
    color: var(--muted-1-color, #374151);
}
.atc-section-intro { color: var(--muted-2-color, #6b7280); margin: -6px 0 20px; }
.atc-see-more { text-align: right; margin: 16px 0 0; }
.atc-see-more a { color: var(--main-color, #3b82f6); font-weight: 600; }
.atc-empty { padding: 32px; text-align: center; color: var(--muted-2-color, #9ca3af); }

/* ───── ④ Tools grid ───── */
.atc-tools-tabs {
    display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px;
}
.atc-tab-btn {
    padding: 8px 18px;
    border-radius: 99px;
    border: 1px solid var(--line-color, #e5e7eb);
    background: transparent;
    color: var(--muted-1-color, #374151);
    font-size: 13px;
    cursor: pointer;
    transition: all .15s ease;
}
.atc-tab-btn:hover { border-color: var(--main-color, #3b82f6); color: var(--main-color, #3b82f6); }
.atc-tab-btn.atc-active {
    background: var(--main-color, #3b82f6);
    color: #fff;
    border-color: var(--main-color, #3b82f6);
}

.atc-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}
.atc-tool-card {
    display: block;
    background: var(--main-bg, #fff);
    border: 1px solid var(--line-color, #e5e7eb);
    border-radius: 14px;
    overflow: hidden;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
    text-decoration: none !important;
    color: inherit;
}
.atc-tool-card.atc-hidden { display: none; }
.atc-tool-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,.1);
    border-color: var(--main-color, #3b82f6);
}
.atc-tool-thumb {
    width: 100%; aspect-ratio: 16 / 9;
    background: #f3f4f6 center/cover no-repeat;
}
.atc-tool-thumb-ph {
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; font-weight: 800;
    background: var(--atc-hero-grad);
    color: #fff;
}
.atc-tool-body { padding: 14px; }
.atc-tool-title { font-weight: 600; font-size: 15px; line-height: 1.3; margin-bottom: 8px; }
.atc-tool-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.atc-chip {
    display: inline-block; padding: 2px 8px;
    background: var(--muted-2-bg, #f3f4f6);
    color: var(--muted-1-color, #6b7280);
    border-radius: 4px; font-size: 11px;
}
.atc-tool-rating { font-size: 12px; color: #f59e0b; font-weight: 600; }

/* ───── ⑦ Street Products ───── */
.atc-street-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 18px;
}
.atc-street-card {
    background: var(--main-bg, #fff);
    border: 1px solid var(--line-color, #e5e7eb);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.atc-street-card.atc-hidden { display: none; }
.atc-street-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,.1);
    border-color: var(--main-color, #3b82f6);
}
.atc-street-thumb-link { display: block; }
.atc-street-thumb {
    width: 100%; aspect-ratio: 4 / 3;
    background: #f3f4f6 center/cover no-repeat;
}
.atc-street-body {
    padding: 14px 14px 16px;
    display: flex; flex-direction: column; gap: 8px;
    flex: 1;
}
.atc-street-title {
    font-size: 15px; font-weight: 600; line-height: 1.35; margin: 0;
}
.atc-street-title a { color: inherit; text-decoration: none; }
.atc-street-title a:hover { color: var(--main-color, #3b82f6); }
.atc-street-vendor {
    font-size: 12px; color: var(--muted-2-color, #9ca3af);
}
.atc-street-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.atc-street-bottom {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: auto; padding-top: 4px;
}
.atc-street-price {
    font-size: 16px; font-weight: 700;
    color: #ef4444;
}
.atc-street-rating {
    font-size: 13px; color: #f59e0b; font-weight: 600;
}
.atc-street-buy {
    display: block;
    text-align: center;
    padding: 8px 14px;
    margin-top: 4px;
    background: var(--main-color, #3b82f6);
    color: #fff !important;
    border-radius: 8px;
    text-decoration: none !important;
    font-size: 13px; font-weight: 600;
    transition: background .15s;
}
.atc-street-buy:hover { background: #1d4ed8; }
.atc-street-buy-ghost {
    background: transparent;
    color: var(--main-color, #3b82f6) !important;
    border: 1px solid var(--main-color, #3b82f6);
}
.atc-street-buy-ghost:hover { background: var(--main-color, #3b82f6); color: #fff !important; }

/* ───── ⑥ CTA band ───── */
.atc-cta-band {
    margin: 48px 0 0;
    padding: 64px 24px;
    background: var(--atc-hero-grad);
    color: #fff;
    text-align: center;
    border-radius: 24px 24px 0 0;
}
.atc-cta-inner { max-width: 760px; margin: 0 auto; }
.atc-cta-title { font-size: clamp(24px, 3vw, 34px); font-weight: 700; margin: 0 0 10px; color:#fff; }
.atc-cta-sub { opacity: .92; margin: 0 0 28px; }
.atc-cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Tighten zibll widget wrappers in fluid zones */
.fluid-widget { padding: 0; }

/* ── /category/street/ landing block ──────────── */
.atc-street-landing {
    margin: 0 0 24px;
    padding: 0;
}
.atc-street-stats {
    display: flex; gap: 16px; flex-wrap: wrap;
    margin: 0 0 20px;
}
.atc-street-stat {
    flex: 1 1 120px;
    background: linear-gradient(135deg, #eef2ff 0%, #fef2f2 100%);
    border-radius: 12px;
    padding: 14px 18px;
    text-align: center;
}
.atc-street-stat strong {
    display: block; font-size: 26px; font-weight: 800;
    color: #1e293b; line-height: 1.2;
}
.atc-street-stat span { font-size: 13px; color: #64748b; }

.atc-street-subnav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}
.atc-street-subnav-card {
    display: flex; flex-direction: column; gap: 8px;
    padding: 16px 18px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    text-decoration: none; color: inherit;
    transition: all .2s;
}
.atc-street-subnav-card:hover {
    border-color: var(--main-color, #3b82f6);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(59, 130, 246, .12);
}
.atc-street-subnav-head {
    display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
}
.atc-street-subnav-name { font-size: 16px; font-weight: 700; }
.atc-street-subnav-count {
    font-size: 12px; color: #ef4444; font-weight: 700;
    padding: 2px 8px; border-radius: 999px; background: #fef2f2;
}
.atc-street-subnav-desc {
    font-size: 13px; color: #6b7280; line-height: 1.5;
}
.atc-street-subnav-arrow {
    margin-top: auto; font-size: 13px; color: var(--main-color, #3b82f6); font-weight: 600;
}

.atc-street-crumb {
    margin: 0 0 14px; font-size: 13px; color: #6b7280;
}
.atc-street-crumb a { color: var(--main-color, #3b82f6); text-decoration: none; }
.atc-street-crumb-sep { margin: 0 8px; color: #cbd5e1; }
.atc-street-crumb-current { color: #1e293b; font-weight: 600; }

.atc-street-sibling-nav {
    display: flex; flex-wrap: wrap; gap: 8px;
    margin: 0 0 8px;
}
.atc-street-sibling {
    padding: 6px 14px;
    border-radius: 999px;
    background: #f1f5f9;
    font-size: 13px; color: #475569;
    text-decoration: none;
    transition: all .2s;
}
.atc-street-sibling small { opacity: .6; margin-left: 4px; }
.atc-street-sibling:hover { background: #e0e7ff; color: var(--main-color, #3b82f6); }
.atc-street-sibling.atc-active {
    background: var(--main-color, #3b82f6);
    color: #fff;
}
.atc-street-sibling.atc-active small { opacity: .9; }

/* ── [atcgnu_top_clicks] trending list ───────────── */
.atc-top-clicks {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 14px 16px;
    background: #fff;
    margin: 16px 0;
}
.atc-top-clicks-title { font-size: 16px; font-weight: 700; margin: 0 0 10px; }
.atc-top-clicks-list { list-style: none; margin: 0; padding: 0; counter-reset: tc; }
.atc-top-clicks-item { counter-increment: tc; margin: 0; }
.atc-top-clicks-item + .atc-top-clicks-item { border-top: 1px dashed #f1f5f9; }
.atc-top-clicks-link {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 0; color: inherit; text-decoration: none;
}
.atc-top-clicks-link:hover .atc-top-clicks-name { color: var(--main-color, #3b82f6); }
.atc-top-clicks-link::before {
    content: counter(tc);
    flex: 0 0 22px; text-align: center;
    font-weight: 700; font-size: 13px;
    color: #94a3b8;
}
.atc-top-clicks-item:nth-child(-n+3) .atc-top-clicks-link::before { color: #ef4444; }
.atc-top-clicks-thumb {
    flex: 0 0 40px; height: 40px;
    border-radius: 6px;
    background: #f3f4f6 center/cover no-repeat;
}
.atc-top-clicks-thumb-ph {
    display: flex; align-items: center; justify-content: center;
    color: #94a3b8; font-weight: 700; font-size: 14px;
}
.atc-top-clicks-body { flex: 1 1 auto; min-width: 0; }
.atc-top-clicks-name {
    display: block; font-size: 14px; font-weight: 600;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.atc-top-clicks-meta {
    display: block; font-size: 12px; color: #6b7280; margin-top: 2px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.atc-top-clicks-count {
    flex: 0 0 auto;
    font-size: 12px; color: #ef4444; font-weight: 700;
    padding: 2px 8px; border-radius: 999px;
    background: #fef2f2;
}
