/**
 * wpmyCal Calendar Month View Styles
 *
 * Styling for the traditional month grid view showing a full month calendar
 * with days in a 7-column grid.
 *
 * @package    WpmyCal
 * @subpackage Assets
 * @since      1.1.0
 */

.wpmycal-month-view {
	padding: 20px;
}

.wpmycal-month-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 1px;
	background: var(--wpmycal-border-color);
	border: 1px solid var(--wpmycal-border-color);
}

.wpmycal-month-header-cell {
	background: var(--wpmycal-hover-background);
	padding: 12px;
	text-align: center;
	font-weight: 600;
	font-size: 14px;
}

.wpmycal-month-day-cell {
	background: var(--wpmycal-background);
	min-height: 100px;
	padding: 8px;
	position: relative;
	cursor: pointer;
}

.wpmycal-month-day-cell.is-other-month {
	background: #fafafa;
	opacity: 0.6;
}

.wpmycal-month-day-cell.is-today {
	background: var(--wpmycal-today-background);
}

.wpmycal-month-day-number {
	font-size: 16px;
	font-weight: 600;
	margin-bottom: 8px;
}

.wpmycal-month-day-cell.is-today .wpmycal-month-day-number {
	background: var(--wpmycal-primary-color);
	color: #ffffff;
	border-radius: 50%;
	width: 28px;
	height: 28px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.wpmycal-month-events {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.wpmycal-month-event {
	font-size: 11px;
	padding: 2px 6px;
	border-radius: 3px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	cursor: pointer;
	position: relative;
	background-color: var(--wpmycal-hover-background);
	border-left: 3px solid transparent;
}

.wpmycal-month-event:hover {
	opacity: 0.8;
}

.wpmycal-month-more-events {
	font-size: 11px;
	color: var(--wpmycal-primary-color);
	cursor: pointer;
	margin-top: 4px;
}

.wpmycal-month-more-events:hover {
	text-decoration: underline;
}

@media (max-width: 768px) {
	.wpmycal-month-day-cell {
		min-height: 80px;
		padding: 4px;
	}

	.wpmycal-month-day-number {
		font-size: 14px;
	}

	.wpmycal-month-event {
		font-size: 10px;
	}
}
