/* Single Donation Page Styles */

.missinterschools-donation-single-wrapper {
	padding: 40px 20px;
	background-color: #fafafa;
	min-height: calc(100vh - 200px);
}

.donation-single-container {
	max-width: 1200px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	background-color: white;
	padding: 40px;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* ========== Gallery Section ========== */
.donation-single-gallery {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.donation-main-image-wrapper {
	position: relative;
	width: 100%;
	aspect-ratio: 1;
	background-color: #f5f5f5;
	border-radius: 8px;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}

.donation-main-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.donation-main-image-wrapper:hover .donation-main-image {
	transform: scale(1.05);
}

.zoom-icon {
	position: absolute;
	top: 15px;
	right: 15px;
	width: 40px;
	height: 40px;
	background-color: rgba(0, 0, 0, 0.6);
	color: white;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	cursor: pointer;
	transition: all 0.3s;
	opacity: 0;
}

.donation-main-image-wrapper:hover .zoom-icon {
	opacity: 1;
}

.zoom-icon:hover {
	background-color: rgba(0, 0, 0, 0.8);
	transform: scale(1.1);
}

/* Thumbnail Gallery */
.donation-thumbnail-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
	gap: 10px;
}

.donation-thumbnail-item {
	width: 100%;
	aspect-ratio: 1;
	border: 2px solid #ddd;
	border-radius: 6px;
	overflow: hidden;
	cursor: pointer;
	transition: all 0.3s;
	background-color: #f9f9f9;
}

.donation-thumbnail-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s;
}

.donation-thumbnail-item:hover {
	border-color: #999;
}

.donation-thumbnail-item:hover img {
	transform: scale(1.05);
}

.donation-thumbnail-item.active {
	border-color: #333;
	box-shadow: 0 0 0 2px white, 0 0 0 4px #333;
}

/* ========== Content Section ========== */
.donation-single-content {
	display: flex;
	flex-direction: column;
	gap: 25px;
}

.donation-single-title {
	margin: 0;
	font-size: 28px;
	font-weight: 700;
	color: #333;
	line-height: 1.3;
}

