/* Prayer Times Multi-Faith v1.0.3 - Horizons-matched UI */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;600;700&family=Manrope:wght@400;500;600;700&display=swap');

:root {
	--ptmf-primary: #d97706;
	--ptmf-primary-dark: #b45309;
	--ptmf-primary-light: #fbbf24;
	--ptmf-bg: #faf7f2;
	--ptmf-card: #ffffff;
	--ptmf-text: #1c1917;
	--ptmf-muted: #78716c;
	--ptmf-border: #e7e5e4;
	--ptmf-radius: 14px;
	--ptmf-shadow: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
	--ptmf-shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.05);
}

/* ========== Hide WordPress theme chrome ========== */
body.home .wp-site-blocks > header,
body.page .wp-site-blocks > header,
body.home header.wp-block-template-part,
body.page header.wp-block-template-part,
body.home .site-header,
body.page .site-header,
body.home .site-branding,
body.page .site-branding,
body.home .entry-header,
body.page .entry-header,
body.home .page-header,
body.page .page-header,
body.home .entry-title,
body.page .entry-title,
body.home .site-title,
body.page .site-title,
body.home .site-description,
body.page .site-description,
body.home footer.wp-block-template-part,
body.page footer.wp-block-template-part,
body.home .site-footer,
body.page .site-footer,
body.home .wp-block-site-title,
body.page .wp-block-site-title,
body.home .wp-block-site-tagline,
body.page .wp-block-site-tagline {
	display: none !important;
}

/* Extra aggressive top-bar / white-band removal */
html body.home,
html body.page {
	padding-top: 0 !important;
	margin-top: 0 !important;
}
body.home #wpadminbar,
body.page #wpadminbar {
	display: none !important;
}
html.admin-bar body.home,
html.admin-bar body.page {
	margin-top: 0 !important;
	padding-top: 0 !important;
}
body.home .wp-site-blocks > *:first-child:not(.ptmf-wrapper):not(main):not(article),
body.page .wp-site-blocks > *:first-child:not(.ptmf-wrapper):not(main):not(article) {
	/* keep structure; specific hides above handle chrome */
}
body.home header,
body.page header,
body.home .wp-block-template-part[area="header"],
body.page .wp-block-template-part[area="header"],
body.home .has-global-padding > header,
body.page .has-global-padding > header {
	display: none !important;
	height: 0 !important;
	min-height: 0 !important;
	overflow: hidden !important;
	margin: 0 !important;
	padding: 0 !important;
}
body.home .is-root-container > .wp-block-group:first-child,
body.page .is-root-container > .wp-block-group:first-child {
	padding-top: 0 !important;
	margin-top: 0 !important;
}


body.home,
body.page {
	background: var(--ptmf-bg) !important;
	margin: 0 !important;
	padding: 0 !important;
}

body.home .wp-site-blocks,
body.page .wp-site-blocks,
body.home .site-main,
body.page .site-main,
body.home main,
body.page main,
body.home article,
body.page article,
body.home .entry-content,
body.page .entry-content,
body.home .wp-block-group,
body.page .wp-block-group {
	margin: 0 !important;
	padding: 0 !important;
	max-width: none !important;
	background: transparent !important;
	box-shadow: none !important;
	border: none !important;
}

body.home .wp-block-post-content,
body.page .wp-block-post-content {
	margin: 0 !important;
	padding: 0 !important;
	max-width: none !important;
}

/* ========== App wrapper ========== */
.ptmf-wrapper {
	font-family: 'Manrope', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
	color: var(--ptmf-text);
	max-width: 980px;
	margin: 0 auto;
	padding: 20px 16px 80px;
	line-height: 1.55;
	background: var(--ptmf-bg);
	min-height: 100vh;
}

.ptmf-wrapper * {
	box-sizing: border-box;
}

/* ========== Header ========== */
.ptmf-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
	padding: 4px 0 8px;
}

.ptmf-logo {
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	color: inherit;
}

