:root {
  --bg-deep: #1e1208;
  --bg-card: rgba(38, 23, 12, 0.78);
  --bg-card-hover: rgba(48, 29, 15, 0.88);
  --border-card: rgba(243, 189, 129, 0.18);
  --border-focus: rgba(232, 149, 82, 0.45);

  --text-main: #fbf5ee;
  --text-muted: rgba(251, 245, 238, 0.65);
  --text-faint: rgba(251, 245, 238, 0.45);

  --accent-rust: #c8581e;
  --accent-rust-hover: #db6525;
  --accent-apricot: #f0ab72;

  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-deep);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.6;
  position: relative;
}

/* Fixed Poster Background */
.fixed-bg {
  position: fixed;
  inset: 0;
  z-index: -10;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  background-image: linear-gradient(180deg, rgba(30, 18, 8, 0.70) 0%, rgba(30, 18, 8, 0.94) 100%),
                    url('assets/mobile.png');
  pointer-events: none;
}

@media (min-width: 768px) {
  .fixed-bg {
    background-image: linear-gradient(180deg, rgba(30, 18, 8, 0.74) 0%, rgba(30, 18, 8, 0.95) 100%),
                      url('assets/desktop.png');
  }
}

/* Page Container */
.page-container {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
}

/* Hero Section Focused on Prayer */
.hero {
  text-align: center;
  margin-bottom: 2.25rem;
}

.title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--text-main);
  line-height: 1.15;
  margin-bottom: 0.35rem;
}

.subtitle {
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--accent-apricot);
  letter-spacing: 0.02em;
  margin-bottom: 1.75rem;
}

/* Total Counter Box */
.total-box {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: 1.25rem 2.25rem;
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  min-width: 220px;
}

.total-label {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.total-number {
  font-family: var(--font-heading);
  font-size: 3.25rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1;
}

/* Prayers List */
.prayers-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

/* Prayer Card */
.prayer-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.25rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.prayer-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-focus);
}

.card-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.card-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
}

.card-count {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* +1 Button */
.btn-plus-one {
  background: var(--accent-rust);
  color: var(--text-main);
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.6rem 1.15rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.1s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-plus-one:hover {
  background: var(--accent-rust-hover);
}

.btn-plus-one:active {
  transform: scale(0.96);
}

/* Collapsible Prayer Text */
.drawer-toggle {
  background: transparent;
  border: none;
  color: var(--text-faint);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  margin-top: 0.65rem;
  padding: 0;
  transition: color 0.15s ease;
}

.drawer-toggle:hover {
  color: var(--text-muted);
}

.drawer-content {
  display: none;
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(243, 189, 129, 0.1);
  font-size: 0.9rem;
  line-height: 1.65;
  color: rgba(251, 245, 238, 0.85);
  white-space: pre-line;
}

.drawer-content.open {
  display: block;
}

/* Site Footer */
.site-footer {
  margin-top: 3.5rem;
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(243, 189, 129, 0.12);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.event-details {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.event-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-apricot);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  color: var(--text-faint);
}

.sep {
  opacity: 0.35;
}

.footer-contacts {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.45rem;
}

.footer-contacts a {
  color: var(--text-main);
  text-decoration: none;
  border-bottom: 1px dotted var(--text-muted);
}

.footer-contacts a:hover {
  color: var(--accent-apricot);
  border-bottom-style: solid;
}

/* Subtle Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: rgba(28, 16, 7, 0.94);
  color: var(--text-main);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 0.55rem 1.15rem;
  font-size: 0.85rem;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 100;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