/* Progress Section */
.donation-single-progress-container {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.donation-progress-bar {
	width: 100%;
	height: 12px;
	background-color: #e0e0e0;
	border-radius: 6px;
	overflow: hidden;
	box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.donation-progress-fill {
	height: 100%;
	background: linear-gradient(90deg, #e60023, #c90020);
	transition: width 0.5s ease;
	border-radius: 6px;
}

.donation-progress-text {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 14px;
	gap: 10px;
}

.donation-progress-amount {
	color: #666;
	font-weight: 500;
}

.donation-progress-percent {
	color: #e60023;
	font-weight: 700;
	font-size: 15px;
	background-color: #ffe0e6;
	padding: 4px 8px;
	border-radius: 4px;
}

/* Cause Section */
.donation-cause-section {
	padding: 20px;
	background-color: #f9f9f9;
	border-left: 4px solid #e60023;
	border-radius: 4px;
}

.donation-cause-section h2 {
	margin: 0 0 12px 0;
	font-size: 16px;
	font-weight: 600;
	color: #333;
}

.donation-cause-text {
	color: #666;
	font-size: 14px;
	line-height: 1.6;
	margin: 0;
}

/* Actions */
.donation-actions {
	display: flex;
	flex-direction: column;
	gap: 15px;
	padding: 20px;
	background-color: #f5f5f5;
	border-radius: 6px;
}

.donate-button-large {
	width: 100%;
	padding: 14px 20px;
	background: linear-gradient(135deg, #e60023, #c90020);
	color: white;
	border: none;
	border-radius: 4px;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.3s ease;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.donate-button-large:hover {
	background: linear-gradient(135deg, #c90020, #aa001a);
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(230, 0, 35, 0.3);
}

.donation-share {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.share-label {
	font-weight: 600;
	color: #333;
	font-size: 14px;
}

.social-icon {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	text-decoration: none;
	font-weight: 700;
	transition: all 0.3s;
	font-size: 18px;
}

.social-icon.twitter {
	background-color: #1da1f2;
}

.social-icon.twitter:hover {
	background-color: #1a91da;
	transform: scale(1.1);
}

.social-icon.facebook {
	background-color: #1877f2;
}

.social-icon.facebook:hover {
	background-color: #0a66c2;
	transform: scale(1.1);
}

.social-icon.pinterest {
	background-color: #e60023;
}

.social-icon.pinterest:hover {
	background-color: #ad081b;
	transform: scale(1.1);
}

.social-icon.linkedin {
	background-color: #0a66c2;
}

.social-icon.linkedin:hover {
	background-color: #004182;
	transform: scale(1.1);
}

/* ========== Highlights Section ========== */
.donation-highlights {
	padding: 20px;
	background-color: #f9f9f9;
	border-radius: 6px;
	border-top: 3px solid #e60023;
}

.donation-highlights h3 {
	margin: 0 0 15px 0;
	font-size: 16px;
	font-weight: 600;
	color: #333;
}

.highlights-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 15px;
}

.highlight-card {
	background-color: white;
	padding: 15px;
	border-radius: 6px;
	border: 1px solid #e0e0e0;
	text-align: center;
	transition: all 0.3s;
}

.highlight-card:hover {
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	transform: translateY(-2px);
}

.highlight-number {
	font-size: 24px;
	font-weight: 700;
	color: #e60023;
	margin-bottom: 5px;
}

.highlight-label {
	font-size: 12px;
	color: #666;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

/* ========== Latest Donor Section ========== */
.donation-latest-donor {
	padding: 15px;
	background-color: #ffe0e6;
	border-left: 4px solid #e60023;
	border-radius: 4px;
}

.donation-latest-donor h3 {
	margin: 0 0 10px 0;
	font-size: 14px;
	font-weight: 600;
	color: #333;
}

.latest-donor-info {
	color: #555;
	font-size: 13px;
	margin: 0;
}

.latest-donor-info p {
	margin: 5px 0;
}

.donation-time {
	color: #999;
	font-size: 12px !important;
	font-style: italic;
}

/* ========== Top Donors Section ========== */
.donation-top-donors {
	padding: 15px;
	background-color: #f5f5f5;
	border-radius: 6px;
}

.donation-top-donors h3 {
	margin: 0 0 12px 0;
	font-size: 14px;
	font-weight: 600;
	color: #333;
}

.top-donors-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.donor-item {
	display: grid;
	grid-template-columns: 30px 1fr 80px;
	align-items: center;
	gap: 10px;
	padding: 10px;
	background-color: white;
	border-radius: 4px;
	font-size: 13px;
}

.donor-rank {
	font-weight: 700;
	color: #e60023;
	text-align: center;
}

.donor-name {
	color: #333;
	font-weight: 500;
}

.donor-amount {
	color: #e60023;
	font-weight: 700;
	text-align: right;
}

/* ========== Zoom Modal ========== */
.donation-zoom-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.95);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 99999;
	animation: fadeInZoom 0.3s ease;
}

@keyframes fadeInZoom {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

.donation-zoom-container {
	position: relative;
	width: 90%;
	height: 90vh;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.donation-zoom-image {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	cursor: zoom-out;
}

.donation-zoom-close {
	position: fixed;
	top: 30px;
	right: 40px;
	font-size: 50px;
	color: white;
	cursor: pointer;
	transition: all 0.3s;
	z-index: 100000;
	user-select: none;
	line-height: 1;
}

.donation-zoom-close:hover {
	color: #ccc;
	transform: scale(1.2);
}

/* ========== Responsive Design ========== */
@media (max-width: 768px) {
	.missinterschools-donation-single-wrapper {
		padding: 20px;
	}

	.donation-single-container {
		grid-template-columns: 1fr;
		padding: 20px;
		gap: 30px;
		display: flex;
		flex-direction: column;
	}

	.donation-single-gallery {
		order: -1;
		width: 100%;
	}

	.donation-single-content {
		order: 0;
		width: 100%;
	}

	.donation-single-title {
		font-size: 22px;
	}

	.highlights-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.donation-thumbnail-gallery {
		grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
		gap: 8px;
	}

	.donation-actions {
		flex-direction: column;
		gap: 12px;
	}

	.donation-share {
		flex-direction: row;
		gap: 10px;
	}

	.social-icon {
		width: 36px;
		height: 36px;
		font-size: 16px;
	}
}

@media (max-width: 600px) {
	.missinterschools-donation-single-wrapper {
		padding: 15px 10px;
	}

	.donation-single-container {
		padding: 15px;
		gap: 20px;
	}

	.donation-single-title {
		font-size: 18px;
	}

	.highlights-grid {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.highlight-card {
		padding: 12px;
	}

	.highlight-number {
		font-size: 20px;
	}

	.donate-button-large {
		padding: 12px 16px;
		font-size: 14px;
	}

	.donation-share {
		gap: 8px;
	}

	.social-icon {
		width: 32px;
		height: 32px;
		font-size: 14px;
	}

	.share-label {
		font-size: 12px;
	}

	.donor-item {
		grid-template-columns: 25px 1fr 70px;
		font-size: 12px;
		padding: 8px;
		gap: 8px;
	}

	.donation-zoom-close {
		top: 15px;
		right: 20px;
		font-size: 36px;
	}
}
