/**
 * SF Beer Week - Day Guides Styles
 *
 * Styling for day guide overview and individual day pages
 * including day cards, navigation, and featured activity displays
 */

/* Day Guides Index - Grid Layout */
#dayguides {
	background-color: #eee;
	min-height: 50vh;
}

#dayguides h1 {
	font-family: "brandon-grotesque", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-weight: 700;
	color: #444649;
}

#dayguides .lead {
	color: #666;
	font-size: 1.1rem;
}

/* Day Guide Cards */
.day-guide-card {
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	border: 1px solid rgba(0,0,0,0.1);
	background-color: #fff;
	overflow: hidden;
}

.day-guide-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15) !important;
}

.day-guide-card .card-img-top .img {
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	position: relative;
}

/* Day Card Mosaic - 3 stacked image slots */
.day-card-mosaic {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 2px;
	background-color: #e9ecef;
}

.day-card-mosaic .mosaic-slot {
	height: 180px;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.day-badge.mosaic-badge {
	top: 10px;
	left: 10px;
	right: auto;
	padding: 8px 14px;
	font-size: 0.9rem;
	border-radius: 6px;
}

.mosaic-date-badge {
	position: absolute;
	bottom: 12px;
	left: 12px;
	background-color: rgba(0, 0, 0, 0.85);
	color: #fff;
	padding: 8px 16px;
	border-radius: 6px;
	font-weight: 700;
	font-size: 1rem;
	letter-spacing: 0.5px;
	z-index: 10;
}

.mosaic-chevron {
	position: absolute;
	bottom: 12px;
	right: 12px;
	width: 40px;
	height: 40px;
	background-color: #fff;
	border-radius: 6px;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10;
	box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

.mosaic-chevron i {
	color: #EEA31B;
	font-size: 1.1rem;
}

/* Mobile Day Slider */
.day-slider-wrap {
	overflow: hidden;
	margin: 0 -12px;
}

.day-slider {
	display: flex;
	gap: 12px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	padding: 0 12px;
	scrollbar-width: none;
}

.day-slider::-webkit-scrollbar {
	display: none;
}

.day-slider .day-guide-slide {
	flex: 0 0 75%;
	scroll-snap-align: center;
	max-width: 75%;
}

/* Day Badge Overlay */
.day-badge {
	position: absolute;
	top: 10px;
	right: 10px;
	background-color: rgba(238, 163, 27, 0.95);
	color: #fff;
	padding: 8px 16px;
	border-radius: 6px;
	font-weight: 700;
	font-size: 0.9rem;
	box-shadow: 0 2px 8px rgba(0,0,0,0.3);
	z-index: 10;
}

.day-badge .day-number {
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

/* Card Body Styling */
.day-guide-card .card-title {
	font-family: "brandon-grotesque", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-weight: 600;
	color: #444649;
	font-size: 1.25rem;
}

.day-guide-card .date-display {
	color: #EEA31B;
	font-weight: 600;
	font-size: 1rem;
}

.day-guide-card .activity-count {
	color: #666;
	font-size: 0.95rem;
	margin-bottom: 0;
}

.day-guide-card .activity-count i {
	color: #EEA31B;
}

/* Card Footer Button */
.day-guide-card .card-footer .btn {
	font-size: 0.85rem;
	padding: 0.5rem 1rem;
	border-color: #EEA31B;
	color: #EEA31B;
	transition: all 0.2s ease;
}

.day-guide-card:hover .card-footer .btn {
	background-color: #EEA31B;
	color: #fff;
	border-color: #EEA31B;
}

/* Remove link underline */
#dayguides a.text-decoration-none:hover {
	text-decoration: none !important;
}

/* Day Guide Detail Page - Day Selector */
#day_select {
	background-color: transparent !important;
	border-radius: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
	box-shadow: none !important;
	display: flex;
}

#day_select .col {
	padding: 8px 12px !important;
	border: 1px solid rgba(0, 0, 0, 0.175);
	border-right: none;
	background-color: #f8f9fa;
}

