/**
 * Raymond Carver Writing Festival - Theme Styles
 *
 * Supplementary styles for elements not covered by theme.json
 */

/* ============================================
   Base Reset & Utilities
   ============================================ */

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

html {
	scroll-behavior: smooth;
}

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

/* ============================================
   Starburst Pattern (Festival Signature)
   ============================================ */

.rcwf-starburst {
	position: relative;
	overflow: hidden;
}

.rcwf-starburst::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 200%;
	height: 200%;
	background: repeating-conic-gradient(
		from 0deg,
		var(--wp--preset--color--gold) 0deg 2deg,
		transparent 2deg 15deg
	);
	transform: translate(-50%, -50%);
	opacity: 0.3;
	z-index: 0;
	pointer-events: none;
}

.rcwf-starburst > * {
	position: relative;
	z-index: 1;
}

/* ============================================
   Header Styles
   ============================================ */

.site-header {
	border-bottom: 4px solid var(--wp--preset--color--charcoal);
}

.site-header .wp-block-site-title {
	margin: 0;
}

/* ============================================
   Navigation Styles
   ============================================ */

.wp-block-navigation .wp-block-navigation-item a {
	padding: 0.5rem 1rem;
	transition: color 0.2s ease;
}

.wp-block-navigation .wp-block-navigation-item a:hover {
	text-decoration: none;
}

/* Active/Current page navigation state */
.wp-block-navigation .wp-block-navigation-item a[aria-current="page"],
.wp-block-navigation .wp-block-navigation-item.current-menu-item > a,
.wp-block-navigation .wp-block-navigation-item.current_page_item > a,
.wp-block-navigation .wp-block-navigation-item.current-menu-parent > a,
.wp-block-navigation .wp-block-navigation-item.current_page_parent > a {
	text-decoration: underline;
	text-decoration-color: var(--wp--preset--color--rust);
	text-decoration-thickness: 3px;
	text-underline-offset: 6px;
}

