/* assets/css/responsive.css */

/* --- 1. Global & Accessibility --- */
.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

/* --- 2. Main Containers & Navigation --- */
.custom-calendar-container {
	max-width: 1000px;
	margin: 0 auto;
	font-family: Arial, Helvetica, sans-serif;
}

.custom-calendar-container.is-loading {
	cursor: wait;
	opacity: 0.7;
}

.calendar-navigation {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
}

.calendar-navigation .calendar-title {
	flex-grow: 1;
	text-align: center;
	font-size: 1.7rem;
	font-weight: bold;
	color: #333;
}

.calendar-navigation button {
	padding: 8px 15px;
	border: none;
	border-radius: 4px;
	background-color: #1a426f;
	color: #fff;
	cursor: pointer;
	text-transform: uppercase;
	font-weight: bold;
}

/* --- 3. View Toggle Buttons (ADA Compliant Tabs) --- */
.custom-calendar-controls.view-toggle-buttons {
	display: flex;
	margin-bottom: 20px;
	border: 1px solid #ccc;
	border-radius: 4px;
	overflow: hidden;
}

.calendar-view-button {
	flex: 1;
	background-color: #f9f9f9;
	color: #333;
	border: none;
	border-right: 1px solid #ccc;
	padding: 12px;
	cursor: pointer;
	transition: all 0.2s;
	text-transform: uppercase;
	font-weight: 500;
}

.calendar-view-button:last-child { border-right: none; }

.calendar-view-button:hover:not(.active) { background-color: #eee; }

.calendar-view-button.active {
	background-color: #0073aa;
	color: #fff;
	font-weight: bold;
}

/* --- 4. MINIMALIST LIST VIEW (tax.nv.gov style) --- */
.calendar-list-view.minimalist-design {
	width: 100%;
}

.list-event-row {
	display: flex;
	align-items: flex-start;
	padding: 25px 0;
	border-bottom: 1px solid #e0e0e0;
}

.event-date-sidebar {
	min-width: 85px;
	text-align: left;
	margin-right: 25px;
}

.event-month {
	font-size: 0.9rem;
	color: #757575;
	text-transform: uppercase;
	font-weight: 500;
}

.event-day-num {
	font-size: 2.8rem;
	font-weight: 700;
	color: #1a1a1a;
	line-height: 1;
}

.event-details-main {
	flex: 1;
}

.event-time-range {
	font-size: 1.1rem;
	color: #424242;
	margin-bottom: 5px;
	font-weight: 500;
}

.event-title-link a {
	color: #1a1a1a;
	text-decoration: none;
	font-weight: 700;
	font-size: 1.4rem;
	line-height: 1.3;
}

.event-title-link a:hover {
	color: #0073aa;
	text-decoration: underline;
}

.view-calendar-link {
	display: inline-block;
	margin-top: 30px;
	font-size: 1.1rem;
	font-weight: 700;
	color: #3e7091;
	text-decoration: none;
}

/* --- 5. MONTH GRID VIEW --- */
.calendar-grid-header, .calendar-grid {
	display: grid !important;
	grid-template-columns: repeat(7, 1fr) !important;
	gap: 1px;
}

.calendar-grid-header {
	background-color: #f0f0f0;
	border: 1px solid #ddd;
	font-weight: bold;
	text-align: center;
}

.calendar-day-header { padding: 10px 0; }

.calendar-grid { background-color: #ddd; border: 1px solid #ddd; }

.calendar-day {
	background-color: #fff;
	min-height: 120px;
	padding: 8px;
	position: relative;
}

.calendar-day.empty { background-color: #f9f9f9; }

.day-number { font-weight: bold; font-size: 1.1em; display: block; margin-bottom: 8px; }

.calendar-day .event-title a {
	font-size: 0.8em;
	color: #0073aa;
	text-decoration: none;
	display: block;
	margin-bottom: 4px;
}

/* --- 6. TOOLTIPS --- */
.event-tooltip {
	position: absolute;
	bottom: calc(100% + 10px);
	left: 50%;
	transform: translateX(-50%);
	width: 240px;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0,0,0,0.15);
	padding: 12px;
	z-index: 999;
	display: none;
}

.calendar-day:hover .event-tooltip { display: block; }

/* --- 7. RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 768px) {
	.list-event-row { padding: 15px 0; }

	.event-day-num { font-size: 2.2rem; }

	.event-title-link a { font-size: 1.1rem; }

	.calendar-view-button {
		flex: 1 1 100%;
		border-right: none;
		border-bottom: 1px solid #ccc;
	}

	.calendar-grid-header, .calendar-grid {
		grid-template-columns: repeat(7, minmax(40px, 1fr)) !important;
	}

	.calendar-day { min-height: 80px; }
}