/**
 * Gym Schedule Frontend Styles
 * Matching Visual Reference Reference (image.png)
 */

.gym-schedule-wrapper {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	max-width: 1240px;
	margin: 0 auto;
	padding: 20px 10px;
	box-sizing: border-box;
	color: #1a1a1a;
}

.gym-schedule-title {
	text-align: center;
	font-size: 24px;
	font-weight: 800;
	margin-bottom: 25px;
	color: #111111;
}

/* ==========================================================================
   Activity Legend Pills Bar
   ========================================================================== */
.gym-legend-bar {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 12px;
	margin-bottom: 30px;
	padding: 0 10px;
}

.gym-legend-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	padding: 6px 12px;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.5px;
	color: #1f2937;
	cursor: pointer;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
	transition: all 0.2s ease-in-out;
	outline: none;
}

.gym-legend-pill:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
	border-color: #cbd5e1;
    background:#CC3366;
}

.gym-legend-pill.active {
	border-color: #111827;
	background: #ffffff;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.gym-legend-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	display: inline-block;
	flex-shrink: 0;
}

.gym-dot-all {
	background: linear-gradient(135deg, #f39c12, #9b59b6, #3498db);
}

/* ==========================================================================
   Mobile Tabs
   ========================================================================== */
.gym-mobile-tabs {
	display: none;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 6px;
	margin-bottom: 20px;
	background: #f1f5f9;
	padding: 6px;
	border-radius: 12px;
}

.gym-day-tab {
	flex: 1;
	text-align: center;
	padding: 10px 4px;
	font-size: 13px;
	font-weight: 800;
	background: transparent;
	border: none;
	border-radius: 8px;
	color: #64748b;
	cursor: pointer;
	transition: all 0.2s ease;
}

.gym-day-tab.active {
	background: #ffffff;
	color: #0f172a;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   Grid Layout
   ========================================================================== */
.gym-schedule-grid-container {
	background: #ffffff;
	border-radius: 20px;
	padding: 25px 20px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
	border: 1px solid #f1f5f9;
	overflow-x: auto;
}

.gym-schedule-grid {
	display: flex;
	flex-direction: column;
	width: 100%;
	min-width: 900px;
}

/* Grid Header Row */
.gym-grid-header {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 14px;
	margin-bottom: 20px;
	text-align: center;
}

.gym-day-column-title {
	font-weight: 900;
	font-style: italic;
	font-size: 17px;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	color: #000000;
	padding: 8px 0;
}

/* Grid Body & Time Rows */
.gym-grid-body {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.gym-time-row {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 14px;
}

.gym-day-cell {
	display: flex;
	flex-direction: column;
}

/* ==========================================================================
   Time Slot Cards
   ========================================================================== */
.gym-slot-card {
	background: #f4f5f7;
	border-radius: 12px;
	padding: 14px 14px;
	min-height: 100px;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	transition: all 0.25s ease;
	border: 1px solid transparent;
}

.gym-slot-card.gym-card-filled:hover {
	background: #eef1f5;
	transform: translateY(-1px);
}

.gym-slot-card.gym-card-empty {
	background: #f4f5f7;
	opacity: 0.85;
}

/* Card Header */
.gym-card-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 10px;
}

.gym-card-time {
	font-weight: 800;
	font-size: 13px;
	color: #111827;
	letter-spacing: -0.2px;
}

.gym-card-dots {
	display: flex;
	align-items: center;
	gap: 4px;
}

.gym-card-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	display: inline-block;
	flex-shrink: 0;
}

/* Card Body & Class Items */
.gym-card-body {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.gym-class-item {
	transition: opacity 0.2s ease;
}

.gym-class-name {
	font-weight: 600;
	font-size: 13px;
	color: #4b5563;
	line-height: 1.35;
	word-break: break-word;
}

.gym-class-meta {
	font-size: 11px;
	color: #6b7280;
	margin-top: 2px;
	display: flex;
	gap: 8px;
}

.gym-class-meta i {
	font-size: 12px;
	vertical-align: middle;
}

/* Filter Dimming */
.gym-slot-card.gym-filtered-out {
	opacity: 0.2;
	filter: grayscale(80%);
}

.gym-class-item.gym-item-dimmed {
	opacity: 0.25;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 991px) {
	.gym-mobile-tabs {
		display: flex;
	}

	.gym-schedule-grid-container {
		padding: 15px 10px;
		border-radius: 14px;
		overflow-x: hidden;
	}

	.gym-schedule-grid {
		min-width: 100%;
	}

	.gym-grid-header {
		display: none;
	}

	.gym-time-row {
		grid-template-columns: 1fr;
		gap: 10px;
	}

	.gym-day-cell {
		display: none;
	}

	.gym-day-cell.active-mobile-day {
		display: flex;
	}

	.gym-slot-card {
		min-height: auto;
		padding: 12px;
	}
}