/* Dropdown/Submenu Styles */
.wp-block-navigation .wp-block-navigation__submenu-container {
	background: var(--wp--preset--color--cream) !important;
	border: 2px solid var(--wp--preset--color--charcoal);
	padding: 0.5rem 0;
	min-width: 180px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item a {
	padding: 0.5rem 1.25rem;
	color: var(--wp--preset--color--charcoal) !important;
	display: block;
}

.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item a:hover {
	background: var(--wp--preset--color--gold-light);
	color: var(--wp--preset--color--rust) !important;
}

/* Submenu caret — keep it close to the parent label */
.wp-block-navigation .wp-block-navigation-submenu__toggle {
	padding: 0 0.125rem;
	margin-left: 0;
	gap: 0;
}

/* ============================================
   Hero Section
   ============================================ */

.rcwf-hero {
	min-height: 60vh;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	padding: 4rem 2rem;
	background-color: var(--wp--preset--color--cream);
	position: relative;
}

.rcwf-hero h1 {
	font-size: clamp(2.5rem, 8vw, 5rem);
	margin-bottom: 0.5rem;
}

.rcwf-hero .festival-date {
	font-family: var(--wp--preset--font-family--heading);
	font-size: clamp(1.25rem, 3vw, 1.75rem);
	color: var(--wp--preset--color--charcoal);
	text-transform: uppercase;
	letter-spacing: 0.1em;
}

.rcwf-hero .festival-location {
	font-family: var(--wp--preset--font-family--body);
	font-size: 1.125rem;
	color: var(--wp--preset--color--warm-gray);
	margin-top: 0.5rem;
}

/* ============================================
   Festival Theme Quote
   ============================================ */

.rcwf-theme-quote {
	background-color: var(--wp--preset--color--charcoal);
	color: var(--wp--preset--color--cream);
	padding: 3rem 2rem;
	text-align: center;
}

.rcwf-theme-quote blockquote {
	font-size: clamp(1.125rem, 2.5vw, 1.5rem);
	font-style: italic;
	max-width: 800px;
	margin: 0 auto;
	border: none;
	padding: 0;
}

.rcwf-theme-quote cite {
	display: block;
	margin-top: 1rem;
	font-style: normal;
	font-family: var(--wp--preset--font-family--heading);
	text-transform: uppercase;
	font-size: 0.875rem;
	letter-spacing: 0.1em;
	color: var(--wp--preset--color--gold);
}

/* ============================================
   Schedule Styles
   ============================================ */

.rcwf-schedule {
	margin: 2rem 0;
}

.rcwf-schedule-day {
	margin-bottom: 3rem;
}

.rcwf-schedule-day h2 {
	border-bottom: 4px solid var(--wp--preset--color--gold);
	padding-bottom: 0.5rem;
	margin-bottom: 1.5rem;
}

.rcwf-event {
	display: grid;
	grid-template-columns: 120px 1fr;
	gap: 1.5rem;
	padding: 1.5rem 0;
	border-bottom: 1px solid var(--wp--preset--color--gold-light);
}

@media (max-width: 600px) {
	.rcwf-event {
		grid-template-columns: 1fr;
		gap: 0.5rem;
	}
}

.rcwf-event-time {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
	font-size: 1rem;
	text-transform: uppercase;
	color: var(--wp--preset--color--rust);
}

.rcwf-event-title {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
	font-size: 1.125rem;
	margin: 0 0 0.25rem 0;
	text-transform: uppercase;
}

.rcwf-event-location {
	font-size: 1.125rem;
	color: var(--wp--preset--color--warm-gray);
	margin-bottom: 0.5rem;
}

.rcwf-event-location a {
	color: var(--wp--preset--color--warm-gray);
	text-decoration: underline;
	text-decoration-style: dotted;
	text-underline-offset: 3px;
}

.rcwf-event-location a:hover {
	color: var(--wp--preset--color--rust);
}

.rcwf-event-description {
	margin-top: 0.5rem;
}

.rcwf-event-presenters {
	margin-top: 0.75rem;
	font-size: 1.0625rem;
}

.rcwf-event-presenters strong {
	color: var(--wp--preset--color--rust);
}

/* ============================================
   Presenter Styles
   ============================================ */

.rcwf-presenters-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
	margin: 2rem 0;
}

.rcwf-presenter-card {
	text-align: left;
}

.rcwf-presenter-photo {
	width: 200px;
	height: 200px;
	border-radius: 50%;
	object-fit: cover;
	margin: 0 auto 1rem;
	border: 4px solid var(--wp--preset--color--gold);
	filter: grayscale(20%);
	transition: filter 0.3s ease;
}

.rcwf-presenter-card:hover .rcwf-presenter-photo {
	filter: grayscale(0%);
}

.rcwf-presenter-name {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.25rem;
	font-weight: 700;
	margin: 0 0 0.25rem 0;
	text-transform: uppercase;
}

.rcwf-presenter-location {
	font-size: 0.875rem;
	color: var(--wp--preset--color--warm-gray);
	margin-bottom: 0.75rem;
}

.rcwf-presenter-bio {
	font-size: 0.9375rem;
	line-height: 1.6;
}

/* ============================================
   Merch Styles
   ============================================ */

.rcwf-merch-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.5rem;
	margin: 2rem 0;
}

@media (max-width: 800px) {
	.rcwf-merch-grid {
		grid-template-columns: 1fr;
	}
}

.rcwf-merch-card {
	border: 2px solid var(--wp--preset--color--charcoal);
	padding: 1rem;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	background: var(--wp--preset--color--white);
	line-height: 1.3;
}

.rcwf-merch-card--sold-out {
	opacity: 0.7;
}

.rcwf-merch-image {
	margin: -1rem -1rem 0.5rem -1rem;
}

.rcwf-merch-image img {
	display: block;
	width: 100%;
	height: auto;
}

.rcwf-merch-title {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.25rem;
	text-transform: uppercase;
	margin: 0;
}

.rcwf-merch-price {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
	color: var(--wp--preset--color--rust);
	margin: 0;
}

