.post-thumbnail {
	position: relative;
}

.post-thumbnail::after {
    position: absolute;
    width: 4%;
    aspect-ratio: 1;
    bottom: 10px;
    right: 10px;
    line-height: 0;
}

.post-thumbnail.single-image-check::after {
	content: url('../img/signs-outage/check.svg');
}

.post-thumbnail.single-image-question::after {
	content: url('../img/signs-outage/question.svg');
}

.post-thumbnail.single-image-minus::after {
	content: url('../img/signs-outage/minus.svg');
}

.post-thumbnail {
	outline: 3px solid #fff;
	width: fit-content;
	max-width: 100%;
}

.post-thumbnail.single-image-check {
	outline: 4px solid #57c84db3;
}

.post-thumbnail.single-image-question {
	outline: 4px solid #ffc107b3;
}

.post-thumbnail.single-image-minus {
	outline: 4px solid #ef3e4bb3;
}


/* ============================================
   LANGUAGE VIEW TOGGLE (Polylang sites only)
   Sliding switch with dot indicator
   ============================================ */

.outage-view-toggle {
	display: none; /* Hidden by default, shown by JS when Polylang data is available */
	justify-content: center;
	align-items: center;
	gap: 12px;
	margin: 20px auto 10px;
	width: fit-content;
	user-select: none;
}

.outage-view-toggle .toggle-label {
	font-size: 0.85rem;
	color: var(--text-color-muted, #888);
	transition: color 0.2s ease;
	cursor: pointer;
}

.outage-view-toggle .toggle-label.active {
	color: var(--text-color, #333);
	font-weight: 600;
}

.outage-view-toggle .toggle-switch {
	position: relative;
	width: 52px;
	height: 28px;
	background-color: #ccc;
	border-radius: 14px;
	cursor: pointer;
	transition: background-color 0.3s ease;
	box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.outage-view-toggle .toggle-switch::after {
	content: '';
	position: absolute;
	top: 3px;
	left: 3px;
	width: 22px;
	height: 22px;
	background-color: #fff;
	border-radius: 50%;
	transition: transform 0.3s ease, box-shadow 0.2s ease;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.outage-view-toggle .toggle-switch:hover::after {
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* Active state - dot moves to right */
.outage-view-toggle.view-combined .toggle-switch {
	background-color: var(--primary-color);
}

.outage-view-toggle.view-combined .toggle-switch::after {
	transform: translateX(24px);
}

/* Dark mode support */
body.dark-mode .outage-view-toggle .toggle-label {
	color: var(--text-color-muted-dark, #777);
}

body.dark-mode .outage-view-toggle .toggle-label.active {
	color: var(--text-color-dark, #e0e0e0);
}

body.dark-mode .outage-view-toggle .toggle-switch {
	background-color: #444;
}

body.dark-mode .outage-view-toggle .toggle-switch::after {
	background-color: #ddd;
}

body.dark-mode .outage-view-toggle.view-combined .toggle-switch {
	background-color: #1d65a6;
}

/* Responsive - smaller on mobile */
@media screen and (max-width: 480px) {
	.outage-view-toggle .toggle-label {
		font-size: 0.75rem;
	}
	
	.outage-view-toggle .toggle-switch {
		width: 44px;
		height: 24px;
		border-radius: 12px;
	}
	
	.outage-view-toggle .toggle-switch::after {
		top: 2px;
		left: 2px;
		width: 20px;
		height: 20px;
	}
	
	.outage-view-toggle.view-combined .toggle-switch::after {
		transform: translateX(20px);
	}
}


.web-status {
	padding: 1.55rem 1.4rem;
	margin: 10px auto 30px;
	line-height: 1.5;
	width: -webkit-fit-content;
	width: -moz-fit-content;
	width: fit-content;
	gap: 25px;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-ms-flex-pack: distribute;
	justify-content: space-around;
	background-color: #1d65a6;
	-webkit-box-shadow: 0px 5px 10px -5px #1d65a6;
	box-shadow: 0px 5px 10px -5px #1d65a6;
	text-align: center;
}

.web-status img {
	vertical-align: middle;
}

.web-status-text {
	color: white;
	font-weight: bold;
	font-size: 1.9rem;
}

.report-button {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	margin: 30px auto;
	font-weight: bold;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	padding: 20px 30px;
	background-color: #d33d2e;
	color: #fff;
	border: none;
	cursor: pointer;
	font-size: 1.7rem;
	text-wrap: balance;
	transition: 0.1s;
}

.report-button img {
	margin-right: 15px;
}

.report-button:hover {
	background-color: #c0392b;
	-webkit-transform: scale(1.05);
	    -ms-transform: scale(1.05);
	        transform: scale(1.05);
}

.total-outage-button > img {
	width: 30px;
	vertical-align: middle;
}

.total-outage-button {
	padding: 0.75em 1.3em;
	text-align: center;
	margin-inline: auto;
	margin-bottom: 25px;
	font-weight: 700;
	font-size: 1.2rem;
	line-height: 1.5;
	width: 85%;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-pack: justify;
	-ms-flex-pack: justify;
	justify-content: space-between;
	gap: 20px;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	background-color: #000000de;
	color: white;
	-webkit-box-shadow: 0px 5px 10px -5px #000;
	box-shadow: 0px 5px 10px -5px #000;
	text-wrap: balance;
}

.total-outages {
	font-size: 2.3rem;
	padding-block: 5px;
	padding-inline: 20px;
	background-color: #008b2e;
	text-align: center;
	text-wrap: nowrap;
}

#graphjs {
	max-width: 100%;
	margin-bottom: 45px;
}

#graphjs figcaption {
	text-align: center;
	font-size: 16px;
	margin-top: 5px;
}

.graph-data-button {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	font-size: 1.4rem;
	text-align: center;
	padding: 20px 30px;
	margin: 40px auto;
	width: -webkit-fit-content;
	width: -moz-fit-content;
	width: fit-content;
	color: white;
	font-weight: bold;
	line-height: 1.7;
	text-wrap: balance;
}

.graph-data-button-add {
	background-color: rgb(0, 104, 195);
	-webkit-box-shadow: 0px 5px 10px -5px rgb(0, 104, 195);
	box-shadow: 0px 5px 10px -5px rgb(0, 104, 195);
}

.graph-data-button-remove {
	background-color: #b30000;
	-webkit-box-shadow: 0px 5px 10px -5px #b30000;
	box-shadow: 0px 5px 10px -5px #b30000;
}

.widget-posts-wrapper .post-widget-body .post-title {
	position: absolute;
	top: 50%;
	-webkit-transform: translateY(-50%);
	-ms-transform: translateY(-50%);
	transform: translateY(-50%);
}

#reply-title {
	line-height: initial;
}

.img-graph {
	vertical-align: middle;
	width: 35px;
	margin-right: 30px;
}

.graph-data-button:hover,
.web-status:hover {
	opacity: 0.85;
}

#search-input::-webkit-input-placeholder {
	color: white;
	opacity: 1;
}

#search-input::-moz-placeholder {
	color: white;
	opacity: 1;
}

#search-input:-ms-input-placeholder {
	color: white;
	opacity: 1;
}

#search-input::-ms-input-placeholder {
	color: white;
	opacity: 1;
}