.ptmf-logo-icon {
	width: 48px;
	height: 48px;
	background: linear-gradient(145deg, #f59e0b, #d97706);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
	box-shadow: 0 3px 10px rgba(217, 119, 6, 0.4);
	flex-shrink: 0;
}

.ptmf-logo strong {
	display: block;
	font-size: 18px;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--ptmf-text);
	line-height: 1.2;
}

.ptmf-logo small {
	display: block;
	color: var(--ptmf-muted);
	font-size: 12px;
	font-weight: 500;
	margin-top: 2px;
}

.ptmf-header-actions {
	display: flex;
	align-items: center;
	gap: 4px;
}

.ptmf-header-actions a.ptmf-btn {
	text-decoration: none;
	font-size: 0.9rem;
	padding: 8px 14px;
	color: var(--ptmf-muted);
}

.ptmf-header-actions a.ptmf-btn:hover {
	color: var(--ptmf-text);
}

/* ========== Hero ========== */
.ptmf-hero {
	text-align: center;
	margin-bottom: 18px;
	padding: 28px 22px;
	background:
		linear-gradient(165deg, rgba(20, 18, 16, 0.82) 0%, rgba(40, 36, 32, 0.75) 45%, rgba(20, 18, 16, 0.88) 100%),
		radial-gradient(ellipse at 20% 30%, rgba(120, 100, 60, 0.35) 0%, transparent 50%),
		radial-gradient(ellipse at 80% 70%, rgba(80, 70, 50, 0.3) 0%, transparent 45%),
		linear-gradient(180deg, #2c2824 0%, #1a1816 100%);
	background-size: cover;
	background-position: center;
	border-radius: 16px;
	color: #fff;
	box-shadow: var(--ptmf-shadow-lg);
	position: relative;
	overflow: hidden;
}

.ptmf-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
	pointer-events: none;
	opacity: 0.6;
}

.ptmf-hero h1 {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: clamp(1.55rem, 3.6vw, 2.1rem);
	margin: 0 0 8px;
	font-weight: 600;
	letter-spacing: -0.02em;
	line-height: 1.22;
	position: relative;
}

.ptmf-subtitle {
	margin: 0 auto;
	font-size: 0.95rem;
	max-width: 520px;
	font-weight: 400;
	line-height: 1.55;
	color: #fcd34d;
	position: relative;
}

/* ========== Grid ========== */
.ptmf-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-bottom: 20px;
}

@media (max-width: 720px) {
	.ptmf-grid {
		grid-template-columns: 1fr;
	}
	.ptmf-hero {
		padding: 40px 20px;
	}
	.ptmf-wrapper {
		padding: 12px 12px 60px;
	}
}

/* ========== Cards ========== */
.ptmf-card {
	background: var(--ptmf-card);
	border: 1px solid var(--ptmf-border);
	border-radius: var(--ptmf-radius);
	padding: 16px;
	box-shadow: var(--ptmf-shadow);
}

.ptmf-card h3 {
	margin: 0 0 16px;
	font-size: 1.05rem;
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 8px;
}

/* ========== Location ========== */
.ptmf-current-location {
	background: linear-gradient(135deg, #fef3c7, #fde68a);
	border-radius: 10px;
	padding: 14px 16px;
	margin-bottom: 14px;
	border: 1px solid #fcd34d;
}

.ptmf-loc-name {
	font-weight: 700;
	font-size: 1.08rem;
	color: #92400e;
}

.ptmf-loc-coords {
	font-size: 0.82rem;
	color: #a16207;
	margin-top: 2px;
}

.ptmf-search-row {
	display: flex;
	gap: 8px;
	margin-bottom: 10px;
}

.ptmf-input,
.ptmf-select {
	flex: 1;
	padding: 11px 14px;
	border: 1px solid var(--ptmf-border);
	border-radius: 10px;
	font-size: 0.95rem;
	width: 100%;
	background: #fff;
	font-family: inherit;
	transition: border-color 0.15s, box-shadow 0.15s;
	color: var(--ptmf-text);
}

.ptmf-input:focus,
.ptmf-select:focus {
	outline: none;
	border-color: var(--ptmf-primary);
	box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.15);
}

