/*
Theme Name: Fizz
Theme URI: https://example.com/fizz
Author: Your Name
Description: A loud, fun viral and entertainment theme. Sticker badges, a trending mosaic, a "hot right now" ranking, view counts and a live reaction bar readers can tap on every post. Bold neo-brutalist cards, light and dark modes, self-hosted fonts and one-click demo content with original pop-art images.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fizz
Tags: blog, entertainment, news, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #fff7d1;
  --text: #16123a;
  --text-2: #3b365e;
  --muted: #625e86;
  --line: #e4e1f0;
  --ink: #16123a;
  --accent: #ff4f9a;
  --accent-ink: #16123a;
  --pop: #ffe45c;
  --electric: #2f6bff;
  --mint: #3ce0a8;
  --font-display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --w-display: 800;
  --track-display: -0.01em;
  --lh-display: 1.02;
  --radius: 16px;
  --radius-ui: 12px;
  --hard: 4px 4px 0 var(--ink);
  --footer-bg: #16123a;
  --footer-text: #ffffff;
  --footer-muted: #c9c5e8;
  --footer-line: rgba(255,255,255,.16);
  --overlay: linear-gradient(180deg, rgba(22,18,58,0) 12%, rgba(22,18,58,.55) 45%, rgba(22,18,58,.94) 100%);
  --accent-hover: var(--pop);
  --accent-hover-ink: var(--ink);
}
:root[data-theme="dark"] {
  --bg: #100d2b;
  --surface: #1a1640;
  --surface-2: #231d52;
  --text: #f5f3ff;
  --text-2: #d6d2f5;
  --muted: #a7a2d6;
  --line: #2f2966;
  --ink: #05040f;
  --footer-bg: #07061a;
}

h1, h2, h3, h4, .brand__name, .fz-hot__title { font-stretch: 74%; }
body { font-size: 17px; }
.brand__mark { width: 40px; height: 40px; }
.brand__name { font-size: 2.1rem; font-weight: 900; letter-spacing: -.02em; }
.site-header { border-bottom: 3px solid var(--ink); }
[data-theme="dark"] .site-header { border-bottom-color: var(--accent); }
.primary-menu > li > a { font-weight: 800; font-size: 1rem; font-stretch: 85%; }
.primary-menu > li > a:hover, .primary-menu .current-menu-item > a { color: var(--text); background: var(--pop); color: var(--ink); }
.btn, .icon-btn { border: 2px solid var(--ink); box-shadow: var(--hard); transition: transform .12s ease, box-shadow .12s ease; }
.btn:hover, .icon-btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
[data-theme="dark"] .icon-btn { border-color: var(--text-2); box-shadow: none; }
.header-cta { background: var(--accent); color: var(--ink); }
.cat { color: var(--electric); font-weight: 800; font-size: .85rem; }
[data-theme="dark"] .cat { color: var(--pop); }
.section-title { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
.meta { font-weight: 600; }
.meta__views, .meta__react { display: inline-flex; align-items: center; gap: .3rem; color: var(--text); }
.meta__views .icon { width: 16px; height: 16px; }

/* ---------- Trending strip ---------- */
.fz-trend { background: var(--pop); color: var(--ink); border-bottom: 3px solid var(--ink); }
.fz-trend__inner { display: flex; align-items: center; gap: 1rem; min-height: 46px; overflow-x: auto; scrollbar-width: none; }
.fz-trend__label { display: inline-flex; align-items: center; gap: .35rem; font-weight: 900; font-stretch: 80%; white-space: nowrap; }
.fz-trend__label .icon { width: 18px; height: 18px; color: #ff3d00; }
.fz-trend ul { display: flex; gap: .5rem; list-style: none; margin: 0; padding: 0; }
.fz-trend a { display: block; padding: .15rem .7rem; border: 2px solid var(--ink); border-radius: 999px; background: #fff; font-weight: 700; font-size: .88rem; white-space: nowrap; }
.fz-trend a:hover { background: var(--accent); }

/* ---------- Stickers ---------- */
.fz-sticker { position: absolute; left: 14px; top: 14px; z-index: 2; padding: .28rem .7rem; border: 2px solid var(--ink); border-radius: 10px; background: var(--pop); color: var(--ink); font-weight: 900; font-size: .9rem; font-stretch: 80%; box-shadow: 3px 3px 0 var(--ink); transform: rotate(-5deg); }
.fz-sticker--hot { background: var(--accent); }
.fz-sticker--trending { background: var(--electric); color: #fff; }
.fz-sticker--omg { background: var(--mint); }
.fz-sticker--win { background: #fff; }
.fz-sticker--cute { background: #ffc4de; }

/* ---------- Mosaic ---------- */
.fz-mosaic { display: grid; gap: 18px; padding-block: clamp(22px, 3vw, 36px); grid-template-columns: minmax(0, 1fr); }
.fz-mosaic .card-overlay { border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); min-height: 300px; }
.fz-mosaic .card__title { font-size: 1.45rem; }
.fz-mosaic .cat { color: var(--pop); }
@media (min-width: 900px) {
  .fz-mosaic { grid-template-columns: 2fr 1.1fr 1.1fr; grid-template-rows: 260px 260px; }
  .fz-mosaic .card-overlay { min-height: 0; }
  .fz-mosaic .card-overlay:nth-child(1) { grid-row: 1 / 3; }
  .fz-mosaic .card-overlay:nth-child(2) { grid-row: 1 / 3; }
  .fz-mosaic .card-overlay:nth-child(1) .card__title { font-size: clamp(2rem, 3.2vw, 2.9rem); }
}

/* ---------- Hot ranking ---------- */
.fz-hot { background: var(--surface-2); border-block: 3px solid var(--ink); }
.fz-hot__title { display: flex; align-items: center; gap: .5rem; font-size: clamp(1.8rem, 3.6vw, 2.8rem); margin-bottom: 1.5rem; }
.fz-hot__title .icon { width: 1em; height: 1em; color: #ff3d00; }
.fz-hot__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); counter-reset: hot; }
.fz-hot__list > li { counter-increment: hot; position: relative; padding: 14px; padding-top: 18px; background: var(--surface); border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: var(--hard); }
.fz-hot__list > li::before { content: counter(hot); position: absolute; right: 12px; top: -26px; font-weight: 900; font-size: 4rem; line-height: 1; font-stretch: 70%; color: var(--pop); -webkit-text-stroke: 2px var(--ink); }
.fz-hot__list .mini { flex-direction: column; }
.fz-hot__list .mini > .media { width: 100%; flex-basis: auto; aspect-ratio: 16 / 10; border-radius: 10px; border: 2px solid var(--ink); }
.fz-hot__list .mini__title { font-size: 1.12rem; line-height: 1.2; }

/* ---------- Feed ---------- */
.fz-feed { display: flex; flex-direction: column; gap: 28px; }
.fz-feed .card-row { grid-template-columns: minmax(0, 42%) minmax(0, 1fr); align-items: center; }
.fz-feed .card-row > .media { border: 2px solid var(--ink); box-shadow: var(--hard); }
.fz-feed .card__title { font-size: clamp(1.35rem, 2.2vw, 1.75rem); line-height: 1.05; }
.fz-feed .card__title a:hover { color: var(--text); background: linear-gradient(transparent 60%, var(--pop) 60%); }
@media (max-width: 560px) { .fz-feed .card-row { grid-template-columns: minmax(0, 1fr); } }
.listing.fz-feed { display: flex; }

/* ---------- Sidebar ---------- */
.fz-box, .signup--sidebar { padding: 1.3rem; border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: var(--hard); background: var(--surface); }
.signup--sidebar { background: var(--pop); color: var(--ink); }
.signup--sidebar .signup__button { background: var(--accent); color: var(--ink); }
.signup__form input[type="email"] { border: 2px solid var(--ink); }
.widget-title { font-size: 1.45rem; }
.ranked > li::before { color: var(--accent); -webkit-text-stroke: 1px var(--ink); }
.tag { border: 2px solid var(--ink); font-weight: 700; }
.tag:hover { background: var(--pop); color: var(--ink); border-color: var(--ink); }

/* ---------- Single ---------- */
.entry-title { font-size: clamp(2.4rem, 6vw, 4.4rem); }
.entry-media img { border: 3px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); }
.entry-content blockquote { border-left: 6px solid var(--accent); font-weight: 700; font-stretch: 85%; }
.fz-react { margin-top: 2.5rem; padding: 1.4rem; border: 3px solid var(--ink); border-radius: 20px; background: var(--surface-2); box-shadow: 6px 6px 0 var(--ink); }
.entry-content .fz-react__title { margin: 0 0 1rem; font-size: 1.6rem; }
.fz-react__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 10px; }
.fz-react__btn { display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: .7rem .4rem; border: 2px solid var(--ink); border-radius: 14px; background: var(--surface); color: var(--text); cursor: pointer; font-family: var(--font-body); box-shadow: 3px 3px 0 var(--ink); transition: transform .12s ease, box-shadow .12s ease, background-color .12s; }
.fz-react__btn:hover { transform: translate(-2px, -3px); box-shadow: 5px 6px 0 var(--ink); }
.fz-react__btn.is-mine { background: var(--accent); color: var(--ink); }
.fz-react__emoji { font-size: 2rem; line-height: 1.1; font-family: "Noto Color Emoji", "Apple Color Emoji", "Segoe UI Emoji", sans-serif; }
.fz-react__label { font-weight: 800; font-size: .9rem; }
.fz-react__count { font-weight: 700; font-size: .85rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.fz-react__btn.is-mine .fz-react__count { color: var(--ink); }
.share__link { border: 2px solid var(--ink); font-weight: 800; }
.share__link:hover { background: var(--pop); color: var(--ink); border-color: var(--ink); }
.author-box { border: 2px solid var(--ink); background: var(--surface-2); }

.signup--footer { background: rgba(255,255,255,.06); color: var(--footer-text); padding: 1.4rem; border: 2px solid rgba(255,255,255,.2); }
.signup--footer .signup__title { font-size: 1.3rem; }
.signup--footer .signup__button { background: var(--pop); color: var(--ink); }
.site-footer .brand__name { color: #fff; }
