/*
Theme Name: StarBeatDaily
Theme URI: https://starbeatdaily.com
Author: StarBeatDaily
Description: A dark editorial feed for entertainment news and pop culture.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: starbeatdaily
*/

:root {
	color-scheme: dark;
	--ink: #f5f6f8;
	--muted: #9299a5;
	--subtle: #626b79;
	--surface: #0b0e13;
	--surface-raised: #10151d;
	--surface-hover: #151b25;
	--line: #202732;
	--accent: #f4c95d;
	--accent-strong: #ffe08a;
	--danger: #ff737f;
	--radius: 18px;
	--content: 1240px;
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html { background: var(--surface); scroll-behavior: smooth; }
body { margin: 0; background: var(--surface); color: var(--ink); font-size: 16px; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent-strong); }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; height: auto; }

.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.screen-reader-text:focus { z-index: 100000; top: 12px; left: 12px; width: auto; height: auto; padding: 12px 16px; clip: auto; background: var(--ink); color: var(--surface); }
.site-shell { min-height: 100vh; }
.site-header { position: sticky; z-index: 20; top: 0; border-bottom: 1px solid rgb(255 255 255 / 7%); background: rgb(11 14 19 / 92%); backdrop-filter: blur(18px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; width: min(var(--content), calc(100% - 48px)); min-height: 76px; margin: 0 auto; gap: 32px; }
.brand { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 10px; color: var(--ink); }
.brand-mark { display: block; flex: 0 0 auto; width: 38px; height: 38px; border-radius: 10px; object-fit: contain; }
.brand-name { color: var(--ink); font-size: 1.18rem; font-weight: 850; letter-spacing: -.045em; white-space: nowrap; }
.brand-accent { color: #ffb774; }
.header-nav { display: flex; align-items: center; gap: 28px; color: #bac0ca; font-size: .9rem; font-weight: 650; }
.header-nav a { padding: 26px 0 24px; border-bottom: 2px solid transparent; }
.header-nav a:hover, .header-nav .current-menu-item > a { color: var(--ink); border-color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.search-link { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; color: #c2c7d0; }
.search-link svg { width: 17px; height: 17px; }
.menu-toggle { display: none; align-items: center; justify-content: center; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; }
.menu-toggle svg { width: 20px; height: 20px; }

.main-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; align-items: start; gap: 56px; width: min(var(--content), calc(100% - 48px)); margin: 0 auto; }
.feed-column { min-width: 0; }
.feed-intro { padding: 50px 0 34px; border-bottom: 1px solid var(--line); }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: var(--accent); font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow::before { width: 22px; height: 1px; background: var(--accent); content: ""; }
.feed-intro h1 { max-width: 760px; margin: 12px 0 10px; font-size: clamp(2.5rem, 5vw, 4.35rem); font-weight: 790; letter-spacing: -.065em; line-height: 1.04; }
.feed-intro p { max-width: 640px; margin: 0; color: var(--muted); font-size: 1.05rem; }
.feed-toolbar { display: flex; align-items: center; justify-content: space-between; padding: 19px 0 14px; }
.feed-toolbar h2 { margin: 0; font-size: .98rem; font-weight: 750; letter-spacing: -.01em; }
.feed-count { color: var(--muted); font-size: .78rem; }
.category-rail { display: flex; overflow-x: auto; gap: 8px; padding: 0 0 22px; scrollbar-width: none; }
.category-rail::-webkit-scrollbar { display: none; }
.category-pill { display: inline-flex; flex: 0 0 auto; align-items: center; min-height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; color: #b0b7c1; font-size: .78rem; font-weight: 700; transition: border-color .18s, background .18s, color .18s; }
.category-pill:hover, .category-pill.is-active { border-color: rgb(244 201 93 / 55%); background: rgb(244 201 93 / 9%); color: var(--accent-strong); }
.story-list { border-top: 1px solid var(--line); }
.story-card { display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.story-card-main { min-width: 0; }
.story-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; color: var(--muted); font-size: .75rem; font-weight: 600; }
.story-category { color: var(--accent); font-weight: 800; }
.meta-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--subtle); }
.story-card h3 { margin: 10px 0 7px; font-size: clamp(1.22rem, 2.1vw, 1.62rem); font-weight: 760; letter-spacing: -.035em; line-height: 1.24; }
.story-card h3 a:hover { color: var(--accent-strong); }
.story-excerpt { display: -webkit-box; overflow: hidden; margin: 0; color: #a3abb6; font-size: .94rem; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.story-byline { display: flex; align-items: center; gap: 9px; margin-top: 16px; color: var(--muted); font-size: .76rem; }
.author-avatar { display: grid; width: 26px; height: 26px; flex: 0 0 26px; place-items: center; overflow: hidden; border-radius: 50%; background: #202836; color: var(--accent); font-size: .66rem; font-weight: 800; }
.author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.story-thumb { position: relative; overflow: hidden; align-self: stretch; min-height: 142px; border: 1px solid rgb(255 255 255 / 6%); border-radius: 14px; background: radial-gradient(circle at 78% 24%, #3b3020 0, transparent 42%), linear-gradient(135deg, #202734, #10141b 72%); }
.story-thumb::after { position: absolute; right: -15%; bottom: -55%; width: 80%; aspect-ratio: 1; border: 1px solid rgb(244 201 93 / 17%); border-radius: 50%; content: ""; }
.story-thumb img { width: 100%; height: 100%; min-height: 142px; object-fit: cover; transition: transform .35s; }
.story-card:hover .story-thumb img { transform: scale(1.035); }
.story-source { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; color: #788291; font-size: .72rem; }
.story-source svg { width: 13px; height: 13px; color: var(--accent); }
.empty-feed { padding: 45px 30px; border: 1px dashed #303947; border-radius: var(--radius); background: linear-gradient(145deg, rgb(255 255 255 / 2%), transparent 70%); text-align: center; }
.empty-feed-mark { display: grid; width: 52px; height: 52px; margin: 0 auto 17px; place-items: center; border: 1px solid rgb(244 201 93 / 24%); border-radius: 17px; background: rgb(244 201 93 / 8%); color: var(--accent); font-size: 1.2rem; }
.empty-feed h2 { margin: 0 0 8px; font-size: 1.3rem; letter-spacing: -.03em; }
.empty-feed p { max-width: 430px; margin: 0 auto; color: var(--muted); font-size: .9rem; }
.pagination { display: flex; justify-content: center; gap: 8px; padding: 28px 0; }
.pagination .page-numbers { display: grid; min-width: 40px; height: 40px; place-items: center; border: 1px solid var(--line); border-radius: 10px; color: #b7bec9; font-size: .85rem; }
.pagination .current { border-color: var(--accent); background: rgb(244 201 93 / 10%); color: var(--accent); }

.sidebar { position: sticky; top: 104px; padding-top: 52px; }
.sidebar-panel { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-raised); }
.sidebar-panel + .sidebar-panel { margin-top: 16px; }
.sidebar-heading { display: flex; align-items: center; justify-content: space-between; margin: 0 0 16px; font-size: .92rem; font-weight: 780; }
.live-dot { display: inline-flex; align-items: center; gap: 7px; color: #8dd7a7; font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.live-dot::before { width: 7px; height: 7px; border-radius: 50%; background: #60d58d; box-shadow: 0 0 0 4px rgb(96 213 141 / 11%); content: ""; }
.trending-list { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; counter-reset: trending; }
.trending-list li { display: grid; grid-template-columns: 23px 1fr; gap: 9px; color: var(--muted); font-size: .82rem; line-height: 1.4; counter-increment: trending; }
.trending-list li::before { color: #515b69; font-size: .72rem; font-weight: 800; content: "0" counter(trending); }
.trending-list a { color: #d7dbe1; font-weight: 650; }
.trending-empty { margin: 0; color: var(--muted); font-size: .82rem; }
.category-list { display: grid; gap: 3px; margin: -6px -8px; padding: 0; list-style: none; }
.category-list a { display: flex; align-items: center; justify-content: space-between; padding: 9px 10px; border-radius: 9px; color: #b9c0cb; font-size: .84rem; font-weight: 650; }
.category-list a:hover { background: var(--surface-hover); color: var(--accent-strong); }
.category-count { color: var(--subtle); font-size: .7rem; }
.sidebar-note { color: var(--muted); font-size: .8rem; }
.sidebar-note strong { color: var(--ink); }
.sidebar-brand { display: flex; align-items: center; gap: 9px; margin: 0 0 9px; }
.sidebar-brand .brand-mark { width: 28px; height: 28px; border-radius: 8px; }
.sidebar-brand .brand-name { font-size: .9rem; letter-spacing: -.035em; }

.story-page { width: min(820px, calc(100% - 48px)); margin: 0 auto; padding: 52px 0 90px; }
.story-back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 32px; color: var(--muted); font-size: .83rem; font-weight: 700; }
.story-back:hover { color: var(--accent); }
.story-back svg { width: 16px; height: 16px; }
.article-head h1 { margin: 13px 0 17px; font-size: clamp(2.1rem, 6vw, 4.3rem); font-weight: 790; letter-spacing: -.065em; line-height: 1.04; }
.article-deck { max-width: 720px; margin: 0; color: #b1b8c2; font-size: clamp(1.05rem, 2vw, 1.28rem); line-height: 1.55; }
.article-byline { display: flex; flex-wrap: wrap; align-items: center; gap: 11px; margin: 24px 0 28px; color: var(--muted); font-size: .8rem; }
.article-byline .author-avatar { width: 34px; height: 34px; flex-basis: 34px; }
.article-hero { overflow: hidden; margin: 0 0 35px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface-raised); }
.article-hero img { width: 100%; max-height: 520px; object-fit: cover; }
.article-content { color: #d0d4db; font-size: 1.07rem; line-height: 1.85; }
.article-content > * { margin-top: 0; margin-bottom: 1.35em; }
.article-content h2, .article-content h3 { margin-top: 1.7em; color: var(--ink); font-weight: 760; letter-spacing: -.035em; line-height: 1.25; }
.article-content h2 { font-size: 1.75rem; }
.article-content h3 { font-size: 1.35rem; }
.article-content a { color: var(--accent-strong); text-decoration: underline; text-decoration-color: rgb(244 201 93 / 45%); text-underline-offset: 3px; }
.article-content blockquote { margin-left: 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--accent); color: #e5d9b9; font-size: 1.14rem; }
.article-content figure { margin-left: 0; margin-right: 0; }
.article-content img { border-radius: 16px; }
.source-credit { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 42px; padding: 17px 19px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-raised); color: var(--muted); font-size: .82rem; }
.source-credit svg { width: 16px; height: 16px; color: var(--accent); }
.source-credit strong { color: var(--ink); }
.source-credit a { color: var(--accent-strong); text-decoration: underline; text-underline-offset: 3px; }
.article-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); }
.article-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.article-tags a { padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .72rem; font-weight: 700; }
.article-tags a:hover { border-color: var(--accent); color: var(--accent); }
.article-share { color: var(--muted); font-size: .8rem; }
.article-share:hover { color: var(--accent-strong); }
.site-footer { margin-top: 70px; border-top: 1px solid var(--line); background: #090b10; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; width: min(var(--content), calc(100% - 48px)); min-height: 90px; margin: 0 auto; gap: 20px; }
.footer-copy { color: var(--muted); font-size: .75rem; }
.footer-disclaimer { max-width: 520px; margin: 6px 0 0; color: var(--subtle); font-size: .68rem; line-height: 1.5; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; color: #929aa6; font-size: .76rem; }
.footer-links a:hover { color: var(--accent); }
.search-form { display: flex; gap: 10px; margin: 20px 0 30px; }
.search-form input[type="search"] { flex: 1; min-width: 0; padding: 13px 15px; border: 1px solid var(--line); border-radius: 10px; outline: 0; background: var(--surface-raised); color: var(--ink); }
.search-form input[type="search"]:focus { border-color: var(--accent); }
.search-form input[type="submit"] { padding: 0 19px; border: 0; border-radius: 10px; background: var(--accent); color: #17130a; font-weight: 800; cursor: pointer; }
.wp-block-image img { border-radius: 15px; }
.wp-block-embed iframe { max-width: 100%; }

@media (max-width: 980px) {
	.main-layout { grid-template-columns: minmax(0, 1fr) 260px; gap: 32px; }
	.header-nav { gap: 19px; }
	.story-card { grid-template-columns: minmax(0, 1fr) 155px; gap: 18px; }
}

@media (max-width: 760px) {
	.header-inner { width: min(100% - 32px, var(--content)); min-height: 66px; gap: 12px; }
	.brand-name { font-size: 1.04rem; }
	.brand-mark { width: 33px; height: 33px; }
	.menu-toggle { display: inline-flex; }
	.header-actions { margin-left: auto; }
	.header-nav { position: absolute; top: calc(100% + 1px); right: 0; left: 0; display: none; align-items: stretch; gap: 0; padding: 8px 16px 15px; border-bottom: 1px solid var(--line); background: #0b0e13; }
	.header-nav.is-open { display: flex; flex-direction: column; }
	.header-nav a { padding: 12px 8px; border-bottom: 0; }
	.main-layout { display: block; width: min(100% - 32px, 640px); }
	.feed-intro { padding: 36px 0 27px; }
	.feed-intro h1 { font-size: clamp(2.45rem, 12vw, 3.7rem); }
	.feed-intro p { font-size: .96rem; }
	.category-rail { margin-right: -16px; }
	.story-card { grid-template-columns: minmax(0, 1fr) 112px; gap: 13px; padding: 21px 0; }
	.story-thumb, .story-thumb img { min-height: 112px; }
	.story-card h3 { margin-top: 8px; font-size: 1.15rem; }
	.story-excerpt { font-size: .84rem; -webkit-line-clamp: 2; }
	.story-byline { margin-top: 12px; font-size: .69rem; }
	.story-source { margin-top: 9px; font-size: .68rem; }
	.sidebar { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding-top: 22px; }
	.sidebar-panel { padding: 17px; }
	.sidebar-panel + .sidebar-panel { margin-top: 0; }
	.sidebar-panel:last-child { grid-column: 1 / -1; }
	.story-page { width: min(100% - 32px, 680px); padding-top: 36px; }
	.article-head h1 { font-size: clamp(2.3rem, 11vw, 3.7rem); }
	.article-content { font-size: 1rem; }
	.footer-inner { width: min(100% - 32px, var(--content)); align-items: flex-start; flex-direction: column; justify-content: center; padding: 24px 0; gap: 12px; }
}

@media (max-width: 420px) {
	.story-card { grid-template-columns: minmax(0, 1fr) 88px; gap: 11px; }
	.story-thumb, .story-thumb img { min-height: 94px; }
	.story-card h3 { font-size: 1.06rem; }
	.story-excerpt { font-size: .8rem; }
	.story-meta { gap: 6px; font-size: .68rem; }
	.sidebar { grid-template-columns: 1fr; }
	.sidebar-panel:last-child { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