.ptmf-search-results {
	margin-top: 10px;
	border: 1px solid var(--ptmf-border);
	border-radius: 10px;
	overflow: hidden;
	box-shadow: var(--ptmf-shadow);
}

.ptmf-search-item {
	display: block;
	width: 100%;
	text-align: left;
	padding: 11px 14px;
	background: #fff;
	border: none;
	border-bottom: 1px solid var(--ptmf-border);
	cursor: pointer;
	font-size: 0.9rem;
	font-family: inherit;
	transition: background 0.12s;
	color: var(--ptmf-text);
}

.ptmf-search-item:hover {
	background: #faf7f2;
}

.ptmf-search-item:last-child {
	border-bottom: none;
}

/* ========== Buttons ========== */
.ptmf-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 11px 18px;
	border-radius: 10px;
	font-size: 0.95rem;
	font-weight: 600;
	border: 1px solid transparent;
	cursor: pointer;
	transition: all 0.15s ease;
	font-family: inherit;
	line-height: 1.2;
}

.ptmf-btn-primary {
	background: var(--ptmf-primary);
	color: #fff;
	box-shadow: 0 1px 3px rgba(217, 119, 6, 0.3);
}

.ptmf-btn-primary:hover {
	background: var(--ptmf-primary-dark);
}

.ptmf-btn-secondary {
	background: #f5f5f4;
	color: var(--ptmf-text);
	border-color: var(--ptmf-border);
}

.ptmf-btn-secondary:hover {
	background: #e7e5e4;
}

.ptmf-btn-ghost {
	background: transparent;
	color: var(--ptmf-muted);
}

.ptmf-btn-ghost:hover {
	color: var(--ptmf-text);
	background: rgba(0,0,0,0.04);
}

.ptmf-btn-small {
	padding: 7px 12px;
	font-size: 0.85rem;
}

.ptmf-btn-icon {
	padding: 7px 12px;
	font-size: 1.15rem;
	min-width: 36px;
}

.ptmf-full {
	width: 100%;
}

/* ========== Time card ========== */
.ptmf-date-row {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 16px;
	flex-wrap: wrap;
}

.ptmf-selected-date {
	font-weight: 600;
	flex: 1;
	text-align: center;
	font-size: 0.95rem;
}

.ptmf-clock-box {
	background: linear-gradient(145deg, #f59e0b 0%, #d97706 50%, #b45309 100%);
	color: #fff;
	border-radius: 12px;
	padding: 14px 14px;
	text-align: center;
	margin-bottom: 12px;
	box-shadow: 0 4px 14px rgba(217, 119, 6, 0.35);
}

.ptmf-clock-label {
	font-size: 0.65rem;
	letter-spacing: 0.08em;
	opacity: 0.9;
	margin-bottom: 2px;
	font-weight: 600;
	text-transform: uppercase;
}

.ptmf-current-time {
	font-size: 1.75rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.02em;
	line-height: 1.15;
}

.ptmf-current-date-small {
	font-size: 0.88rem;
	opacity: 0.92;
	margin-top: 6px;
	font-weight: 500;
}

.ptmf-faith-select-wrap label {
	display: block;
	font-size: 0.82rem;
	color: var(--ptmf-muted);
	margin-bottom: 6px;
	font-weight: 500;
}

/* ========== Faiths ========== */
.ptmf-section {
	margin-bottom: 20px;
}

.ptmf-section h2 {
	font-size: 1.2rem;
	margin: 0 0 14px;
	font-weight: 700;
	letter-spacing: -0.01em;
}

.ptmf-faiths-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
	gap: 8px;
}