.rcwf-merch-description {
	font-size: 0.9375rem;
	line-height: 1.4;
}

.rcwf-merch-paypal {
	width: 100%;
}

.rcwf-merch-paypal paypal-add-to-cart-button {
	display: block;
	width: 100%;
}

.rcwf-merch-button {
	display: inline-block;
	padding: 0.6rem 1.4rem;
	background: var(--wp--preset--color--rust);
	color: var(--wp--preset--color--white);
	text-decoration: none;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 0.9rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	border-radius: 2px;
}

.rcwf-merch-button:hover {
	background: var(--wp--preset--color--rust-dark);
}

.rcwf-merch-status {
	font-family: var(--wp--preset--font-family--heading);
	text-transform: uppercase;
	font-size: 0.85rem;
	letter-spacing: 0.08em;
	color: var(--wp--preset--color--warm-gray);
}

.rcwf-paypal-cart {
	position: fixed;
	bottom: 1.5rem;
	right: 1.5rem;
	z-index: 9999;
}

/* ============================================
   Sponsor Styles
   ============================================ */

.rcwf-sponsors {
	padding: 3rem 0;
}

.rcwf-sponsors h2 {
	text-align: center;
	margin-bottom: 2rem;
}

.rcwf-sponsors-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	justify-content: start;
	align-items: start;
	gap: 1.5rem 3rem;
}

.rcwf-sponsor-item {
	display: flex;
	align-items: center;
	min-height: 3rem;
}

.rcwf-sponsor-logo {
	max-height: 60px;
	width: auto;
	filter: grayscale(100%);
	opacity: 0.7;
	transition: all 0.3s ease;
}

.rcwf-sponsor-logo:hover {
	filter: grayscale(0%);
	opacity: 1;
}

.rcwf-sponsors-grid .rcwf-sponsor-text {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.125rem;
	color: var(--wp--preset--color--charcoal);
	text-decoration: none !important;
	padding: 0 !important;
	margin: 0 !important;
	box-sizing: border-box;
}

.rcwf-sponsors-grid a.rcwf-sponsor-text {
	color: var(--wp--preset--color--rust);
}

.rcwf-sponsors-grid a.rcwf-sponsor-text:hover {
	text-decoration: underline !important;
}

/* ============================================
   Archive / Past Festivals
   ============================================ */

.rcwf-archive-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 2rem;
	margin: 2rem 0;
}

.rcwf-archive-card {
	background: var(--wp--preset--color--white);
	border: 2px solid var(--wp--preset--color--charcoal);
	padding: 2rem;
	text-decoration: none;
	color: inherit;
	transition: all 0.2s ease;
}

.rcwf-archive-card:hover {
	background: var(--wp--preset--color--gold-light);
	transform: translateY(-2px);
}

.rcwf-archive-card h3 {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 2rem;
	margin: 0 0 0.5rem 0;
	color: var(--wp--preset--color--rust);
}

.rcwf-archive-card .festival-theme {
	font-style: italic;
	color: var(--wp--preset--color--warm-gray);
	margin-bottom: 0.5rem;
}

.rcwf-archive-card .festival-date {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 0.875rem;
	text-transform: uppercase;
}

/* ============================================
   Poetry Contest Section
   ============================================ */

.rcwf-poetry-contest {
	background: var(--wp--preset--color--charcoal);
	color: var(--wp--preset--color--cream);
	padding: 3rem 2rem;
	margin: 3rem 0;
}

.rcwf-poetry-contest h2 {
	color: var(--wp--preset--color--gold);
	text-align: center;
}

.rcwf-contest-categories {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 1.5rem;
	margin-top: 2rem;
}

.rcwf-contest-category {
	text-align: center;
	padding: 1.5rem;
	border: 2px solid var(--wp--preset--color--gold);
}

.rcwf-contest-category h3 {
	color: var(--wp--preset--color--gold);
	margin: 0 0 0.5rem 0;
}

/* ============================================
   Festival Archive
   ============================================ */

