/* Radio Vaporaki — global theme styles */

:root {
	--rv-aegean-dark: #0e4e73;
	--rv-aegean: #1a6e9e;
	--rv-amber: #e8a33d;
	--rv-cream: #fbf7ee;
	--rv-ink: #123040;
	--rv-muted: #8194a0;
	--rv-body: #41525c;
	--rv-content: 1080px;
	--rv-logo-size: 100px;
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: 'Alegreya Sans', sans-serif;
	color: var(--rv-ink);
	background: var(--rv-cream);
	overflow-x: hidden;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

/* Header */
.rv-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(14, 78, 115, 0.92);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.rv-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 40px;
	max-width: var(--rv-content);
	margin: 0 auto;
}

.rv-header__brand {
	display: flex;
	align-items: center;
	gap: 14px;
	text-decoration: none;
	color: inherit;
}

.rv-header__logo,
.rv-footer__logo {
	display: block;
	flex: 0 0 var(--rv-logo-size);
	width: var(--rv-logo-size);
	height: var(--rv-logo-size);
	min-width: var(--rv-logo-size);
	min-height: var(--rv-logo-size);
	line-height: 0;
	overflow: hidden;
	border-radius: 50%;
}

.rv-header__logo img,
.rv-footer__logo img,
.rv-header .custom-logo,
.rv-footer .custom-logo {
	display: block;
	width: var(--rv-logo-size) !important;
	height: var(--rv-logo-size) !important;
	max-width: var(--rv-logo-size) !important;
	max-height: var(--rv-logo-size) !important;
	min-width: 0;
	border-radius: 50%;
	object-fit: cover;
}

.rv-header__logo--placeholder,
.rv-footer__logo--placeholder {
	width: var(--rv-logo-size);
	height: var(--rv-logo-size);
	border-radius: 50%;
	border: 1.5px dashed rgba(255, 255, 255, 0.55);
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: monospace;
	font-size: 8px;
	color: rgba(255, 255, 255, 0.7);
	text-align: center;
	line-height: 1.1;
	background: rgba(255, 255, 255, 0.06);
	flex-shrink: 0;
}

.rv-header__titles {
	display: flex;
	flex-direction: column;
	line-height: 1;
}

.rv-header__site-title {
	font-family: 'Cormorant Garamond', serif;
	font-weight: 600;
	font-size: 22px;
	color: #fff;
	letter-spacing: 0.5px;
}

.rv-header__tagline {
	font-size: 11px;
	letter-spacing: 3px;
	color: var(--rv-amber);
	margin-top: 3px;
}

.rv-header__nav {
	display: flex;
	align-items: center;
	gap: 30px;
}

.rv-header__menu {
	display: flex;
	align-items: center;
	gap: 30px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.rv-header__menu a {
	color: rgba(255, 255, 255, 0.85);
	text-decoration: none;
	font-size: 16px;
}

.rv-header__menu a:hover {
	color: #fff;
}

.rv-header__toggle {
	display: none;
	flex-direction: column;
	gap: 5px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 8px;
}

.rv-header__toggle span {
	display: block;
	width: 24px;
	height: 2px;
	background: #fff;
}

/* Play button */
.rv-play-btn {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	background: var(--rv-amber);
	color: var(--rv-ink);
	border: none;
	border-radius: 100px;
	padding: 9px 20px;
	font-family: 'Alegreya Sans', sans-serif;
	font-weight: 700;
	font-size: 15px;
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.rv-play-btn:hover {
	transform: translateY(-1px);
}

.rv-play-btn--hero {
	padding: 16px 36px;
	font-size: 19px;
	font-weight: 800;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.rv-play-btn--circle {
	width: 60px;
	height: 60px;
	padding: 0;
	justify-content: center;
	border-radius: 50%;
	background: var(--rv-aegean);
	color: #fff;
	box-shadow: 0 8px 20px rgba(26, 110, 158, 0.4);
}

/* Footer */
.rv-footer {
	background: var(--rv-ink);
	padding: 56px 40px 40px;
	color: rgba(255, 255, 255, 0.55);
	margin-top: 0;
	margin-block-start: 0;
}

.rv-footer__inner {
	max-width: var(--rv-content);
	margin: 0 auto;
	display: flex;
	flex-wrap: wrap;
	gap: 30px;
	justify-content: space-between;
	align-items: flex-start;
}

.rv-footer__brand {
	max-width: 320px;
}

.rv-footer__brand-row {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 14px;
}

.rv-footer__site-title {
	font-family: 'Cormorant Garamond', serif;
	font-weight: 600;
	font-size: 22px;
	color: #fff;
}

.rv-footer__text {
	font-size: 15px;
	line-height: 1.6;
	margin: 0;
}

.rv-footer__social {
	display: flex;
	gap: 14px;
}

.rv-footer__social-link {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.2);
	display: flex;
	align-items: center;
	justify-content: center;
	color: rgba(255, 255, 255, 0.8);
	text-decoration: none;
	font-size: 14px;
	font-weight: 700;
}

.rv-footer__bottom {
	max-width: var(--rv-content);
	margin: 36px auto 0;
	padding-top: 22px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px;
	font-size: 13px;
	color: rgba(255, 255, 255, 0.4);
}

/* Animations */
@keyframes rv-eq {
	0%, 100% { transform: scaleY(0.35); }
	50% { transform: scaleY(1); }
}

@keyframes rv-floaty {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-8px); }
}

.rv-eq {
	display: inline-flex;
	align-items: flex-end;
	gap: 3px;
	height: 16px;
}

.rv-eq i {
	display: block;
	width: 3px;
	height: 100%;
	background: var(--rv-amber);
	transform-origin: bottom;
}

.rv-eq.is-active i {
	animation: rv-eq 0.9s ease-in-out infinite;
}

.rv-eq.is-active i:nth-child(2) { animation-delay: 0.3s; }
.rv-eq.is-active i:nth-child(3) { animation-delay: 0.6s; }
.rv-eq.is-active i:nth-child(4) { animation-delay: 0.15s; }

.rv-main {
	min-height: 50vh;
	margin-top: 0;
	margin-block-start: 0;
}

.wp-site-blocks > main.rv-main {
	margin-top: 0;
	margin-block-start: 0;
}

.wp-site-blocks > footer,
.wp-site-blocks > .wp-block-template-part-footer,
footer.wp-block-template-part {
	margin-top: 0;
	margin-block-start: 0;
}

#rv-audio {
	display: none;
}

p:has(#rv-audio),
.wp-block-shortcode:has(#rv-audio) {
	display: none;
	margin: 0;
	padding: 0;
}

/* Responsive header */
@media (max-width: 768px) {
	.rv-header__inner {
		padding: 14px 20px;
	}

	.rv-header__toggle {
		display: flex;
	}

	.rv-header__nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		background: rgba(14, 78, 115, 0.98);
		padding: 0;
		max-height: 0;
		overflow: hidden;
		transition: max-height 0.3s ease;
	}

	.rv-header__nav.is-open {
		max-height: 400px;
		padding: 16px 20px 24px;
	}

	.rv-header__menu {
		flex-direction: column;
		align-items: flex-start;
		gap: 16px;
		margin-bottom: 16px;
	}

	.rv-play-btn--header {
		width: 100%;
		justify-content: center;
	}
}
