/*
Theme Name: LU Deals
Theme URI: https://example.com/
Author: LU Reviews
Description: A bold, orange deals theme for Amazon affiliate roundups. Light and dark mode, a built-in Deals manager, and 114 starter Black Friday deals.
Version: 1.1.0
Requires at least: 6.4
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: lu-deals
*/

:root,
:root[data-theme="dark"] {
	--bg: #0E0E0E; --text: #F5F2EE; --muted: #BDB6AE; --faint: #8C857D; --line: #262626;
	--card: #161616; --card-line: #262626; --chip: #1A1A1A; --chip-line: #333333;
	--img-bg: #F6E6D8; --img-line: #3A3A3A; --img-icon: #FF7A1A; --accent-text: #FFA05C;
	--badge-bg: #1F1F1F; --badge-line: #333333; --outline: #4A4A4A; --head-accent: #FF6A13;
	--orange: #FF6A13; --on-orange: #0E0E0E;
	color-scheme: dark;
}
:root[data-theme="light"] {
	--bg: #FFF9F4; --text: #161210; --muted: #5E5750; --faint: #6F6861; --line: #EDE4DA;
	--card: #FFFFFF; --card-line: #EDE4DA; --chip: #FFFFFF; --chip-line: #E3D8CC;
	--img-bg: #FFF1E6; --img-line: #F5D9C2; --img-icon: #E8590C; --accent-text: #C2410C;
	--badge-bg: #FFF1E6; --badge-line: #FFD9BF; --outline: #CDBFB1; --head-accent: #E8590C;
	color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--accent-text); }
img { max-width: 100%; height: auto; }
.lu-display { font-family: "Bricolage Grotesque", Inter, sans-serif; font-weight: 800; }
.lu-wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 100; width: auto; height: auto; clip: auto; background: var(--orange); color: var(--on-orange); padding: 10px 16px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

/* Buttons */
.lu-btn { display: inline-block; text-decoration: none; font-weight: 700; border-radius: 999px; padding: 16px 28px; font-size: 17px; line-height: 1.2; border: 0; cursor: pointer; font-family: inherit; }
.lu-btn--orange { background: var(--orange); color: var(--on-orange); }
.lu-btn--orange:hover { background: #FF8233; color: var(--on-orange); }
.lu-btn--ghost { border: 1.5px solid var(--outline); color: var(--text); background: transparent; }
.lu-btn--ghost:hover { border-color: var(--orange); color: var(--text); }
.lu-btn--sm { padding: 12px 20px; font-size: 15px; }

/* Header */
.lu-header { border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; background: var(--bg); }
.lu-header__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 16px; }
.lu-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-size: 24px; letter-spacing: -0.5px; }
.lu-logo__dot { width: 14px; height: 14px; border-radius: 50%; background: var(--orange); display: inline-block; flex: none; }
.lu-logo img { max-height: 40px; width: auto; }
.lu-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 28px; }
.lu-nav a { color: var(--text); text-decoration: none; font-size: 15px; font-weight: 500; }
.lu-nav a:hover { color: var(--accent-text); }
.lu-header__actions { display: flex; align-items: center; gap: 10px; }
.lu-toggle { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--chip-line); background: var(--chip); color: var(--text); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.lu-toggle:hover { border-color: var(--orange); }
.lu-toggle .lu-ico-moon { display: none; }
:root[data-theme="light"] .lu-toggle .lu-ico-sun { display: none; }
:root[data-theme="light"] .lu-toggle .lu-ico-moon { display: block; }