.ptmf-faith-btn {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 12px 8px 10px;
	background: var(--ptmf-card);
	border: 1.5px solid var(--ptmf-border);
	border-radius: var(--ptmf-radius);
	cursor: pointer;
	transition: all 0.18s ease;
	font-family: inherit;
}

.ptmf-faith-btn:hover {
	border-color: #fbbf24;
	box-shadow: var(--ptmf-shadow);
	transform: translateY(-1px);
}

.ptmf-faith-btn.active {
	border-color: var(--ptmf-primary);
	background: linear-gradient(180deg, #fffbeb 0%, #fef3c7 100%);
	box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.18);
}

.ptmf-faith-icon {
	font-size: 1.35rem;
	line-height: 1;
}

.ptmf-faith-label {
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--ptmf-text);
}

/* ========== Times list ========== */
.ptmf-times-list {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.ptmf-time-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 13px 0;
	border-bottom: 1px solid var(--ptmf-border);
}

.ptmf-time-row:last-child {
	border-bottom: none;
}

.ptmf-time-name {
	font-weight: 500;
	font-size: 0.98rem;
}

.ptmf-time-value {
	font-variant-numeric: tabular-nums;
	font-weight: 700;
	font-size: 1.08rem;
	min-width: 78px;
	text-align: right;
	color: var(--ptmf-primary-dark);
}

