/**
 * Style dla widgetu Wyniki Wystaw (Dog Show Results Widget)
 */

/* =============================================================================
   GLOWNY KONTENER
   ============================================================================= */

.dog-show-results-wrapper {
	width: 100%;
	margin: 20px 0;
}

/* =============================================================================
   POJEDYNCZY WYNIK
   ============================================================================= */

.show-result-item {
	background-color: #f8f9fa;
	padding: 15px;
	margin-bottom: 20px;
	border-radius: 5px;
	border: 1px solid #e0e0e0;
}

.show-result-item.odd {
	background-color: #f8f9fa;
}

.show-result-item.even {
	background-color: #ffffff;
}

.show-result-item:last-child {
	margin-bottom: 0;
}

/* =============================================================================
   NAGLOWEK WYNIKU (Miejsce - Data)
   ============================================================================= */

.show-result-header {
	font-size: 1.1em;
	font-weight: bold;
	color: #333;
	margin-bottom: 8px;
}

.show-location {
	font-weight: bold;
}

.show-separator {
	margin: 0 2px;
}

.show-date {
	font-weight: normal;
}

/* =============================================================================
   SEDZIA
   ============================================================================= */

.show-judge {
	font-size: 0.95em;
	color: #666;
	margin-bottom: 8px;
	font-style: italic;
}

/* =============================================================================
   OCENY, WNIOSKI, TYTULY
   ============================================================================= */

.show-grades {
	font-size: 1em;
	color: #444;
	margin-bottom: 8px;
}

/* =============================================================================
   PRZYZNANY TYTUL (POGRUBIONY, UPPERCASE)
   ============================================================================= */

.show-main-title {
	font-size: 1.1em;
	font-weight: bold;
	color: #1a1a1a;
	text-transform: uppercase;
	margin-bottom: 8px;
}

/* =============================================================================
   KONKURENCJE FINALOWE (POGRUBIONY)
   ============================================================================= */

.show-finals {
	font-size: 1em;
	font-weight: bold;
	color: #1a1a1a;
	margin-bottom: 10px;
}

/* =============================================================================
   GALERIA ZDJEC
   ============================================================================= */

.show-gallery {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 10px;
}

.show-gallery-trigger {
	display: inline-block;
	text-decoration: none;
}

.show-gallery-thumb {
	width: 80px;
	height: 80px;
	object-fit: cover;
	border-radius: 4px;
	border: 1px solid #ccc;
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.show-gallery-thumb:hover {
	transform: scale(1.05);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* =============================================================================
   LIGHTBOX
   ============================================================================= */

.show-results-lightbox {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Ciemne tlo */
.show-results-lightbox-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.9);
	cursor: pointer;
}

/* Kontener na zdjecie */
.show-results-lightbox-content {
	position: relative;
	max-width: 90%;
	max-height: 90%;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Powiekszone zdjecie */
.show-results-lightbox-image {
	max-width: 100%;
	max-height: 85vh;
	display: block;
	border-radius: 4px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* Przycisk zamknij (X) */
.show-results-lightbox-close {
	position: absolute;
	top: -45px;
	right: 0;
	width: 40px;
	height: 40px;
	background-color: #fff;
	border: none;
	border-radius: 50%;
	font-size: 28px;
	font-weight: bold;
	color: #333;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color 0.2s ease, transform 0.2s ease;
	line-height: 1;
	padding: 0;
}

.show-results-lightbox-close:hover {
	background-color: #f44336;
	color: #fff;
	transform: scale(1.1);
}

/* Przyciski prev/next */
.show-results-lightbox-prev,
.show-results-lightbox-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 50px;
	height: 50px;
	background-color: rgba(255, 255, 255, 0.8);
	border: none;
	border-radius: 50%;
	font-size: 24px;
	color: #333;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color 0.2s ease, transform 0.2s ease;
	z-index: 10;
}

.show-results-lightbox-prev {
	left: -70px;
}

.show-results-lightbox-next {
	right: -70px;
}

.show-results-lightbox-prev:hover,
.show-results-lightbox-next:hover {
	background-color: #fff;
	transform: translateY(-50%) scale(1.1);
}

.show-results-lightbox-prev:disabled,
.show-results-lightbox-next:disabled {
	opacity: 0.3;
	cursor: not-allowed;
}

.show-results-lightbox-prev:disabled:hover,
.show-results-lightbox-next:disabled:hover {
	transform: translateY(-50%);
	background-color: rgba(255, 255, 255, 0.8);
}

/* =============================================================================
   RESPONSYWNOSC
   ============================================================================= */

/* Tablety */
@media screen and (max-width: 1024px) {
	.show-results-lightbox-prev {
		left: -55px;
	}

	.show-results-lightbox-next {
		right: -55px;
	}
}

/* Telefony */
@media screen and (max-width: 768px) {
	.show-result-header {
		font-size: 1em;
	}

	.show-gallery-thumb {
		width: 60px;
		height: 60px;
	}

	.show-results-lightbox-prev,
	.show-results-lightbox-next {
		width: 40px;
		height: 40px;
		font-size: 20px;
	}

	.show-results-lightbox-prev {
		left: 10px;
	}

	.show-results-lightbox-next {
		right: 10px;
	}

	.show-results-lightbox-close {
		top: -40px;
		right: 0;
		width: 36px;
		height: 36px;
		font-size: 24px;
	}
}

/* Male telefony */
@media screen and (max-width: 480px) {
	.show-result-item {
		padding: 12px;
	}

	.show-result-header {
		font-size: 0.95em;
	}

	.show-judge {
		font-size: 0.9em;
	}

	.show-grades {
		font-size: 0.9em;
	}

	.show-gallery-thumb {
		width: 50px;
		height: 50px;
	}

	.show-gallery {
		gap: 5px;
	}
}
