/* ==========================================================
   Figure Schedule – Tävlingskalender (frontend)
   ========================================================== */

.fs-comp-calendar {
	max-width: 100%;
}

/* Månad — H3 */
.fs-comp-calendar h3.fs-comp-month-title {
	margin: 0;
	padding-bottom: 12px;
	border-bottom: 2px solid #e5e5e5;
	letter-spacing: 0.02em;
	line-height: 1.2;
}

.fs-comp-calendar h3.fs-comp-month-title strong {
	font-weight: 700;
}

.fs-comp-calendar h3.fs-comp-month-title span {
	font-weight: 400;
	color: #999;
}

.fs-comp-month {
	margin-bottom: 48px;
}

.fs-comp-month-rows {
	display: flex;
	flex-direction: column;
}

/* ==========================================================
   Desktop — grid med 5 kolumner (cat ingår i dates-name-row via display:contents ej längre)
   dates | name | cat | location | organizer | action
   ========================================================== */
.fs-comp-row {
	display: grid;
	grid-template-columns: 100px 260px 190px 160px 200px auto;
	align-items: center;
	gap: 20px;
	padding: 18px 0;
	border-bottom: 1px solid #e8e8e8;
	font-size: 18px;
	line-height: 1.3;
}

/* Wrappers osynliga i desktop-grid — alla barn placeras direkt i gridet */
.fs-comp-dates-name-row,
.fs-comp-loc-org {
	display: contents;
}

.fs-comp-row:last-child {
	border-bottom: none;
}

.fs-comp-dates {
	font-weight: 700;
	color: #111;
	white-space: nowrap;
}

.fs-comp-name {
	font-weight: 700;
	color: #111;
}

.fs-comp-cat {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 700;
	color: #111;
}

.fs-comp-dot {
	display: inline-block;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	flex-shrink: 0;
}

.fs-comp-location,
.fs-comp-organizer {
	color: #555;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.fs-comp-action {
	text-align: right;
}

.fs-comp-btn {
	display: inline-block;
	padding: 8px 20px;
	background: #1B9AF7;
	color: #fff !important;
	border-radius: 50px;
	text-decoration: none;
	font-size: 16px !important;
	font-weight: 600;
	white-space: nowrap;
	transition: background 0.15s ease;
}

.fs-comp-btn:hover {
	background: #0f7dd6;
	color: #fff !important;
}

.fs-comp-empty {
	color: #888;
	font-style: italic;
}

/* ==========================================================
   Mobil
   ========================================================== */
@media ( max-width: 768px ) {

	.fs-comp-row {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		gap: 7px;
		padding: 18px 0;
		font-size: 16px;
	}

	.fs-comp-month-rows {
		gap: 4px;
	}

	/* Datum + namn + kategori på samma rad */
	.fs-comp-dates-name-row {
		display: flex;
		align-items: baseline;
		gap: 8px;
		width: 100%;
	}

	.fs-comp-dates {
		white-space: nowrap;
	}

	.fs-comp-cat {
		margin-left: auto;
		font-weight: 700;
	}

	/* Ort + arrangör: wrapper synlig som flex-rad med pipe */
	.fs-comp-loc-org {
		display: flex;
		align-items: baseline;
		width: 100%;
	}

	.fs-comp-location,
	.fs-comp-organizer {
		font-size: 15px;
		color: #555;
	}

	.fs-comp-location:not(:empty) + .fs-comp-organizer:not(:empty)::before {
		content: ' | ';
		white-space: pre;
	}

	.fs-comp-action {
		text-align: left;
		margin-top: 16px;
	}

	.fs-comp-btn {
		font-size: 15px !important;
	}
}

/* ==========================================================
   Skeleton loading
   ========================================================== */

@keyframes fs-skel-shimmer {
	0%   { background-position: -600px 0; }
	100% { background-position:  600px 0; }
}

.fs-skel-heading {
	height: 28px;
	width: 180px;
	border-radius: 6px;
	margin-bottom: 12px;
	background: linear-gradient( 90deg, #e8e8e8 25%, #f4f4f4 50%, #e8e8e8 75% );
	background-size: 600px 100%;
	animation: fs-skel-shimmer 1.4s infinite linear;
}

.fs-comp-skeleton {
	pointer-events: none;
}

.fs-skel-block {
	height: 18px;
	border-radius: 6px;
	background: linear-gradient( 90deg, #e8e8e8 25%, #f4f4f4 50%, #e8e8e8 75% );
	background-size: 600px 100%;
	animation: fs-skel-shimmer 1.4s infinite linear;
}

.fs-skel-btn {
	width: 80px;
	height: 32px;
	border-radius: 50px;
}