#search-input::placeholder {
	color: white;
	opacity: 1;
}

#search-input#search-input {
	color: white;
	font-size: 15px;
}

/*úprava zarovnání textu v podobných článcích pod post*/
h3.post-title {
	text-align: center;
}

#the-post .entry-content p.footer-disclaimer {
	font-weight: bold;
	font-size: 0.95rem;
	margin-block: 30px;
}

.no-script-outage {
	display: block;
	padding: 10px;
	background-color: #cd5c5c;
	font-size: 25px;
	font-weight: bold;
	color: white;
	margin-bottom: 30px;
}

@media screen and (max-width: 768px) {
	.service-outage-number {
		font-size: 30px;
	}

	.report-button,
	.web-status-text {
		max-width: 90%;
		font-size: 1.4rem;
		line-height: 1.6;
	}

	.total-outage-button img,
	.img-graph,
	.report-svg,
	.web-status-svg {
		display: none;
	}

	.total-outage-button {
		font-size: 1.1rem;
		width: 90%;
	}

	.web-status img {
		width: 35px;
	}

	.web-status {
		max-width: 90%;
		padding: 0px 30px;
	}

	.web-status-text {
		padding: 13px 0px;
	}

	.graph-data-button {
		max-width: 90%;
	}

	#graphjs figcaption {
		font-size: 13px;
		line-height: 1.2;
	}
	
	/* Toggle responsive */
	.outage-view-toggle .toggle-btn {
		padding: 10px 16px;
		font-size: 0.9rem;
	}
}

@media screen and (max-width: 480px) {
	.outage-view-toggle {
		flex-direction: column;
		border-radius: 8px;
	}
	
	.outage-view-toggle .toggle-btn {
		width: 100%;
		border-radius: 0;
	}
	
	.outage-view-toggle .toggle-btn:first-child {
		border-radius: 8px 8px 0 0;
	}
	
	.outage-view-toggle .toggle-btn:last-child {
		border-radius: 0 0 8px 8px;
	}
}
