/*
Theme Name: Sahabat Sinar Hati
Theme URI: https://sahabatsinarhati.com
Author: Yayasan Sinar Hati Sahabat Kita
Author URI: https://sahabatsinarhati.com
Description: Tema WordPress resmi Yayasan Sinar Hati Sahabat Kita. Menampilkan beranda galang dana, kartu kampanye, kabar terbaru, statistik transparansi, profil yayasan, dan modal donasi transfer bank manual. Tema ini dirancang berpasangan dengan plugin "Sahabat Sinar Hati - Crowdfunding & Donasi".
Version: 1.2.3
Requires at least: 5.8
Tested up to: 6.5
Requires PHP: 7.2
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sahabat-sinar-hati
Tags: custom-logo, custom-menu, featured-images, translation-ready, blog, one-column
*/

/* =========================================================
   1. Gaya dasar (mengikuti desain prototipe asli)
   ========================================================= */
body {
	font-family: 'Inter', sans-serif;
	background-color: #F1F5F9;
}

.gradient-header { background: linear-gradient(135deg, #1E40AF 0%, #7C3AED 50%, #EC4899 100%); }
.gradient-card { background: linear-gradient(135deg, #EEF2FF 0%, #F5F3FF 100%); }
.custom-shadow { box-shadow: 0 10px 25px -5px rgba(30, 64, 175, 0.08); }

.tab-active { border-bottom: 3px solid #7C3AED; color: #7C3AED; font-weight: 700; }

.campaign-detail-tab { color: #334155; border-bottom: 3px solid transparent; background: transparent; }
.campaign-detail-tab.active {
	background: #7c3aed;
	color: #fff;
	border-bottom-color: #7c3aed;
	border-radius: 10px 10px 0 0;
}

/* Kartu galang dana di beranda. */
.ssh-campaign-card {
	border-radius: 20px;
	border-color: #e2e8f0;
	box-shadow: 0 5px 18px rgba(15, 23, 42, .055);
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.ssh-campaign-card:hover {
	transform: translateY(-4px);
	border-color: #c4b5fd;
	box-shadow: 0 16px 32px rgba(76, 29, 149, .12);
}

.ssh-campaign-card .ssh-campaign-image {
	height: 210px;
	overflow: hidden;
	background: linear-gradient(135deg, #eef2ff, #fdf2f8);
}

.ssh-campaign-card .ssh-campaign-image::after {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	height: 58px;
	background: linear-gradient(transparent, rgba(15, 23, 42, .22));
	content: "";
	pointer-events: none;
}

.ssh-campaign-card .ssh-campaign-image-photo {
	transition: transform .45s ease;
}

.ssh-campaign-card .ssh-campaign-category,
.ssh-campaign-card .ssh-campaign-ending {
	z-index: 1;
}

.ssh-campaign-card .ssh-campaign-card-content {
	padding: 18px 18px 14px;
}

.ssh-campaign-card .ssh-campaign-title {
	min-height: 44px;
	font-size: 15px;
}

.ssh-campaign-card .ssh-campaign-summary {
	min-height: 34px;
	line-height: 1.55;
}

.ssh-campaign-card .ssh-campaign-progress-track {
	height: 9px;
}

.ssh-campaign-card .ssh-campaign-card-actions {
	padding: 0 18px 18px;
}

.ssh-campaign-card .ssh-campaign-donate-button,
.ssh-detail-donate-button:not(:disabled),
.ssh-single-campaign .ssh-detail-donate-button:not(:disabled) {
	background: linear-gradient(105deg, #1e40af 0%, #7c3aed 68%, #a855f7 100%);
	box-shadow: 0 8px 16px rgba(91, 59, 181, .2);
	transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}

.ssh-campaign-card .ssh-campaign-donate-button:hover,
.ssh-detail-donate-button:not(:disabled):hover,
.ssh-single-campaign .ssh-detail-donate-button:not(:disabled):hover {
	filter: brightness(1.06);
	transform: translateY(-1px);
	box-shadow: 0 11px 20px rgba(91, 59, 181, .26);
}

/* Rangkuman detail kampanye: foto dan informasi berdampingan di layar lebar. */
.ssh-detail-overview {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(340px, .8fr);
	align-items: stretch;
	background: #fff;
}

.ssh-detail-cover {
	position: relative;
	min-height: 390px;
	overflow: hidden;
	background: linear-gradient(135deg, #e0e7ff, #fce7f3);
}

.ssh-detail-hero-image {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 390px;
	object-fit: cover;
}

.ssh-detail-hero-image[hidden] {
	display: none !important;
}

.ssh-detail-image-empty {
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #e0e7ff, #fce7f3);
	color: #7c3aed;
	font-size: 64px;
}

.ssh-detail-summary {
	align-self: center;
	padding: 32px;
}

.ssh-detail-category {
	background: #f3e8ff;
	color: #6d28d9;
	letter-spacing: .04em;
}

.ssh-detail-stat {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
}

.ssh-detail-stat .fa-solid,
.ssh-detail-stat .fa-regular {
	font-size: 12px;
}

.ssh-detail-progress-track {
	box-shadow: inset 0 1px 2px rgba(15, 23, 42, .08);
}

.ssh-detail-target-row {
	gap: 12px;
}

.ssh-detail-organizer,
.ssh-detail-information {
	border: 1px solid #e8edf5;
	border-radius: 16px;
	box-shadow: 0 3px 12px rgba(15, 23, 42, .035);
}

.ssh-detail-organizer h3 {
	margin-bottom: 14px;
	font-size: 15px;
}

.ssh-detail-information [role="tablist"] {
	gap: 8px;
	padding-bottom: 8px;
}

.ssh-detail-information .campaign-detail-tab {
	border: 0;
	border-radius: 10px;
	padding: 10px 14px;
	color: #64748b;
	transition: color .15s ease, background .15s ease;
}

.ssh-detail-information .campaign-detail-tab.active {
	background: #f3e8ff;
	color: #6d28d9;
}

.ssh-single-campaign [data-ssh-panel="description"] img {
	background: #f1f5f9;
	transition: transform .2s ease, box-shadow .2s ease;
}

.ssh-single-campaign [data-ssh-panel="description"] img:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 18px rgba(15, 23, 42, .12);
}

.ssh-single-campaign {
	box-shadow: 0 12px 32px rgba(15, 23, 42, .07);
}

.ssh-campaign-breadcrumb a {
	transition: color .15s ease;
}

@media screen and (max-width: 767px) {
	.ssh-campaign-card .ssh-campaign-image {
		height: 205px;
	}

	.ssh-detail-overview {
		grid-template-columns: 1fr;
	}

	.ssh-detail-cover,
	.ssh-detail-hero-image {
		min-height: 0;
		height: 250px;
	}

	.ssh-detail-summary {
		padding: 23px 20px;
	}

	.ssh-detail-organizer,
	.ssh-detail-information {
		border-radius: 13px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ssh-campaign-card,
	.ssh-campaign-card .ssh-campaign-image-photo,
	.ssh-campaign-card .ssh-campaign-donate-button,
	.ssh-detail-donate-button {
		transition: none;
	}
}

/* Batas baris teks (pengganti plugin line-clamp Tailwind) */
.line-clamp-2 {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.line-clamp-3 {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* =========================================================
   2. Hero slider
   ========================================================= */
.ssh-hero-slide {
	transition: opacity .7s ease;
}
.ssh-hero-slide[aria-hidden="true"] {
	opacity: 0;
	pointer-events: none;
}
.ssh-hero-slide[aria-hidden="false"] {
	opacity: 1;
}

/* =========================================================
   3. Navigasi (header + menu WordPress)
   ========================================================= */
.ssh-nav-links {
	display: flex;
	flex-direction: column;
	gap: .25rem;
}
.ssh-nav-links > a { display: block; }

.ssh-nav-menu {
	display: flex;
	flex-direction: column;
	gap: .25rem;
	list-style: none;
	margin: 0;
	padding: 0;
}
.ssh-nav-menu li { list-style: none; margin: 0; }
.ssh-nav-menu li a {
	display: block;
	padding: .55rem .8rem;
	border-radius: .5rem;
	font-weight: 700;
	font-size: .8125rem;
	color: #334155;
	text-decoration: none;
}
.ssh-nav-menu li a:hover { background: #f1f5f9; }
.ssh-nav-menu li.current-menu-item a,
.ssh-nav-menu li.current_page_item a { background: #eff6ff; color: #1E40AF; }

@media (min-width: 768px) {
	.ssh-nav-links {
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
	}
	.ssh-nav-links > a { display: inline-flex; align-items: center; }
	.ssh-nav-menu {
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
	}
	.ssh-nav-menu li a { display: inline-block; }
}

/* Anchor tidak tertutup header lengket saat menggulir. */
#home,
#campaigns-section,
#public-updates,
#articles,
#transparency,
#about,
#contact { scroll-margin-top: 130px; }

/* =========================================================
   5. Konten artikel (WordPress editor)
   ========================================================= */
.entry-content { color: #334155; line-height: 1.8; font-size: .9rem; }
.entry-content img { max-width: 100%; height: auto; border-radius: .75rem; }
.entry-content h2 { font-size: 1.25rem; font-weight: 800; margin: .9rem 0 .4rem; }
.entry-content h3 { font-size: 1.05rem; font-weight: 700; margin: .7rem 0 .3rem; }
.entry-content p { margin: .5rem 0; }
.entry-content ul { list-style: disc; padding-left: 1.4rem; margin: .5rem 0; }
.entry-content ol { list-style: decimal; padding-left: 1.4rem; margin: .5rem 0; }
.entry-content blockquote {
	border-left: 3px solid #7C3AED;
	padding-left: .75rem;
	color: #64748b;
	margin: .6rem 0;
	font-style: italic;
}
.entry-content a { color: #7C3AED; text-decoration: underline; }

/* =========================================================
   6. Penyesuaian WordPress core
   ========================================================= */
.alignleft { float: left; margin: 0 1rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1rem; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: .75rem; color: #64748b; text-align: center; }
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}
.skip-link:focus {
	background: #fff;
	clip: auto;
	clip-path: none;
	color: #1E40AF;
	display: block;
	font-weight: 700;
	height: auto;
	left: 6px;
	padding: 10px 16px;
	top: 6px;
	width: auto;
	z-index: 100000;
}

/* =========================================================
   7. Area widget di footer
   ========================================================= */
.ssh-footer-widgets { color: #cbd5e1; }
.ssh-footer-widgets .widget { margin-bottom: 1.25rem; }
.ssh-footer-widgets .widget-title {
	color: #fff;
	font-size: .8125rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .05em;
	margin-bottom: .5rem;
}
.ssh-footer-widgets a { color: #93c5fd; text-decoration: none; }
.ssh-footer-widgets a:hover { color: #fff; text-decoration: underline; }
.ssh-footer-widgets ul { list-style: none; margin: 0; padding: 0; }
.ssh-footer-widgets ul li { margin: .25rem 0; font-size: .8125rem; }
.ssh-footer-widgets select,
.ssh-footer-widgets input[type="text"],
.ssh-footer-widgets input[type="search"] {
	width: 100%;
	padding: .5rem .75rem;
	border: 1px solid #334155;
	border-radius: .75rem;
	background: #1e293b;
	color: #e2e8f0;
	font-size: .8125rem;
}

/* =========================================================
   8. Komentar
   ========================================================= */
.comments-area .comment-list { list-style: none; margin: 0; padding: 0; }
.comments-area .comment-list .children { list-style: none; margin: 0; padding-left: 1.25rem; }
.comments-area .comment-body {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 1rem;
	padding: .875rem 1rem;
}
.comments-area .comment-meta { font-size: .6875rem; color: #64748b; margin-bottom: .35rem; }
.comments-area .comment-author img { border-radius: 9999px; margin-right: .5rem; vertical-align: middle; }
.comments-area .comment-content { font-size: .875rem; color: #334155; line-height: 1.7; }
.comments-area .reply a { font-size: .75rem; font-weight: 700; color: #7c3aed; }
.comments-area .comment-form p { margin-bottom: .75rem; }
.comments-area .comment-form label { display: block; font-size: .75rem; font-weight: 700; color: #334155; margin-bottom: .25rem; }
.comments-area .comment-form input[type="text"],
.comments-area .comment-form input[type="email"],
.comments-area .comment-form input[type="url"],
.comments-area .comment-form textarea {
	width: 100%;
	padding: .55rem .75rem;
	border: 1px solid #e2e8f0;
	border-radius: .75rem;
	font-size: .875rem;
	color: #1e293b;
}
.comments-area .comment-form input:focus,
.comments-area .comment-form textarea:focus { outline: none; border-color: #7c3aed; }
.comments-area .comment-form .form-submit { margin-top: .5rem; }
.comments-area .comment-form input[type="submit"] {
	padding: .65rem 1.25rem;
	border: 0;
	border-radius: .75rem;
	background: #1E40AF;
	color: #fff;
	font-size: .875rem;
	font-weight: 700;
	cursor: pointer;
}
.comments-area .comment-form input[type="submit"]:hover { background: #1e3a8a; }