/* ========== About location + Did you know (same format) ========== */
.ptmf-did-you-know .ptmf-card {
	background: linear-gradient(135deg, #fffbeb, #fef3c7);
	border-color: #fcd34d;
}

.ptmf-did-you-know h3 {
	color: #92400e;
	margin: 0 0 10px;
	font-size: 1.05rem;
}

.ptmf-did-you-know p {
	margin: 0 0 8px;
	color: #78350f;
	font-size: 0.95rem;
	line-height: 1.6;
}

.ptmf-did-you-know p:last-child {
	margin-bottom: 0;
}

.ptmf-did-you-know p strong {
	color: #78350f;
	font-size: 1rem;
}

.ptmf-about-location .ptmf-card {
	background: linear-gradient(135deg, #fff4e5 0%, #fed7aa 55%, #fdba74 100%);
	border-color: #f59e0b;
}

.ptmf-about-location h3 {
	color: #9a3412;
	margin: 0 0 10px;
	font-size: 1.05rem;
}

.ptmf-about-location p {
	margin: 0 0 8px;
	color: #7c2d12;
	font-size: 0.95rem;
	line-height: 1.6;
}

.ptmf-about-location p:last-child {
	margin-bottom: 0;
}

.ptmf-about-location p strong {
	color: #9a3412;
	font-size: 1rem;
}

/* ========== Holidays ========== */
.ptmf-holidays-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.ptmf-holiday-item {
	display: flex;
	gap: 14px;
	padding: 14px;
	background: var(--ptmf-bg);
	border-radius: 12px;
	border: 1px solid var(--ptmf-border);
	transition: box-shadow 0.15s;
}

.ptmf-holiday-item:hover {
	box-shadow: var(--ptmf-shadow);
}

.ptmf-holiday-date {
	flex-shrink: 0;
	width: 58px;
	text-align: center;
	background: #e7e5e4;
	border-radius: 10px;
	padding: 10px 4px;
}

.ptmf-holiday-date .month {
	font-size: 0.68rem;
	text-transform: uppercase;
	font-weight: 700;
	color: var(--ptmf-muted);
	letter-spacing: 0.04em;
}

.ptmf-holiday-date .day {
	font-size: 1.35rem;
	font-weight: 700;
	line-height: 1.2;
	color: var(--ptmf-text);
}

.ptmf-holiday-info {
	flex: 1;
	min-width: 0;
}

.ptmf-holiday-title {
	font-weight: 700;
	margin-bottom: 3px;
	font-size: 1rem;
}

.ptmf-holiday-desc {
	font-size: 0.88rem;
	color: var(--ptmf-muted);
	line-height: 1.4;
}

.ptmf-holiday-tag {
	display: inline-block;
	font-size: 0.68rem;
	padding: 3px 9px;
	border-radius: 999px;
	background: #dbeafe;
	color: #1e40af;
	margin-top: 8px;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.ptmf-faith-filter {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.ptmf-faith-filter .ptmf-btn.active {
	background: var(--ptmf-primary);
	color: #fff;
	border-color: var(--ptmf-primary);
}

/* ========== Utility ========== */
.ptmf-error {
	background: #fef2f2;
	color: #b91c1c;
	padding: 11px 14px;
	border-radius: 10px;
	font-size: 0.9rem;
	margin-top: 10px;
	border: 1px solid #fecaca;
}

.ptmf-loading {
	text-align: center;
	padding: 24px;
	color: var(--ptmf-muted);
	font-size: 0.95rem;
}

.ptmf-muted {
	color: var(--ptmf-muted);
}


/* Compact location / date cards */
.ptmf-location-card h3,
.ptmf-times-card h3 {
	margin: 0 0 10px;
	font-size: 0.95rem;
}
.ptmf-date-row {
	margin-bottom: 10px;
}
.ptmf-search-row {
	margin-bottom: 8px;
}
.ptmf-current-location {
	padding: 10px 12px;
	margin-bottom: 10px;
}
.ptmf-section h2 {
	font-size: 1.05rem;
	margin: 0 0 10px;
}

.ptmf-timezone {
	margin-top: 6px;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	color: #fff !important;
	opacity: 1;
}

.ptmf-date-row-bottom {
	margin-top: 14px;
	margin-bottom: 0;
	padding-top: 12px;
	border-top: 1px solid var(--ptmf-border);
}

.ptmf-footer {
	margin-top: 36px;
	padding: 28px 16px 40px;
	border-top: 1px solid var(--ptmf-border, #e7e5e4);
}
.ptmf-footer-inner {
	max-width: 720px;
	margin: 0 auto;
	text-align: center;
}
.ptmf-footer-brand {
	margin: 0 0 8px;
	font-size: 0.95rem;
	color: #44403c;
}
.ptmf-footer-links {
	margin: 0 0 14px;
	font-size: 0.9rem;
}
.ptmf-footer-links a {
	color: #b45309;
	text-decoration: none;
	font-weight: 600;
}
.ptmf-footer-links a:hover {
	text-decoration: underline;
}
.ptmf-footer-sep {
	margin: 0 8px;
	color: #a8a29e;
}
.ptmf-footer-disclaimer {
	margin: 0;
	font-size: 0.8rem;
	line-height: 1.55;
	color: #78716c;
}



/* Static pages (About / Privacy) - match site type scale */
.ptmf-static-page {
	font-size: 15px;
	line-height: 1.55;
	color: #44403c;
}
.ptmf-static-page .ptmf-hero h1 {
	font-size: 1.75rem;
}
.ptmf-static-page .ptmf-subtitle {
	font-size: 0.95rem;
}
.ptmf-static-card {
	padding: 20px 22px 12px;
	font-size: 0.95rem;
	line-height: 1.6;
	color: #44403c;
}
.ptmf-static-card h3 {
	margin: 1.1em 0 0.4em;
	font-size: 1.05rem;
	font-weight: 700;
	color: #1c1917;
}
.ptmf-static-card p {
	margin: 0 0 0.9em;
	font-size: 0.95rem;
	line-height: 1.6;
}
.ptmf-static-card a {
	color: #b45309;
	font-weight: 600;
	text-decoration: none;
	font-size: inherit;
}
.ptmf-static-card a:hover {
	text-decoration: underline;
}

.ptmf-logo-mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	background: transparent;
	border-radius: 50%;
	overflow: hidden;
	font-size: 0;
}
.ptmf-logo-mark img {
	display: block;
	width: 48px;
	height: 48px;
}
.ptmf-logo strong {
	font-size: 1.15rem;
	line-height: 1.2;
}