/* Hero */
.lu-hero { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-end; padding-top: 88px; padding-bottom: 72px; }
.lu-hero__main { flex: 999 1 560px; min-width: 0; }
.lu-kicker { margin: 0 0 20px; display: inline-block; background: var(--badge-bg); border: 1px solid var(--badge-line); color: var(--accent-text); font-size: 13px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; padding: 8px 14px; border-radius: 999px; }
.lu-hero h1 { margin: 0; font-size: clamp(44px, 7vw, 96px); line-height: 0.95; letter-spacing: -2.5px; }
.lu-hero h1 em { font-style: normal; color: var(--head-accent); }
.lu-hero__text { margin: 28px 0 0; max-width: 560px; font-size: 19px; line-height: 1.55; color: var(--muted); }
.lu-hero__ctas { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }
.lu-countdown { flex: 1 1 300px; background: var(--orange); color: var(--on-orange); border-radius: 24px; padding: 32px; display: flex; flex-direction: column; gap: 20px; }
.lu-countdown p { margin: 0; }
.lu-countdown__label { font-size: 13px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; }
.lu-countdown__date { font-size: 44px; line-height: 1; letter-spacing: -1px; }
.lu-countdown__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; border-top: 1.5px solid rgba(14,14,14,0.25); padding-top: 20px; }
.lu-countdown__stats strong { display: block; font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: 32px; line-height: 1.1; }
.lu-countdown__stats span { font-size: 13px; font-weight: 600; }

/* Category bar + search */
.lu-catbar { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lu-catbar__in { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding-top: 20px; padding-bottom: 20px; }
.lu-catbar__label { margin: 0 12px 0 0; font-size: 13px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--faint); }
.lu-chip { color: var(--text); text-decoration: none; background: var(--chip); border: 1px solid var(--chip-line); font-size: 15px; font-weight: 500; padding: 10px 16px; border-radius: 999px; }
.lu-chip:hover { border-color: var(--orange); color: var(--text); }
.lu-chip--sort { font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; border-color: var(--orange); }
.lu-chip--sort[aria-pressed="true"] { background: var(--orange); color: var(--on-orange); }
.lu-search { margin-right: 8px; display: flex; align-items: center; gap: 8px; background: var(--chip); border: 1px solid var(--chip-line); border-radius: 999px; padding: 0 16px; min-width: 240px; flex: 0 1 300px; color: var(--faint); }
.lu-search input { border: 0; background: transparent; color: var(--text); font: inherit; font-size: 15px; padding: 11px 0; width: 100%; }
.lu-search input:focus { outline: none; }
.lu-search:focus-within { border-color: var(--orange); }
.lu-noresults { display: none; padding: 40px 0; color: var(--muted); font-size: 17px; }

