feat: premium UI overhaul for falah-shortcodes widgets — Islamic luxury design system v2
This commit is contained in:
Binary file not shown.
@@ -1,253 +1,554 @@
|
|||||||
/* Falah Shortcodes — Design System */
|
/* Falah Shortcodes — Premium Islamic Design System v2 */
|
||||||
|
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;1,400&family=Inter:wght@400;500;600;700&family=Scheherazade+New:wght@400;700&display=swap');
|
||||||
|
|
||||||
:root {
|
:root {
|
||||||
--falah-green: #1a7a4a;
|
/* Palette */
|
||||||
--falah-green-light: #2da065;
|
--f-emerald: #0A5C36;
|
||||||
--falah-gold: #c9a84c;
|
--f-emerald-mid: #0D7343;
|
||||||
--falah-gold-light: #e6c97a;
|
--f-emerald-light: #E6F2EC;
|
||||||
--falah-surface: #f8f6f0;
|
--f-gold: #C8921A;
|
||||||
--falah-surface-dark: #1c1f2e;
|
--f-gold-light: #F5E6C8;
|
||||||
--falah-text: #1a1a2e;
|
--f-gold-glow: rgba(200,146,26,0.25);
|
||||||
--falah-text-muted: #5a6070;
|
--f-cream: #FAF7F0;
|
||||||
--falah-border: rgba(0,0,0,0.08);
|
--f-navy: #0A1628;
|
||||||
--falah-radius: 16px;
|
--f-navy-mid: #1A2740;
|
||||||
--falah-shadow: 0 4px 24px rgba(0,0,0,0.08);
|
--f-text: #0A1628;
|
||||||
--falah-shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
|
--f-text-muted: #5C6880;
|
||||||
--ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
|
--f-border: rgba(10,22,40,0.08);
|
||||||
|
--f-border-gold: rgba(200,146,26,0.3);
|
||||||
|
--f-surface: #FFFFFF;
|
||||||
|
|
||||||
|
/* Spacing & shape */
|
||||||
|
--f-radius: 12px;
|
||||||
|
--f-radius-sm: 8px;
|
||||||
|
--f-shadow: 0 2px 16px rgba(10,22,40,0.07), 0 1px 4px rgba(10,22,40,0.05);
|
||||||
|
--f-shadow-lg: 0 8px 40px rgba(10,22,40,0.12), 0 2px 8px rgba(10,22,40,0.06);
|
||||||
|
--f-shadow-gold: 0 4px 20px rgba(200,146,26,0.2);
|
||||||
|
|
||||||
|
/* Motion */
|
||||||
|
--f-ease: cubic-bezier(0.16, 1, 0.3, 1);
|
||||||
|
--f-fast: 150ms;
|
||||||
|
--f-normal: 300ms;
|
||||||
|
|
||||||
|
/* Typography */
|
||||||
|
--f-font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
|
||||||
|
--f-font-display: 'Cormorant Garamond', Georgia, serif;
|
||||||
|
--f-font-arabic: 'Scheherazade New', 'KFGQPC Uthmanic Script HAFS', serif;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ── Base widget ──────────────────────────────────────────────────────────── */
|
/* ── Base widget ──────────────────────────────────────────────────────────── */
|
||||||
.falah-widget {
|
.falah-widget {
|
||||||
background: #fff;
|
background: var(--f-surface);
|
||||||
border-radius: var(--falah-radius);
|
border-radius: var(--f-radius);
|
||||||
box-shadow: var(--falah-shadow);
|
box-shadow: var(--f-shadow);
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
margin: 24px 0;
|
margin: 28px 0;
|
||||||
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
font-family: var(--f-font-body);
|
||||||
color: var(--falah-text);
|
color: var(--f-text);
|
||||||
|
border: 1px solid var(--f-border);
|
||||||
|
transition: box-shadow var(--f-normal) var(--f-ease);
|
||||||
|
}
|
||||||
|
.falah-widget:hover {
|
||||||
|
box-shadow: var(--f-shadow-lg);
|
||||||
}
|
}
|
||||||
|
|
||||||
.falah-widget-header {
|
.falah-widget-header {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 10px;
|
gap: 12px;
|
||||||
padding: 20px 24px 16px;
|
padding: 18px 24px;
|
||||||
border-bottom: 1px solid var(--falah-border);
|
background: linear-gradient(135deg, var(--f-emerald) 0%, #0D4A2C 100%);
|
||||||
background: linear-gradient(135deg, var(--falah-green) 0%, #145c38 100%);
|
|
||||||
color: #fff;
|
color: #fff;
|
||||||
|
position: relative;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
.falah-widget-header::after {
|
||||||
|
content: '';
|
||||||
|
position: absolute;
|
||||||
|
right: -20px;
|
||||||
|
top: -20px;
|
||||||
|
width: 100px;
|
||||||
|
height: 100px;
|
||||||
|
border-radius: 50%;
|
||||||
|
background: rgba(255,255,255,0.04);
|
||||||
|
pointer-events: none;
|
||||||
|
}
|
||||||
|
.falah-widget-header::before {
|
||||||
|
content: '';
|
||||||
|
position: absolute;
|
||||||
|
right: 40px;
|
||||||
|
bottom: -30px;
|
||||||
|
width: 80px;
|
||||||
|
height: 80px;
|
||||||
|
border-radius: 50%;
|
||||||
|
background: rgba(200,146,26,0.12);
|
||||||
|
pointer-events: none;
|
||||||
}
|
}
|
||||||
.falah-widget-header h3 {
|
.falah-widget-header h3 {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
font-size: 1.1rem;
|
font-size: 0.95rem;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
flex: 1;
|
flex: 1;
|
||||||
|
letter-spacing: 0.01em;
|
||||||
}
|
}
|
||||||
.falah-widget-header .falah-location {
|
.falah-widget-header .falah-location {
|
||||||
font-size: 0.8rem;
|
font-size: 0.75rem;
|
||||||
opacity: 0.8;
|
opacity: 0.75;
|
||||||
|
font-weight: 400;
|
||||||
|
}
|
||||||
|
.falah-icon {
|
||||||
|
font-size: 1.25rem;
|
||||||
|
opacity: 0.9;
|
||||||
}
|
}
|
||||||
.falah-icon { font-size: 1.4rem; }
|
|
||||||
|
|
||||||
/* ── Spinner ──────────────────────────────────────────────────────────────── */
|
/* ── Spinner ──────────────────────────────────────────────────────────────── */
|
||||||
.falah-spinner {
|
.falah-spinner {
|
||||||
width: 32px; height: 32px;
|
width: 28px; height: 28px;
|
||||||
border: 3px solid var(--falah-border);
|
border: 2.5px solid var(--f-border);
|
||||||
border-top-color: var(--falah-green);
|
border-top-color: var(--f-emerald);
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
animation: falah-spin 0.7s linear infinite;
|
animation: falah-spin 0.75s linear infinite;
|
||||||
}
|
}
|
||||||
@keyframes falah-spin { to { transform: rotate(360deg); } }
|
@keyframes falah-spin { to { transform: rotate(360deg); } }
|
||||||
|
|
||||||
.falah-loading {
|
.falah-loading {
|
||||||
display: flex; align-items: center; gap: 12px;
|
display: flex; align-items: center; gap: 12px;
|
||||||
justify-content: center; padding: 32px;
|
justify-content: center; padding: 40px;
|
||||||
color: var(--falah-text-muted); font-size: 0.9rem;
|
color: var(--f-text-muted); font-size: 0.875rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ── Prayer Times ─────────────────────────────────────────────────────────── */
|
/* ── Prayer Times ─────────────────────────────────────────────────────────── */
|
||||||
.falah-prayer-grid {
|
.falah-prayer-grid {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
|
grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
|
||||||
gap: 1px;
|
gap: 0;
|
||||||
background: var(--falah-border);
|
|
||||||
}
|
}
|
||||||
.falah-prayer-item {
|
.falah-prayer-item {
|
||||||
background: #fff;
|
background: var(--f-surface);
|
||||||
padding: 16px 12px;
|
padding: 20px 10px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
transition: background 200ms;
|
border-right: 1px solid var(--f-border);
|
||||||
|
border-bottom: 1px solid var(--f-border);
|
||||||
|
transition: background var(--f-fast);
|
||||||
|
position: relative;
|
||||||
}
|
}
|
||||||
|
.falah-prayer-item:last-child { border-right: none; }
|
||||||
.falah-prayer-item.active {
|
.falah-prayer-item.active {
|
||||||
background: linear-gradient(135deg, #e8f5ee, #f0faf4);
|
background: var(--f-emerald-light);
|
||||||
|
}
|
||||||
|
.falah-prayer-item.active::before {
|
||||||
|
content: '';
|
||||||
|
position: absolute;
|
||||||
|
top: 0; left: 50%; transform: translateX(-50%);
|
||||||
|
width: 32px; height: 3px;
|
||||||
|
background: var(--f-emerald);
|
||||||
|
border-radius: 0 0 3px 3px;
|
||||||
|
}
|
||||||
|
.falah-prayer-name {
|
||||||
|
font-size: 0.7rem;
|
||||||
|
text-transform: uppercase;
|
||||||
|
letter-spacing: 0.08em;
|
||||||
|
color: var(--f-text-muted);
|
||||||
|
margin-bottom: 8px;
|
||||||
|
font-weight: 600;
|
||||||
|
}
|
||||||
|
.falah-prayer-item.active .falah-prayer-name {
|
||||||
|
color: var(--f-emerald);
|
||||||
|
}
|
||||||
|
.falah-prayer-time {
|
||||||
|
font-size: 1.1rem;
|
||||||
|
font-weight: 700;
|
||||||
|
font-variant-numeric: tabular-nums;
|
||||||
|
color: var(--f-text);
|
||||||
|
letter-spacing: -0.01em;
|
||||||
|
}
|
||||||
|
.falah-prayer-item.active .falah-prayer-time {
|
||||||
|
color: var(--f-emerald);
|
||||||
}
|
}
|
||||||
.falah-prayer-item.active .falah-prayer-name { color: var(--falah-green); font-weight: 700; }
|
|
||||||
.falah-prayer-name { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--falah-text-muted); margin-bottom: 6px; }
|
|
||||||
.falah-prayer-time { font-size: 1.15rem; font-weight: 600; font-variant-numeric: tabular-nums; }
|
|
||||||
.falah-prayer-item.active .falah-prayer-time { color: var(--falah-green); }
|
|
||||||
.falah-next-prayer {
|
.falah-next-prayer {
|
||||||
padding: 12px 24px;
|
padding: 14px 24px;
|
||||||
font-size: 0.85rem;
|
font-size: 0.82rem;
|
||||||
color: var(--falah-green);
|
color: var(--f-emerald);
|
||||||
font-weight: 500;
|
font-weight: 600;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
background: var(--f-emerald-light);
|
||||||
|
border-top: 1px solid rgba(10,92,54,0.1);
|
||||||
}
|
}
|
||||||
.falah-hijri {
|
.falah-hijri {
|
||||||
padding: 0 24px 16px;
|
padding: 10px 24px 14px;
|
||||||
font-size: 0.8rem;
|
font-size: 0.78rem;
|
||||||
color: var(--falah-text-muted);
|
color: var(--f-text-muted);
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
font-family: var(--f-font-display);
|
||||||
|
font-style: italic;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ── Dhikr Counter ────────────────────────────────────────────────────────── */
|
/* ── Dhikr Counter ────────────────────────────────────────────────────────── */
|
||||||
.falah-dhikr-selector {
|
.falah-dhikr-selector {
|
||||||
display: flex; flex-wrap: wrap; gap: 8px;
|
display: flex; flex-wrap: wrap; gap: 8px;
|
||||||
padding: 16px 20px;
|
padding: 18px 20px 12px;
|
||||||
}
|
}
|
||||||
.falah-dhikr-btn {
|
.falah-dhikr-btn {
|
||||||
padding: 6px 14px; border-radius: 20px;
|
padding: 6px 14px;
|
||||||
border: 1.5px solid var(--falah-border);
|
border-radius: 20px;
|
||||||
background: var(--falah-surface); cursor: pointer;
|
border: 1.5px solid var(--f-border);
|
||||||
font-size: 0.82rem; color: var(--falah-text-muted);
|
background: var(--f-cream);
|
||||||
transition: all 150ms;
|
cursor: pointer;
|
||||||
|
font-size: 0.8rem;
|
||||||
|
color: var(--f-text-muted);
|
||||||
|
font-family: var(--f-font-body);
|
||||||
|
transition: all var(--f-fast) var(--f-ease);
|
||||||
|
font-weight: 500;
|
||||||
}
|
}
|
||||||
.falah-dhikr-btn.active, .falah-dhikr-btn:hover {
|
.falah-dhikr-btn.active, .falah-dhikr-btn:hover {
|
||||||
background: var(--falah-green); color: #fff; border-color: var(--falah-green);
|
background: var(--f-emerald);
|
||||||
|
color: #fff;
|
||||||
|
border-color: var(--f-emerald);
|
||||||
|
box-shadow: 0 2px 8px rgba(10,92,54,0.25);
|
||||||
|
}
|
||||||
|
.falah-dhikr-display {
|
||||||
|
text-align: center;
|
||||||
|
padding: 8px 24px 4px;
|
||||||
|
}
|
||||||
|
.falah-dhikr-arabic {
|
||||||
|
font-size: 2.2rem;
|
||||||
|
font-family: var(--f-font-arabic);
|
||||||
|
direction: rtl;
|
||||||
|
line-height: 1.8;
|
||||||
|
color: var(--f-text);
|
||||||
|
}
|
||||||
|
.falah-dhikr-meaning {
|
||||||
|
font-size: 0.82rem;
|
||||||
|
color: var(--f-text-muted);
|
||||||
|
margin-top: 4px;
|
||||||
|
font-style: italic;
|
||||||
|
font-family: var(--f-font-display);
|
||||||
}
|
}
|
||||||
.falah-dhikr-display { text-align: center; padding: 8px 20px 4px; }
|
|
||||||
.falah-dhikr-arabic { font-size: 2rem; font-family: 'Scheherazade New', 'KFGQPC Uthmanic Script HAFS', serif; direction: rtl; line-height: 1.6; color: var(--falah-text); }
|
|
||||||
.falah-dhikr-meaning { font-size: 0.85rem; color: var(--falah-text-muted); margin-top: 4px; }
|
|
||||||
.falah-counter-circle {
|
.falah-counter-circle {
|
||||||
position: relative; width: 140px; height: 140px;
|
position: relative;
|
||||||
margin: 16px auto 4px;
|
width: 160px; height: 160px;
|
||||||
|
margin: 20px auto 8px;
|
||||||
}
|
}
|
||||||
.falah-counter-circle svg { transform: rotate(-90deg); }
|
.falah-counter-circle svg { transform: rotate(-90deg); }
|
||||||
.falah-ring-bg { fill: none; stroke: var(--falah-border); stroke-width: 8; }
|
.falah-ring-bg {
|
||||||
|
fill: none;
|
||||||
|
stroke: var(--f-border);
|
||||||
|
stroke-width: 6;
|
||||||
|
}
|
||||||
.falah-ring-progress {
|
.falah-ring-progress {
|
||||||
fill: none; stroke: var(--falah-green); stroke-width: 8;
|
fill: none;
|
||||||
|
stroke: url(#falah-ring-gradient);
|
||||||
|
stroke-width: 6;
|
||||||
stroke-linecap: round;
|
stroke-linecap: round;
|
||||||
stroke-dasharray: 314;
|
stroke-dasharray: 314;
|
||||||
stroke-dashoffset: 314;
|
stroke-dashoffset: 314;
|
||||||
transition: stroke-dashoffset 300ms var(--ease-out-expo);
|
transition: stroke-dashoffset var(--f-normal) var(--f-ease);
|
||||||
}
|
}
|
||||||
.falah-counter-number {
|
.falah-counter-number {
|
||||||
position: absolute; inset: 0;
|
position: absolute; inset: 0;
|
||||||
display: flex; align-items: center; justify-content: center;
|
display: flex; flex-direction: column;
|
||||||
font-size: 2.2rem; font-weight: 700; color: var(--falah-text);
|
align-items: center; justify-content: center;
|
||||||
|
font-size: 2.8rem;
|
||||||
|
font-weight: 700;
|
||||||
|
color: var(--f-text);
|
||||||
font-variant-numeric: tabular-nums;
|
font-variant-numeric: tabular-nums;
|
||||||
|
line-height: 1;
|
||||||
|
letter-spacing: -0.02em;
|
||||||
|
}
|
||||||
|
.falah-counter-target {
|
||||||
|
text-align: center;
|
||||||
|
color: var(--f-text-muted);
|
||||||
|
font-size: 0.82rem;
|
||||||
|
margin-bottom: 16px;
|
||||||
|
}
|
||||||
|
.falah-counter-actions {
|
||||||
|
display: flex; gap: 10px;
|
||||||
|
justify-content: center;
|
||||||
|
padding: 0 20px 20px;
|
||||||
}
|
}
|
||||||
.falah-counter-target { text-align: center; color: var(--falah-text-muted); font-size: 0.9rem; margin-bottom: 16px; }
|
|
||||||
.falah-counter-actions { display: flex; gap: 12px; justify-content: center; padding: 0 20px 16px; }
|
|
||||||
.falah-btn-tap {
|
.falah-btn-tap {
|
||||||
flex: 1; max-width: 160px;
|
flex: 1; max-width: 180px;
|
||||||
padding: 14px 24px;
|
padding: 16px 24px;
|
||||||
background: var(--falah-green); color: #fff;
|
background: linear-gradient(135deg, var(--f-emerald) 0%, var(--f-emerald-mid) 100%);
|
||||||
border: none; border-radius: 12px; cursor: pointer;
|
color: #fff;
|
||||||
font-size: 1rem; font-weight: 600;
|
border: none; border-radius: var(--f-radius);
|
||||||
box-shadow: 0 4px 14px rgba(26,122,74,0.3);
|
cursor: pointer; font-size: 1rem; font-weight: 600;
|
||||||
transition: transform 80ms, box-shadow 150ms;
|
font-family: var(--f-font-body);
|
||||||
user-select: none; -webkit-tap-highlight-color: transparent;
|
box-shadow: 0 4px 16px rgba(10,92,54,0.3);
|
||||||
|
transition: transform 80ms, box-shadow var(--f-fast);
|
||||||
|
user-select: none;
|
||||||
|
-webkit-tap-highlight-color: transparent;
|
||||||
|
}
|
||||||
|
.falah-btn-tap:active {
|
||||||
|
transform: scale(0.96);
|
||||||
|
box-shadow: 0 1px 4px rgba(10,92,54,0.2);
|
||||||
}
|
}
|
||||||
.falah-btn-tap:active { transform: scale(0.95); box-shadow: none; }
|
|
||||||
.falah-btn-reset {
|
.falah-btn-reset {
|
||||||
padding: 14px 20px; background: var(--falah-surface);
|
padding: 16px 18px;
|
||||||
color: var(--falah-text-muted); border: 1.5px solid var(--falah-border);
|
background: var(--f-cream);
|
||||||
border-radius: 12px; cursor: pointer; font-size: 0.9rem;
|
color: var(--f-text-muted);
|
||||||
transition: background 150ms;
|
border: 1.5px solid var(--f-border);
|
||||||
|
border-radius: var(--f-radius);
|
||||||
|
cursor: pointer;
|
||||||
|
font-size: 0.875rem;
|
||||||
|
font-family: var(--f-font-body);
|
||||||
|
transition: all var(--f-fast);
|
||||||
}
|
}
|
||||||
.falah-btn-reset:hover { background: #fee2e2; color: #dc2626; border-color: #fecaca; }
|
.falah-btn-reset:hover {
|
||||||
.falah-session-total { text-align: center; padding: 0 20px 16px; font-size: 0.8rem; color: var(--falah-text-muted); min-height: 20px; }
|
background: #FEE2E2;
|
||||||
|
color: #DC2626;
|
||||||
|
border-color: #FECACA;
|
||||||
|
}
|
||||||
|
.falah-session-total {
|
||||||
|
text-align: center;
|
||||||
|
padding: 0 20px 16px;
|
||||||
|
font-size: 0.78rem;
|
||||||
|
color: var(--f-text-muted);
|
||||||
|
min-height: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* SVG gradient definition (injected inline by JS or here as fallback) */
|
||||||
|
.falah-ring-progress { stroke: var(--f-gold); }
|
||||||
|
|
||||||
/* ── Qibla Compass ────────────────────────────────────────────────────────── */
|
/* ── Qibla Compass ────────────────────────────────────────────────────────── */
|
||||||
.falah-qibla-status { padding: 32px; text-align: center; }
|
.falah-qibla-status {
|
||||||
|
padding: 40px 32px;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
.falah-qibla-status p {
|
||||||
|
color: var(--f-text-muted);
|
||||||
|
font-size: 0.9rem;
|
||||||
|
margin-bottom: 20px;
|
||||||
|
}
|
||||||
.falah-btn-locate {
|
.falah-btn-locate {
|
||||||
padding: 12px 28px; background: var(--falah-green); color: #fff;
|
padding: 13px 32px;
|
||||||
border: none; border-radius: 12px; cursor: pointer; font-size: 1rem;
|
background: linear-gradient(135deg, var(--f-emerald) 0%, var(--f-emerald-mid) 100%);
|
||||||
box-shadow: 0 4px 14px rgba(26,122,74,0.3); transition: transform 80ms;
|
color: #fff;
|
||||||
|
border: none; border-radius: var(--f-radius);
|
||||||
|
cursor: pointer; font-size: 0.95rem; font-weight: 600;
|
||||||
|
font-family: var(--f-font-body);
|
||||||
|
box-shadow: 0 4px 16px rgba(10,92,54,0.3);
|
||||||
|
transition: transform 80ms;
|
||||||
}
|
}
|
||||||
.falah-btn-locate:active { transform: scale(0.97); }
|
.falah-btn-locate:active { transform: scale(0.97); }
|
||||||
.falah-qibla-display { padding: 20px; }
|
.falah-qibla-display { padding: 24px 20px; }
|
||||||
.falah-compass-wrap { display: flex; justify-content: center; margin-bottom: 16px; }
|
.falah-compass-wrap {
|
||||||
|
display: flex; justify-content: center;
|
||||||
|
margin-bottom: 20px;
|
||||||
|
}
|
||||||
.falah-compass {
|
.falah-compass {
|
||||||
position: relative; width: 180px; height: 180px;
|
position: relative;
|
||||||
border-radius: 50%; background: radial-gradient(circle at 40% 35%, #f0f4ff, #e8ecf8);
|
width: 200px; height: 200px;
|
||||||
box-shadow: 0 0 0 4px var(--falah-border), var(--falah-shadow-lg);
|
border-radius: 50%;
|
||||||
|
background: radial-gradient(circle at 40% 35%, #F0F4FF, #E4E9F5);
|
||||||
|
box-shadow:
|
||||||
|
0 0 0 1px var(--f-border),
|
||||||
|
0 0 0 8px rgba(200,146,26,0.08),
|
||||||
|
var(--f-shadow-lg);
|
||||||
display: flex; align-items: center; justify-content: center;
|
display: flex; align-items: center; justify-content: center;
|
||||||
}
|
}
|
||||||
.falah-compass-rose { position: absolute; inset: 0; }
|
.falah-compass-rose { position: absolute; inset: 0; }
|
||||||
.falah-dir {
|
.falah-dir {
|
||||||
position: absolute; font-size: 0.75rem; font-weight: 700; color: var(--falah-text-muted);
|
position: absolute;
|
||||||
|
font-size: 0.7rem; font-weight: 700;
|
||||||
|
color: var(--f-text-muted);
|
||||||
|
letter-spacing: 0.05em;
|
||||||
}
|
}
|
||||||
.falah-dir.n { top: 8px; left: 50%; transform: translateX(-50%); }
|
.falah-dir.n { top: 10px; left: 50%; transform: translateX(-50%); color: #DC2626; }
|
||||||
.falah-dir.s { bottom: 8px; left: 50%; transform: translateX(-50%); }
|
.falah-dir.s { bottom: 10px; left: 50%; transform: translateX(-50%); }
|
||||||
.falah-dir.e { right: 10px; top: 50%; transform: translateY(-50%); }
|
.falah-dir.e { right: 12px; top: 50%; transform: translateY(-50%); }
|
||||||
.falah-dir.w { left: 10px; top: 50%; transform: translateY(-50%); }
|
.falah-dir.w { left: 12px; top: 50%; transform: translateY(-50%); }
|
||||||
.falah-needle-kaaba {
|
.falah-needle-kaaba {
|
||||||
font-size: 2rem; transition: transform 0.3s ease-out;
|
font-size: 2.2rem;
|
||||||
|
transition: transform 0.4s var(--f-ease);
|
||||||
transform-origin: center;
|
transform-origin: center;
|
||||||
|
filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
|
||||||
|
}
|
||||||
|
.falah-qibla-info {
|
||||||
|
text-align: center;
|
||||||
|
color: var(--f-text-muted);
|
||||||
|
font-size: 0.875rem;
|
||||||
|
}
|
||||||
|
#falah-qibla-angle {
|
||||||
|
font-size: 1.3rem;
|
||||||
|
font-weight: 700;
|
||||||
|
color: var(--f-emerald);
|
||||||
|
margin-bottom: 4px;
|
||||||
}
|
}
|
||||||
.falah-qibla-info { text-align: center; color: var(--falah-text-muted); font-size: 0.9rem; }
|
|
||||||
#falah-qibla-angle { font-size: 1.2rem; font-weight: 600; color: var(--falah-green); margin-bottom: 4px; }
|
|
||||||
|
|
||||||
/* ── Daily Verse ──────────────────────────────────────────────────────────── */
|
/* ── Daily Verse ──────────────────────────────────────────────────────────── */
|
||||||
.falah-verse-loading { display: flex; justify-content: center; padding: 32px; }
|
.falah-verse-loading {
|
||||||
.falah-verse-content { padding: 24px; }
|
display: flex; justify-content: center; padding: 40px;
|
||||||
.falah-verse-arabic {
|
}
|
||||||
font-family: 'Scheherazade New', 'KFGQPC Uthmanic Script HAFS', serif;
|
.falah-verse-content {
|
||||||
font-size: 1.5rem; line-height: 2; text-align: right;
|
padding: 28px 28px 24px;
|
||||||
color: var(--falah-text); margin-bottom: 16px;
|
}
|
||||||
padding-bottom: 16px; border-bottom: 1px solid var(--falah-border);
|
.falah-verse-arabic {
|
||||||
|
font-family: var(--f-font-arabic);
|
||||||
|
font-size: 1.75rem;
|
||||||
|
line-height: 2.2;
|
||||||
|
text-align: right;
|
||||||
|
color: var(--f-navy);
|
||||||
|
margin-bottom: 20px;
|
||||||
|
padding: 20px 20px 20px 12px;
|
||||||
|
background: linear-gradient(135deg, var(--f-cream) 0%, #F5F0E8 100%);
|
||||||
|
border-radius: var(--f-radius-sm);
|
||||||
|
border-right: 4px solid var(--f-gold);
|
||||||
|
direction: rtl;
|
||||||
|
}
|
||||||
|
.falah-verse-translation {
|
||||||
|
font-family: var(--f-font-display);
|
||||||
|
font-size: 1.1rem;
|
||||||
|
line-height: 1.8;
|
||||||
|
color: var(--f-text);
|
||||||
|
font-style: italic;
|
||||||
|
padding: 0 4px;
|
||||||
|
}
|
||||||
|
.falah-verse-ref {
|
||||||
|
margin-top: 14px;
|
||||||
|
font-size: 0.78rem;
|
||||||
|
color: var(--f-gold);
|
||||||
|
font-weight: 700;
|
||||||
|
letter-spacing: 0.06em;
|
||||||
|
text-transform: uppercase;
|
||||||
|
font-family: var(--f-font-body);
|
||||||
|
font-style: normal;
|
||||||
}
|
}
|
||||||
.falah-verse-translation { font-size: 1rem; line-height: 1.7; color: var(--falah-text); font-style: italic; }
|
|
||||||
.falah-verse-ref { margin-top: 12px; font-size: 0.8rem; color: var(--falah-green); font-weight: 600; }
|
|
||||||
|
|
||||||
/* ── Iframe Widget ────────────────────────────────────────────────────────── */
|
/* ── Iframe Widget ────────────────────────────────────────────────────────── */
|
||||||
.falah-iframe-container { position: relative; height: 600px; }
|
.falah-iframe-container {
|
||||||
|
position: relative; height: 620px;
|
||||||
|
background: var(--f-cream);
|
||||||
|
}
|
||||||
.falah-iframe {
|
.falah-iframe {
|
||||||
width: 100%; height: 100%; border: none; display: block;
|
width: 100%; height: 100%; border: none; display: block;
|
||||||
position: relative; z-index: 2;
|
position: relative; z-index: 2;
|
||||||
}
|
}
|
||||||
.falah-iframe-fallback {
|
.falah-iframe-fallback {
|
||||||
position: absolute; inset: 0; z-index: 1;
|
position: absolute; inset: 0; z-index: 1;
|
||||||
display: flex; flex-direction: column; align-items: center; justify-content: center;
|
display: flex; flex-direction: column;
|
||||||
gap: 12px; background: var(--falah-surface); color: var(--falah-text-muted);
|
align-items: center; justify-content: center;
|
||||||
|
gap: 12px; background: var(--f-cream);
|
||||||
|
color: var(--f-text-muted);
|
||||||
}
|
}
|
||||||
.falah-open-link {
|
.falah-open-link {
|
||||||
color: var(--falah-green); text-decoration: none; font-weight: 500; font-size: 0.9rem;
|
color: var(--f-emerald);
|
||||||
|
text-decoration: none;
|
||||||
|
font-weight: 600;
|
||||||
|
font-size: 0.9rem;
|
||||||
|
padding: 10px 22px;
|
||||||
|
border: 1.5px solid var(--f-emerald);
|
||||||
|
border-radius: var(--f-radius-sm);
|
||||||
|
transition: all var(--f-fast);
|
||||||
|
}
|
||||||
|
.falah-open-link:hover {
|
||||||
|
background: var(--f-emerald);
|
||||||
|
color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ── Dashboard ────────────────────────────────────────────────────────────── */
|
/* ── Dashboard ────────────────────────────────────────────────────────────── */
|
||||||
.falah-dashboard { padding: 4px 0; }
|
.falah-dashboard { padding: 4px 0; }
|
||||||
.falah-dashboard-header { margin-bottom: 24px; }
|
.falah-dashboard-header { margin-bottom: 28px; }
|
||||||
.falah-dashboard-header h2 { font-size: 1.6rem; font-weight: 700; margin: 0 0 4px; }
|
.falah-dashboard-header h2 {
|
||||||
.falah-dashboard-date { color: var(--falah-text-muted); margin: 0; font-size: 0.9rem; }
|
font-family: var(--f-font-display);
|
||||||
|
font-size: 2rem;
|
||||||
|
font-weight: 600;
|
||||||
|
margin: 0 0 4px;
|
||||||
|
color: var(--f-navy);
|
||||||
|
letter-spacing: -0.02em;
|
||||||
|
}
|
||||||
|
.falah-dashboard-date {
|
||||||
|
color: var(--f-text-muted);
|
||||||
|
margin: 0;
|
||||||
|
font-size: 0.875rem;
|
||||||
|
font-family: var(--f-font-display);
|
||||||
|
font-style: italic;
|
||||||
|
}
|
||||||
.falah-dashboard-grid {
|
.falah-dashboard-grid {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
||||||
gap: 16px; margin-bottom: 28px;
|
gap: 16px;
|
||||||
|
margin-bottom: 32px;
|
||||||
}
|
}
|
||||||
.falah-dash-card {
|
.falah-dash-card {
|
||||||
background: #fff; border-radius: var(--falah-radius);
|
background: var(--f-surface);
|
||||||
box-shadow: var(--falah-shadow); padding: 20px;
|
border-radius: var(--f-radius);
|
||||||
|
box-shadow: var(--f-shadow);
|
||||||
|
padding: 20px;
|
||||||
display: flex; gap: 16px; align-items: flex-start;
|
display: flex; gap: 16px; align-items: flex-start;
|
||||||
border-left: 4px solid var(--falah-green);
|
border: 1px solid var(--f-border);
|
||||||
|
position: relative; overflow: hidden;
|
||||||
|
transition: box-shadow var(--f-normal) var(--f-ease), transform var(--f-normal) var(--f-ease);
|
||||||
|
}
|
||||||
|
.falah-dash-card::before {
|
||||||
|
content: '';
|
||||||
|
position: absolute;
|
||||||
|
top: 0; left: 0;
|
||||||
|
width: 3px; height: 100%;
|
||||||
|
background: linear-gradient(180deg, var(--f-gold) 0%, var(--f-emerald) 100%);
|
||||||
|
}
|
||||||
|
.falah-dash-card:hover {
|
||||||
|
box-shadow: var(--f-shadow-lg);
|
||||||
|
transform: translateY(-2px);
|
||||||
|
}
|
||||||
|
.falah-dash-card-icon {
|
||||||
|
font-size: 1.75rem; flex-shrink: 0;
|
||||||
|
width: 44px; height: 44px;
|
||||||
|
display: flex; align-items: center; justify-content: center;
|
||||||
|
background: var(--f-emerald-light);
|
||||||
|
border-radius: var(--f-radius-sm);
|
||||||
|
}
|
||||||
|
.falah-dash-card-label {
|
||||||
|
font-size: 0.7rem;
|
||||||
|
text-transform: uppercase;
|
||||||
|
letter-spacing: 0.08em;
|
||||||
|
color: var(--f-text-muted);
|
||||||
|
margin-bottom: 6px;
|
||||||
|
font-weight: 600;
|
||||||
|
}
|
||||||
|
.falah-dash-card-value {
|
||||||
|
font-size: 1.05rem;
|
||||||
|
font-weight: 700;
|
||||||
|
line-height: 1.3;
|
||||||
|
color: var(--f-text);
|
||||||
|
}
|
||||||
|
.falah-dash-card-sub {
|
||||||
|
font-size: 0.78rem;
|
||||||
|
color: var(--f-text-muted);
|
||||||
|
margin-top: 3px;
|
||||||
}
|
}
|
||||||
.falah-dash-card-icon { font-size: 1.8rem; flex-shrink: 0; }
|
|
||||||
.falah-dash-card-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--falah-text-muted); margin-bottom: 6px; }
|
|
||||||
.falah-dash-card-value { font-size: 1.1rem; font-weight: 600; line-height: 1.3; }
|
|
||||||
.falah-dash-card-sub { font-size: 0.8rem; color: var(--falah-text-muted); margin-top: 2px; }
|
|
||||||
.falah-dashboard-links {
|
.falah-dashboard-links {
|
||||||
display: flex; flex-wrap: wrap; gap: 12px;
|
display: flex; flex-wrap: wrap; gap: 10px;
|
||||||
}
|
}
|
||||||
.falah-dash-link {
|
.falah-dash-link {
|
||||||
padding: 10px 18px; background: #fff; border-radius: 10px;
|
padding: 10px 18px;
|
||||||
box-shadow: var(--falah-shadow); text-decoration: none;
|
background: var(--f-surface);
|
||||||
color: var(--falah-text); font-size: 0.9rem; font-weight: 500;
|
border-radius: var(--f-radius-sm);
|
||||||
transition: box-shadow 150ms, transform 150ms;
|
box-shadow: var(--f-shadow);
|
||||||
border: 1px solid var(--falah-border);
|
text-decoration: none;
|
||||||
|
color: var(--f-text);
|
||||||
|
font-size: 0.875rem;
|
||||||
|
font-weight: 500;
|
||||||
|
transition: all var(--f-fast) var(--f-ease);
|
||||||
|
border: 1px solid var(--f-border);
|
||||||
|
}
|
||||||
|
.falah-dash-link:hover {
|
||||||
|
box-shadow: var(--f-shadow-gold);
|
||||||
|
transform: translateY(-2px);
|
||||||
|
color: var(--f-gold);
|
||||||
|
border-color: var(--f-border-gold);
|
||||||
|
background: var(--f-gold-light);
|
||||||
}
|
}
|
||||||
.falah-dash-link:hover { box-shadow: var(--falah-shadow-lg); transform: translateY(-2px); color: var(--falah-green); }
|
|
||||||
|
|
||||||
|
/* ── Responsive ───────────────────────────────────────────────────────────── */
|
||||||
@media (max-width: 600px) {
|
@media (max-width: 600px) {
|
||||||
.falah-prayer-grid { grid-template-columns: repeat(3, 1fr); }
|
.falah-prayer-grid { grid-template-columns: repeat(3, 1fr); }
|
||||||
.falah-dashboard-grid { grid-template-columns: 1fr 1fr; }
|
.falah-dashboard-grid { grid-template-columns: 1fr 1fr; }
|
||||||
.falah-iframe-container { height: 500px; }
|
.falah-iframe-container { height: 520px; }
|
||||||
|
.falah-counter-circle { width: 140px; height: 140px; }
|
||||||
|
.falah-counter-number { font-size: 2.2rem; }
|
||||||
|
.falah-compass { width: 180px; height: 180px; }
|
||||||
|
.falah-verse-arabic { font-size: 1.45rem; }
|
||||||
|
.falah-dashboard-header h2 { font-size: 1.6rem; }
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user