#day_select .col:first-child {
	border-left: 1px solid rgba(0, 0, 0, 0.175);
}

#day_select .col:last-child {
	border-right: 1px solid rgba(0, 0, 0, 0.175);
}

#day_select a {
	display: block;
	text-align: center;
	color: rgb(224, 132, 51);
	text-decoration: none;
	font-weight: 600;
	font-size: 18px;
	padding: 0;
	border-radius: 0;
	transition: all 0.2s ease;
	background-color: transparent;
	line-height: 1.2;
}

#day_select .day-month {
	display: block;
	font-size: 9px;
	font-weight: 600;
	color: #999;
	letter-spacing: 0.5px;
}

#day_select a:hover {
	background-color: transparent;
	color: rgb(224, 132, 51);
}

#day_select .col.active a {
	background-color: transparent;
	color: rgb(255, 255, 255);
	font-weight: 600;
}

#day_select .col.active .day-month {
	color: rgba(255, 255, 255, 0.8);
}

#day_select .col.active {
	background-color: rgb(108, 117, 125) !important;
	border-color: rgb(108, 117, 125);
}

/* Day Navigation Arrows */
.float-start, .float-end {
	color: #444649 !important;
	transition: color 0.2s ease;
	z-index: 10;
	position: relative;
}

.float-start:hover, .float-end:hover {
	color: #EEA31B !important;
}

/* Featured Activities Section */
#featured_activities_grid {
	background-color: transparent;
	border-radius: 0;
	padding: 1rem;
}

/* Control Options - Match Activities Page */
.ctrl_options {
	display: flex;
	align-items: center;
	justify-content: center;
}

.ctrl_options .btn-group {
	margin: 0 0.25rem;
}

.ctrl_options .btn {
	font-size: 16px !important;
	padding: 0.375rem 0.75rem;
	font-weight: 400 !important;
	text-transform: uppercase;
	border-radius: 0;
	border: 1px solid;
}

/* ALL button (ctrl_prime) - always filled */
.ctrl_options .btn.ctrl_prime.ctrl_region {
	background-color: rgb(108, 117, 125) !important;
	border-color: rgb(108, 117, 125) !important;
	color: #fff !important;
}

/* Active toggle state for all ctrl buttons */
.ctrl_options .btn.ctrl.active {
	background-color: rgb(108, 117, 125) !important;
	border-color: rgb(108, 117, 125) !important;
	color: #fff !important;
}

.ctrl_options .btn.ctrl:hover {
	background-color: rgb(108, 117, 125) !important;
	border-color: rgb(108, 117, 125) !important;
	color: #fff !important;
}

/* Dayguide control alignment: centered on mobile, positioned on desktop */
.ctrl_options_left {
	justify-content: center;
}

.ctrl_options_right {
	justify-content: center;
}

@media (min-width: 576px) {
	.ctrl_options_left {
		justify-content: flex-start;
	}

	.ctrl_options_right {
		justify-content: flex-end;
	}
}

/* Hidden controls */
.ctrl_options .hidden {
	display: none;
}

/* Mobile Day Filter Dropdown */
.day-filter-dropdown .dropdown-toggle {
	display: flex;
	align-items: stretch;
	height: 38px;
	padding: 0;
	border: 1px solid #ccc;
	border-radius: 4px;
	overflow: hidden;
	background: #fff;
	cursor: pointer;
	width: 100%;
}

@media (min-width: 576px) {
	.day-filter-dropdown .dropdown-toggle {
		width: auto;
		min-width: 380px;
	}
}

.day-filter-dropdown .dropdown-toggle::after {
	display: none;
}

.day-filter-dropdown .filter-label {
	display: flex;
	align-items: center;
	padding: 0 12px;
	background-color: #666;
	color: #fff;
	font-weight: 600;
	font-size: 0.85rem;
	text-transform: uppercase;
}

.day-filter-dropdown .filter-value {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	flex-grow: 1;
	padding: 0 12px;
	font-weight: 600;
	font-size: 1rem;
	color: rgb(224, 132, 51);
}