/* Sections + cards */
.lu-section { padding-top: 88px; }
.lu-section__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 32px; }
.lu-section__head h2 { margin: 0; font-size: 48px; letter-spacing: -1.2px; line-height: 1; }
.lu-section__head p { margin: 0; color: var(--faint); font-size: 15px; max-width: 520px; }
.lu-cat { padding-top: 72px; scroll-margin-top: 90px; }
.lu-cat__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 16px; margin-bottom: 24px; border-top: 1px solid var(--line); padding-top: 40px; }
.lu-cat__head h2 { margin: 0; font-size: 36px; letter-spacing: -0.8px; line-height: 1.05; }
.lu-cat__count { font-size: 13px; font-weight: 700; color: var(--on-orange); background: var(--orange); padding: 4px 10px; border-radius: 999px; }
.lu-cat__intro { margin: 0; color: var(--muted); font-size: 16px; flex-basis: 100%; }
.lu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.lu-card { background: var(--card); border: 1.5px solid var(--card-line); border-radius: 20px; padding: 20px; display: flex; flex-direction: column; gap: 12px; transition: border-color .15s; }
.lu-card:hover { border-color: var(--orange); }
.lu-card__img { height: 180px; border-radius: 14px; background: var(--img-bg); border: 1px solid var(--img-line); display: flex; align-items: center; justify-content: center; color: var(--img-icon); overflow: hidden; }
.lu-card__img img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.lu-card__img svg { width: 64px; height: 64px; }
.lu-card__img .lu-illo { width: 100%; height: 100%; max-width: 240px; }
.lu-card__img { position: relative; }
.lu-badge { position: absolute; top: 12px; left: 12px; z-index: 1; background: #0E0E0E; color: #FFFFFF; border-radius: 12px; padding: 7px 11px 6px; transform: rotate(-4deg); box-shadow: 0 4px 0 var(--orange); text-align: left; line-height: 1; }
.lu-badge strong { display: block; font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: 24px; letter-spacing: -0.5px; }
.lu-badge strong span { font-size: 15px; letter-spacing: 0; }
.lu-badge small { display: block; margin-top: 3px; font-size: 10px; font-weight: 600; letter-spacing: 0.4px; color: #FFB27A; text-transform: uppercase; }
.lu-badge--hot { background: var(--orange); color: #0E0E0E; box-shadow: 0 4px 0 #0E0E0E; }
.lu-badge--hot small { color: #3A1A05; }
.lu-discount-note { margin: 0; font-size: 13px; color: var(--faint); }
.lu-card__meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.lu-card__cat { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--accent-text); }
.lu-card__rank { font-size: 12px; font-weight: 700; color: var(--on-orange); background: var(--orange); padding: 4px 10px; border-radius: 999px; }
.lu-card h3 { margin: 0; font-size: 20px; font-weight: 700; line-height: 1.25; }
.lu-card__why { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; flex-grow: 1; }
.lu-card__btn { text-align: center; background: var(--orange); color: var(--on-orange); text-decoration: none; font-weight: 700; font-size: 15px; padding: 14px; border-radius: 12px; }
.lu-card__btn:hover { background: #FF8233; color: var(--on-orange); }

/* Tips */
.lu-tips { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; padding-top: 88px; padding-bottom: 88px; }
.lu-tips > div { border-top: 3px solid var(--orange); padding-top: 20px; }
.lu-tips h3 { margin: 0 0 10px; font-size: 20px; }
.lu-tips p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }

/* Newsletter */
.lu-news { background: var(--orange); color: var(--on-orange); border-radius: 28px; padding: 48px; display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; margin-bottom: 88px; }
.lu-news h2 { margin: 0; font-size: 44px; letter-spacing: -1px; line-height: 1; }
.lu-news p { margin: 14px 0 0; font-size: 17px; max-width: 460px; }
.lu-news form { flex: 1 1 360px; display: flex; flex-wrap: wrap; gap: 10px; }
.lu-news input[type="email"] { flex: 1 1 220px; font: inherit; font-size: 16px; padding: 16px 18px; border-radius: 999px; border: 0; background: #FFF4EA; color: #0E0E0E; }
.lu-news button { background: #0E0E0E; color: #F5F2EE; }

/* Footer */
.lu-footer { border-top: 1px solid var(--line); }
.lu-footer__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 32px; padding-bottom: 48px; color: var(--faint); font-size: 13px; line-height: 1.6; }
.lu-footer__in p { margin: 0; max-width: 640px; }
.lu-footer a { color: var(--faint); }

/* Blog posts / pages */
.lu-article { max-width: 760px; margin: 0 auto; padding: 64px 24px 88px; font-size: 18px; line-height: 1.7; }
.lu-article h1 { font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: clamp(36px, 5vw, 56px); line-height: 1.05; letter-spacing: -1.2px; margin: 0 0 16px; }
.lu-article h2 { font-family: "Bricolage Grotesque", sans-serif; font-size: 32px; line-height: 1.15; margin: 48px 0 12px; }
.lu-article h3 { font-size: 22px; margin: 32px 0 8px; }
.lu-article .wp-block-button__link, .lu-article a.lu-cta { display: inline-block; background: var(--orange); color: var(--on-orange); text-decoration: none; font-weight: 700; padding: 12px 20px; border-radius: 12px; }
.lu-article__meta { color: var(--faint); font-size: 14px; margin-bottom: 32px; }
.lu-postlist { display: grid; gap: 20px; padding: 64px 24px 88px; }
.lu-postlist article { border: 1.5px solid var(--card-line); background: var(--card); border-radius: 20px; padding: 28px; }
.lu-postlist h2 { margin: 0 0 8px; font-size: 28px; }
.lu-postlist h2 a { color: var(--text); text-decoration: none; }

@media (max-width: 640px) {
	.lu-header { position: static; }
	.lu-header__in { padding-top: 12px; padding-bottom: 12px; gap: 12px; }
	.lu-hero { padding-top: 48px; padding-bottom: 48px; gap: 32px; }
	.lu-section__head h2 { font-size: 36px; }
	.lu-news { padding: 32px 24px; }
	.lu-news h2 { font-size: 34px; }
	.lu-search { margin-right: 0; flex: 1 1 100%; }
	.lu-nav ul { gap: 18px; }
}