.rcwf-festival-archive {
	max-width: 1200px;
	margin: 0 auto;
}

.rcwf-archive-header {
	text-align: center;
	margin-bottom: 3rem;
	padding-bottom: 2rem;
	border-bottom: 2px solid var(--wp--preset--color--gold);
}

.rcwf-archive-theme {
	font-family: var(--wp--preset--font-family--body);
	font-size: 1.5rem;
	font-style: italic;
	color: var(--wp--preset--color--rust);
	margin: 0 0 0.5rem 0;
}

.rcwf-archive-date {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.125rem;
	color: var(--wp--preset--color--warm-gray);
	margin: 0;
}

.rcwf-archive-description {
	margin-top: 1.5rem;
	max-width: 800px;
	margin-left: auto;
	margin-right: auto;
}

.rcwf-archive-section {
	margin-bottom: 4rem;
}

.rcwf-archive-section > h2 {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 2rem;
	color: var(--wp--preset--color--rust);
	border-bottom: 2px solid var(--wp--preset--color--gold);
	padding-bottom: 0.5rem;
	margin-bottom: 2rem;
}

.rcwf-archive-winners {
	background: var(--wp--preset--color--gold-light);
	padding: 2rem;
	border-radius: 4px;
}

.rcwf-archive-winners > h2 {
	margin-top: 0;
}

.rcwf-winners-content {
	max-width: 800px;
}

.rcwf-winners-content h3 {
	color: var(--wp--preset--color--rust);
	margin-top: 1.5rem;
	margin-bottom: 0.5rem;
}

.rcwf-winners-content ul {
	margin: 0;
	padding-left: 1.5rem;
}

.rcwf-winners-content li {
	margin-bottom: 0.25rem;
}

/* ============================================
   Newsletter Signup
   ============================================ */

.rcwf-newsletter {
	background: var(--wp--preset--color--gold-light);
	padding: 2rem;
	text-align: center;
	margin: 2rem 0;
}

.rcwf-newsletter h3 {
	margin-top: 0;
	color: var(--wp--preset--color--charcoal);
}

.rcwf-newsletter form {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: stretch;
	justify-content: center;
	max-width: 500px;
	margin: 1rem auto 0;
}

.rcwf-newsletter input[type="email"] {
	flex: 1;
	min-width: 200px;
	padding: 0.75rem 1rem;
	border: 2px solid var(--wp--preset--color--charcoal);
	font-family: inherit;
	font-size: 1rem;
	box-sizing: border-box;
}

.rcwf-newsletter button {
	padding: 0.75rem 1.5rem;
	box-sizing: border-box;
	background: var(--wp--preset--color--rust);
	color: var(--wp--preset--color--white);
	border: none;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
	text-transform: uppercase;
	cursor: pointer;
	transition: background 0.2s ease;
}

.rcwf-newsletter button:hover {
	background: var(--wp--preset--color--rust-dark);
}

/* ============================================
   Footer Styles
   ============================================ */

.site-footer {
	background: var(--wp--preset--color--charcoal);
	color: var(--wp--preset--color--cream);
	padding: 3rem 2rem;
	margin-top: 4rem;
}

.site-footer a {
	color: var(--wp--preset--color--gold);
}

.site-footer a:hover {
	color: var(--wp--preset--color--gold-light);
}

/* ============================================
   Utility Classes
   ============================================ */

.text-center {
	text-align: center;
}

.text-rust {
	color: var(--wp--preset--color--rust);
}

.text-gold {
	color: var(--wp--preset--color--gold);
}

.bg-cream {
	background-color: var(--wp--preset--color--cream);
}

.bg-charcoal {
	background-color: var(--wp--preset--color--charcoal);
}

.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ============================================
   Print Styles
   ============================================ */

@media print {
	.site-header,
	.site-footer,
	.rcwf-newsletter {
		display: none;
	}

	body {
		font-size: 12pt;
		line-height: 1.5;
	}

	a {
		text-decoration: underline;
	}

	.rcwf-event {
		page-break-inside: avoid;
	}
}