.day-filter-dropdown .filter-value::after {
	content: "\f078";
	font-family: "Font Awesome 6 Pro";
	font-weight: 900;
	font-size: 0.7rem;
	margin-left: 8px;
	color: #999;
}

.day-filter-dropdown .dropdown-menu {
	border-radius: 4px;
	padding: 0.25rem 0;
	box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15);
}

.day-filter-dropdown .dropdown-item {
	position: relative;
	padding: 0.5rem 1rem 0.5rem 3.75rem;
	font-weight: 600;
	font-size: 0.95rem;
}

.day-filter-dropdown .dropdown-item .text-muted {
	font-weight: 400;
	font-size: 0.85rem !important;
	text-transform: none;
}

.day-filter-dropdown .dropdown-item.active {
	background-color: transparent;
	color: rgb(224, 132, 51);
}

.day-filter-dropdown .dropdown-item.active::before {
	content: "\f00c";
	font-family: "Font Awesome 6 Pro";
	font-weight: 900;
	font-size: 0.75rem;
	color: #666;
	position: absolute;
	left: 2.25rem;
	top: 50%;
	transform: translateY(-50%);
}

.day-filter-dropdown .dropdown-item:hover {
	background-color: #f8f9fa;
}

/* Responsive Design */
@media (max-width: 768px) {
	#day_select {
		font-size: 0.9rem;
	}

	#day_select .col {
		padding: 6px 3px;
	}

	#day_select a {
		padding: 6px 4px;
		font-size: 0.95rem;
	}

	#day_select .day-month {
		font-size: 7px;
	}

	.float-start, .float-end {
		font-size: 1.5rem;
	}

	.day-badge {
		padding: 6px 12px;
		font-size: 0.8rem;
	}

	.ctrl_options {
		flex-wrap: wrap;
		gap: 0.5rem;
	}
}

@media (max-width: 576px) {
	#dayguides h1 {
		font-size: 1.75rem;
	}

	#dayguides .lead {
		font-size: 1rem;
	}

	.day-guide-card .card-title {
		font-size: 1.1rem;
	}

	#day_select {
		padding: 8px 0;
	}

	#day_select a {
		font-size: 0.85rem;
		padding: 4px 2px;
	}

	#day_select .day-month {
		font-size: 6px;
	}
}

/* Activity Cards Integration - Reuse activities.css styles */
/* Featured activities use same card styling as main activities page */
#activities_grid .card,
#featured_activities_grid .card {
	/* Inherits from activities.css */
}

/* Loading State */
.day-guide-card.loading {
	opacity: 0.6;
	pointer-events: none;
}

/* Empty State Styling */
.alert.alert-info {
	background-color: #fff;
	border: 2px solid #EEA31B;
	border-radius: 8px;
	padding: 2rem;
}

.alert.alert-info i {
	color: #EEA31B;
}

.alert.alert-info .alert-heading {
	color: #444649;
	font-family: "brandon-grotesque", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Quick Navigation Cards */
.card.bg-light {
	background-color: #fff !important;
	border: 1px solid rgba(0,0,0,0.1);
	box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.card.bg-light h3 {
	font-family: "brandon-grotesque", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	color: #444649;
	font-weight: 700;
}

.card.bg-light .btn-lg {
	padding: 1rem;
	font-size: 0.95rem;
	border-width: 2px;
	transition: all 0.2s ease;
}

.card.bg-light .btn-lg:hover {
	background-color: #EEA31B;
	border-color: #EEA31B;
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(238, 163, 27, 0.3);
}

.card.bg-light .btn-lg i {
	font-size: 1.5rem;
}

/* SF Beer Week Dates Info */
.text-muted {
	color: #666 !important;
	font-size: 0.95rem;
}

.text-muted i {
	color: #EEA31B;
}

/* Print Styles */
@media print {
	.float-start, .float-end,
	.ctrl_options,
	#day_select,
	.card-footer {
		display: none !important;
	}

	.day-guide-card,
	.card {
		break-inside: avoid;
		page-break-inside: avoid;
	}
}
