/*
Theme Name: Spark
Theme URI: https://radiospark.net/
Description: Тема за Spark Radio (child тема на GeneratePress). Темен изглед, плеер и канали преку плагинот Spark Radio.
Author: Spark Radio
Template: generatepress
Version: 1.0.2
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: spark
Update URI: false
*/

/* Tokens fall back here in case the Spark Radio plugin is off. */
:root {
	--sr-bg: #0B0B0F;
	--sr-surface: #16151D;
	--sr-line: #2A2933;
	--sr-text: #F4F2EE;
	--sr-muted: #ABA9B4;
	--sr-accent: #FF7A2E;
	--sr-accent2: #FFB07F;
	--sr-ink: #17100A;
	--sr-display: "Unbounded", "Manrope", system-ui, sans-serif;
	--sr-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
	--sp-header-h: 76px;
}

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--sp-header-h) + 16px); background: var(--sr-bg); }
body { margin: 0; background: var(--sr-bg); color: var(--sr-text); font-family: var(--sr-body); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--sr-accent2); }
a:hover { color: #FFD0B0; }
::selection { background: var(--sr-accent); color: var(--sr-ink); }
img { max-width: 100%; height: auto; }

.sp-skip { position: absolute; left: -9999px; top: 8px; z-index: 10000; padding: 10px 16px; border-radius: 10px; background: var(--sr-accent); color: var(--sr-ink); font-weight: 800; }
.sp-skip:focus { left: 8px; }

/* ---------- header ---------- */
.sp-header { position: sticky; top: 0; z-index: 9980; background: rgba(11, 11, 15, .55); -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3); border-bottom: 1px solid transparent; transition: background .3s, border-color .3s; }
.admin-bar .sp-header { top: 32px; }
.sr-scrolled .sp-header { background: rgba(11, 11, 15, .92); border-bottom-color: #1F1E27; }
.sp-header__in { max-width: 1240px; margin: 0 auto; padding: 0 20px; min-height: var(--sp-header-h); display: flex; align-items: center; gap: 20px; box-sizing: border-box; }
.sp-brand { display: flex; align-items: center; gap: 12px; text-decoration: none !important; color: var(--sr-text) !important; flex: none; }
.sp-brand img { width: 50px; height: 50px; object-fit: cover; border-radius: 14px; background: #fff; display: block; box-shadow: 0 6px 20px -6px rgba(255, 122, 46, .6); transition: transform .4s; }
.sp-brand:hover img { transform: rotate(-8deg) scale(1.05); }
.sp-brand__txt { display: flex; flex-direction: column; line-height: 1.1; }
.sp-brand__name { font-family: var(--sr-display); font-weight: 800; font-size: 18px; letter-spacing: .02em; }
.sp-brand__tag { font-size: 12px; color: var(--sr-muted); }

.sp-nav { flex: 1 1 auto; display: flex; justify-content: center; }
.sp-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.sp-nav li { position: relative; }
.sp-nav a, .sp-nav .sp-drop__btn { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 12px; color: #E6E4EC !important; text-decoration: none !important; font-weight: 700; font-size: 15px; background: none; border: 0; cursor: pointer; font-family: inherit; transition: background .2s, color .2s; }
.sp-nav a:hover, .sp-nav .sp-drop__btn:hover, .sp-nav .is-active > a, .sp-nav .is-active > .sp-drop__btn { background: rgba(255, 255, 255, .06); color: #fff !important; }
.sp-nav .is-active > a::after { content: ""; display: block; width: 6px; height: 6px; border-radius: 50%; background: var(--sr-accent); margin-left: 2px; }
.sp-drop__menu { position: absolute; top: calc(100% + 8px); left: 50%; transform: translate(-50%, 6px); min-width: 280px; padding: 8px; border-radius: 18px; background: #16151D; border: 1px solid #2A2933; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s; display: flex !important; flex-direction: column; gap: 2px !important; }
.sp-drop:hover .sp-drop__menu, .sp-drop:focus-within .sp-drop__menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.sp-drop__menu a { gap: 12px; padding: 8px 10px; }
.sp-drop__menu img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: #fff; flex: none; }
.sp-drop__menu small { display: block; font-weight: 500; font-size: 12px; color: var(--sr-muted); }

.sp-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.sp-social { width: 44px; height: 44px; border-radius: 12px; border: 1px solid #2E2D37; display: inline-flex; align-items: center; justify-content: center; color: #E6E4EC !important; }
.sp-social:hover { border-color: var(--sr-accent); color: var(--sr-accent2) !important; }
.sp-listen { display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 18px; border-radius: 14px; border: 0; cursor: pointer; background: var(--sr-accent); color: var(--sr-ink); font-family: var(--sr-body); font-weight: 800; font-size: 14px; box-shadow: 0 10px 30px -12px rgba(255, 122, 46, .8); transition: transform .2s; }
.sp-listen:hover { transform: translateY(-2px); }
.sp-listen__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--sr-ink); animation: sp-blink 1.4s infinite; }
.sp-listen__on { display: none; }
.sp-listen.is-playing .sp-listen__off, .sp-listen.is-loading .sp-listen__off { display: none; }
.sp-listen.is-playing .sp-listen__on, .sp-listen.is-loading .sp-listen__on { display: inline; }
@keyframes sp-blink { 50% { opacity: .25; } }
.sp-burger { display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid #2E2D37; background: transparent; color: var(--sr-text); align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.sp-burger .sp-burger__x { display: none; }
.sr-menu-open .sp-burger .sp-burger__x { display: inline-flex; }
.sr-menu-open .sp-burger .sp-burger__m { display: none; }

/* page loading bar during seamless navigation */
.sp-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 10001; background: linear-gradient(90deg, var(--sr-accent), #FFD08A); box-shadow: 0 0 12px var(--sr-accent); opacity: 0; }
.sr-navigating .sp-progress { opacity: 1; animation: sp-load 1.2s ease-out forwards; }
@keyframes sp-load { from { width: 0; } to { width: 85%; } }
.sr-navigating #spark-main { opacity: .55; transition: opacity .2s; }

/* ---------- inner pages ---------- */
.sp-pagehead { position: relative; overflow: hidden; padding: 64px 0 40px; border-bottom: 1px solid #1F1E27; isolation: isolate; }
.sp-pagehead::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 15% 0%, rgba(255, 122, 46, .22), transparent 55%), radial-gradient(ellipse at 90% 100%, rgba(61, 123, 255, .12), transparent 50%); }
.sp-pagehead h1 { margin: 10px 0 0; font-family: var(--sr-display); font-weight: 800; font-size: clamp(32px, 5vw, 56px); line-height: 1.05; letter-spacing: -.02em; color: var(--sr-text); }
.sp-page { padding-top: 40px; padding-bottom: 32px; }
.sp-prose { max-width: 780px; font-size: 17px; line-height: 1.75; color: #DAD8E0; }
.sp-prose h2, .sp-prose h3 { font-family: var(--sr-display); color: var(--sr-text); line-height: 1.2; }
.sp-prose a { color: var(--sr-accent2); }

/* GeneratePress posts/archives on the dark theme */
.site-main .inside-article, .site-main .page-header, .comments-area, .paging-navigation, .widget-area .widget { background: var(--sr-surface) !important; color: #DAD8E0; border-radius: 20px; }
.entry-title, .entry-title a, .page-title { color: var(--sr-text) !important; font-family: var(--sr-display); }
.entry-meta, .entry-meta a { color: var(--sr-muted) !important; }
.site.grid-container, .site-content { background: transparent !important; }
input[type="text"], input[type="email"], input[type="search"], input[type="url"], textarea, select { background: #1D1C25; color: var(--sr-text); border: 1px solid #34323D; border-radius: 12px; }

/* ---------- footer ---------- */
.sp-footer { margin-top: 72px; border-top: 1px solid #1F1E27; background: linear-gradient(180deg, #0D0C12, #08080B); }
.sp-footer__in { max-width: 1240px; margin: 0 auto; padding: 52px 20px 28px; display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; box-sizing: border-box; }
.sp-footer h2 { margin: 0 0 14px; font-family: var(--sr-display); font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--sr-text); }
.sp-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.sp-footer a { color: #C9C7D0 !important; text-decoration: none; }
.sp-footer a:hover { color: var(--sr-accent2) !important; }
.sp-footer__brand p { color: var(--sr-muted); margin: 14px 0 18px; max-width: 340px; }
.sp-footer__phone { font-family: var(--sr-display); font-weight: 800; font-size: 22px; color: var(--sr-accent2) !important; }
.sp-footer__bottom { max-width: 1240px; margin: 0 auto; padding: 18px 20px 24px; border-top: 1px solid #1F1E27; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: #8E8C96; box-sizing: border-box; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
	.sp-brand__tag { display: none; }
	.sp-nav a, .sp-nav .sp-drop__btn { padding: 10px 10px; font-size: 14px; }
}
@media (max-width: 900px) {
	:root { --sp-header-h: 66px; }
	/* A backdrop-filter on the header would trap the fixed menu inside it. */
	.sp-header, .sr-scrolled .sp-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(11, 11, 15, .97); }
	.sp-nav { z-index: 9985; background: #0B0B0F; }
	.sp-burger { display: inline-flex; }
	.sp-social { display: none; }
	.sp-actions { margin-left: auto; }
	.sp-nav { position: fixed; inset: var(--sp-header-h) 0 0 0; z-index: 9979; background: rgba(11, 11, 15, .98); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); padding: 16px 20px 120px; overflow-y: auto; display: block; opacity: 0; visibility: hidden; transform: translateY(-10px); transition: opacity .25s, transform .25s, visibility .25s; }
	.admin-bar .sp-nav { top: calc(var(--sp-header-h) + 46px); }
	.sr-menu-open .sp-nav { opacity: 1; visibility: visible; transform: none; }
	.sr-menu-open body { overflow: hidden; }
	.sp-nav ul { flex-direction: column; align-items: stretch; gap: 4px; }
	.sp-nav a, .sp-nav .sp-drop__btn { font-size: 18px; padding: 14px 12px; width: 100%; }
	.sp-drop__btn { pointer-events: none; color: var(--sr-muted) !important; font-size: 13px !important; text-transform: uppercase; letter-spacing: .08em; padding-bottom: 4px !important; }
	.sp-drop__btn .sr-ico { display: none; }
	.sp-drop__menu { position: static; transform: none; opacity: 1; visibility: visible; min-width: 0; border: 0; box-shadow: none; padding: 0 0 8px; background: none; }
	.sp-drop__menu a { font-size: 16px !important; }
	.sp-footer__in { grid-template-columns: 1fr 1fr; }
	.sp-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 782px) {
	.admin-bar .sp-header { top: 46px; }
}
@media (max-width: 600px) {
	.admin-bar .sp-header { top: 0; }
	.sp-header__in { padding: 0 14px; gap: 10px; }
	.sp-brand img { width: 42px; height: 42px; }
	.sp-brand__name { font-size: 15px; }
	.sp-listen { height: 44px; padding: 0 14px; font-size: 13px; }
	.sp-actions { margin-left: auto; }
}
@media (max-width: 420px) {
	.sp-brand__txt { display: none; }
	.sp-footer__in { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
}
