/*
Theme Name: 1AD.com.ge
Theme URI: https://1ad.com.ge
Author: 1AD
Author URI: https://1ad.com.ge
Description: Краудфандинговая тема для помощи людям. Мультиязычность: Polylang + Loco Translate. Оплата через TBC Bank Georgia.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: 1adcomge
Domain Path: /languages
Tags: crowdfunding, charity, translation-ready, custom-menu, featured-images, threaded-comments

Solid State by HTML5 UP — html5up.net | @ajlkn
*/

/* Theme extensions */
.language-switcher {
	list-style: none;
	display: inline-flex;
	gap: 0.5em;
	margin: 0 1em 0 0;
	padding: 0;
}

.language-switcher li.current a {
	font-weight: bold;
	text-decoration: underline;
}

.adcomge-progress {
	background: rgba(255, 255, 255, 0.15);
	border-radius: 4px;
	height: 8px;
	margin: 1em 0;
	overflow: hidden;
}

.adcomge-progress__bar {
	background: #fff;
	height: 100%;
	transition: width 0.3s ease;
}

.adcomge-amount-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0.5em;
	margin: 0.5em 0 1em;
}

.adcomge-amount-option {
	cursor: pointer;
	text-align: center;
}

.adcomge-amount-option input {
	position: absolute;
	opacity: 0;
}

.adcomge-amount-option span {
	display: block;
	padding: 0.6em;
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 4px;
}

.adcomge-amount-option input:checked + span,
.adcomge-amount-option:hover span {
	border-color: #fff;
	background: rgba(255, 255, 255, 0.1);
}

.adcomge-donation.box {
	padding: 1.5em;
}

.adcomge-donation-error {
	color: #e74c3c;
	margin-top: 1em;
}

.adcomge-notice {
	padding: 1em;
	margin-bottom: 1.5em;
	border-radius: 4px;
}

.adcomge-notice--success {
	background: rgba(46, 204, 113, 0.2);
	border: 1px solid #2ecc71;
}

.adcomge-notice--failed {
	background: rgba(231, 76, 60, 0.2);
	border: 1px solid #e74c3c;
}

.adcomge-filters {
	flex-wrap: wrap;
	margin-bottom: 2em;
}

.adcomge-card-meta {
	font-size: 0.9em;
	opacity: 0.85;
}

#header nav {
	display: flex;
	align-items: center;
}

#banner .logo .adcomge-banner-logo-img {
	display: inline-block;
	max-width: 8em;
	max-height: 8em;
	width: auto;
	height: auto;
	border-radius: 100%;
	object-fit: contain;
}

.adcomge-hero-brand {
	font-size: 1.1em;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin-bottom: 0.5em;
	opacity: 0.9;
}

.adcomge-stats {
	list-style: none;
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 0.65rem;
	margin: 2em 0;
	padding: 0;
	width: 100%;
	max-width: 52em;
}

.adcomge-stats__item {
	display: flex;
	flex-direction: column;
	text-align: center;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 5px;
	overflow: hidden;
	background: rgba(0, 0, 0, 0.4);
	min-height: 6.5rem;
	padding: 0 0 0 0;
}

.adcomge-stats__value {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 1 1 auto;
	padding: 0.85em 0.5em;
	font-size: 1.65rem;
	font-weight: 600;
	line-height: 1.2;
	color: #fff;
	background: rgba(255, 255, 255, 0.1);
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.adcomge-stats__label {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 1 1 auto;
	padding: 0.75em 0.45em;
	font-size: 0.72rem;
	line-height: 1.35;
	color: rgba(255, 255, 255, 0.95);
	background: rgba(0, 0, 0, 0.28);
}

.adcomge-mission-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 22em;
	max-width: 100%;
	min-height: 22em;
	border-radius: 100%;
	margin: 0 3em 2em 0;
	overflow: hidden;
	background: rgba(255, 255, 255, 0.12);
	flex-shrink: 0;
}

.adcomge-mission-icon .icon {
	font-size: 4em;
	opacity: 0.85;
}

.wrapper.spotlight:nth-child(2n - 1) .adcomge-mission-icon {
	margin: 0 0 2em 3em;
}

/* Mission blocks — distinct background colors (1ad.com.ge) */
.wrapper.spotlight.style1 {
	background-color: #2e8fd4;
}

.wrapper.spotlight.style1:before,
.wrapper.spotlight.style1:after {
	background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpolygon points='0,100 100,0 100,100' style='fill:%232e8fd4%3B' /%3E%3C/svg%3E");
	box-shadow: inset 0 -1px 0 0 #2e8fd4, 0 1px 0 0 #2e8fd4;
}

.wrapper.spotlight.style2 {
	background-color: #52487a;
}

.wrapper.spotlight.style2:before,
.wrapper.spotlight.style2:after {
	background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpolygon points='0,100 100,0 100,100' style='fill:%2352487a%3B' /%3E%3C/svg%3E");
	box-shadow: inset 0 -1px 0 0 #52487a, 0 1px 0 0 #52487a;
}

.wrapper.spotlight.style3 {
	background-color: #c9567e;
}

.wrapper.spotlight.style3:before,
.wrapper.spotlight.style3:after {
	background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpolygon points='0,100 100,0 100,100' style='fill:%23c9567e%3B' /%3E%3C/svg%3E");
	box-shadow: inset 0 -1px 0 0 #c9567e, 0 1px 0 0 #c9567e;
}

.wrapper.spotlight.style4 {
	background-color: #c07d52;
}

.wrapper.spotlight.style4:before,
.wrapper.spotlight.style4:after {
	background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpolygon points='0,100 100,0 100,100' style='fill:%23c07d52%3B' /%3E%3C/svg%3E");
	box-shadow: inset 0 -1px 0 0 #c07d52, 0 1px 0 0 #c07d52;
}

.wrapper.spotlight.style5 {
	background-color: #459a62;
}

.wrapper.spotlight.style5:before,
.wrapper.spotlight.style5:after {
	background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpolygon points='0,100 100,0 100,100' style='fill:%23459a62%3B' /%3E%3C/svg%3E");
	box-shadow: inset 0 -1px 0 0 #459a62, 0 1px 0 0 #459a62;
}

@media screen and (max-width: 980px) {
	.adcomge-mission-icon {
		width: 100%;
		min-height: 14em;
		margin: 0 0 2em 0 !important;
	}
}

.adcomge-card-status {
	font-size: 0.85em;
	margin-bottom: 0.5em;
}

.adcomge-footer-links {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5em 1.5em;
	justify-content: center;
	margin: 1.5em 0;
	padding: 0;
}

.adcomge-footer-links a {
	border-bottom: dotted 1px;
}

@media screen and (max-width: 1024px) {
	.adcomge-stats {
		grid-template-columns: repeat(3, 1fr);
		max-width: 100%;
	}
}

@media screen and (max-width: 736px) {
	.adcomge-stats {
		grid-template-columns: repeat(2, 1fr);
		gap: 0.5rem;
	}

	.adcomge-stats__value {
		font-size: 1.4rem;
		padding: 0.7em 0.4em;
	}

	.adcomge-stats__label {
		font-size: 0.68rem;
	}
}

@media screen and (max-width: 480px) {
	.adcomge-stats {
		grid-template-columns: 1fr;
	}

	.adcomge-stats__item {
		min-height: auto;
	}

	.adcomge-stats__value {
		font-size: 1.5rem;
	}
}
