/* ==========================================
   MODERN SANCTUARY - DESIGN SYSTEM
   ========================================== */

:root {
  /* Palette: Serene, Premium, Earthy */
  --color-bg: #FDFBF7;
  /* Warm Cream */
  --color-surface: #FFFFFF;
  --color-surface-glass: rgba(255, 255, 255, 0.7);

  --color-primary: #1A2634;
  /* Darker, richer Charcoal */
  --color-secondary: #7F8C8D;
  /* Cool Grey */
  --color-accent: #D4AF37;
  /* True Gold */
  --color-accent-light: #F3E5AB;
  /* Champagne */

  --color-text-main: #2C2C2C;
  --color-text-muted: #555555;
  --color-text-light: #888888;

  --color-border: rgba(0, 0, 0, 0.08);

  /* Typography */
  --font-heading: 'Cormorant Garamond', serif;
  --font-body: 'Montserrat', sans-serif;

  /* Spacing */
  --container-width: 1200px;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 8rem;

  /* Effects */
  --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 12px 40px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 25px 80px rgba(0, 0, 0, 0.12);
  --radius-sm: 8px;
  --radius-md: 20px;
  --radius-lg: 40px;

  --transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ==========================================
   RESET & BASE
   ========================================== */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  background-image: radial-gradient(circle at 50% 0%, #fffbf0 0%, var(--color-bg) 70%);
  color: var(--color-text-main);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-primary);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ==========================================
   UTILITIES
   ========================================== */

.container {
  width: 90%;
  max-width: var(--container-width);
  margin: 0 auto;
}

.section {
  padding: var(--space-xl) 0;
}

.text-center {
  text-align: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: var(--transition);
  cursor: pointer;
  gap: 0.5rem;
}

.btn-primary {
  background-color: var(--color-primary);
  color: white;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background-color: #1a252f;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  background: transparent;
}

.btn-outline:hover {
  background-color: var(--color-primary);
  color: white;
}

.btn-text {
  color: var(--color-accent);
  font-weight: 600;
  padding: 0;
}

.btn-text:hover {
  color: var(--color-primary);
}

.btn-sm {
  padding: 0.75rem 1.5rem;
  font-size: 0.8rem;
}

.btn-lg {
  padding: 1.25rem 3rem;
  font-size: 1rem;
}

/* ==========================================
   NAVIGATION
   ========================================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.5rem 0;
  transition: var(--transition);
  background: rgba(253, 251, 247, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: -0.02em;
}

.admin-toggle {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--color-text-muted);
  transition: var(--transition);
  padding: 0.5rem;
  border-radius: 50%;
}

.admin-toggle:hover,
.admin-toggle.active {
  color: var(--color-primary);
  background: rgba(0, 0, 0, 0.05);
}

/* ==========================================
   HERO SECTION
   ========================================== */

.hero {
  height: 100vh;
  min-height: 700px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #2C3E50;
  background-image: url('hero_bible_study_sanctuary.png');
  background-size: cover;
  background-position: center;
  z-index: 0;
  filter: brightness(0.85);
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  animation: fadeUp 1s ease-out;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-subtitle {
  display: block;
  font-family: var(--font-body);
  font-size: 1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 5rem);
  margin-bottom: 2rem;
  color: white;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.hero-verse {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-style: italic;
  margin-bottom: 0.5rem;
  opacity: 0.95;
}

.hero-reference {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-bottom: 3rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.hero-actions .btn-outline {
  color: white;
  border-color: rgba(255, 255, 255, 0.5);
}

.hero-actions .btn-outline:hover {
  background: white;
  color: var(--color-primary);
  border-color: white;
}

/* Discussion Hero Specifics */
.discussion-hero .hero-background {
  background-image: url('discussion_header_community.png');
}

.discussion-hero .hero-title {
  font-size: clamp(3rem, 7vw, 5rem);
  background: linear-gradient(to right, #ffffff, #e0c3fc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  margin-bottom: 1.5rem;
}

.discussion-hero {
  min-height: 60vh;
  height: 60vh;
  display: flex;
  align-items: center;
  margin-top: 85px;
  /* Offset for fixed navbar */
}

.discussion-section-padding {
  padding-top: var(--space-md);
}

/* Scroll Indicator */
.scroll-indicator {
  margin-top: 4rem;
  animation: bounce 2s infinite;
  opacity: 0.8;
}

.scroll-indicator a {
  color: white;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.scroll-indicator a:hover {
  opacity: 1;
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-10px);
  }

  60% {
    transform: translateY(-5px);
  }
}

/* ==========================================
   SECTIONS GENERAL
   ========================================== */

.section-header {
  margin-bottom: var(--space-lg);
  text-align: center;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--color-text-muted);
  font-size: 1.1rem;
}

.divider {
  width: 60px;
  height: 2px;
  background: var(--color-accent);
  margin: 1.5rem auto;
}

/* ==========================================
   GATHERING SECTION
   ========================================== */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: white;
  padding: 3rem 2rem;
  border-radius: var(--radius-md);
  text-align: center;
  transition: var(--transition);
  border: 1px solid var(--color-border);
}

.feature-card:hover {
  transform: translateY(-15px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(212, 175, 55, 0.3);
}

.icon-wrapper {
  width: 80px;
  height: 80px;
  background: rgba(192, 160, 98, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--color-accent);
}

.feature-card h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.feature-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* ==========================================
   ZOOM SECTION
   ========================================== */

.zoom-section {
  background-color: #F5F3F0;
  position: relative;
  overflow: hidden;
}

.zoom-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(192, 160, 98, 0.05) 0%, transparent 70%);
  border-radius: 50%;
}

.glass-card {
  background: var(--color-surface-glass);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-radius: var(--radius-lg);
  padding: 0;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.6);
  overflow: hidden;
}

.card-content-wrapper {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
}

@media (max-width: 900px) {
  .card-content-wrapper {
    grid-template-columns: 1fr;
  }
}

.zoom-info {
  padding: 4rem;
}

.tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(44, 62, 80, 0.05);
  color: var(--color-primary);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.zoom-intro {
  margin-bottom: 2rem;
  color: var(--color-text-muted);
}

.notice-wrapper {
  background: #2C3E50;
  color: white;
  padding: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.notice-wrapper h3 {
  color: white;
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.notice-content {
  font-size: 1.1rem;
  line-height: 1.6;
  opacity: 0.9;
  font-style: italic;
  font-family: var(--font-heading);
}

/* ==========================================
   RESOURCES SECTION
   ========================================== */

.resources-container {
  background: white;
  border-radius: var(--radius-md);
  padding: 3rem;
  box-shadow: var(--shadow-sm);
  min-height: 300px;
}

.loading-state,
.error-state {
  text-align: center;
  padding: 3rem;
  color: var(--color-text-muted);
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(0, 0, 0, 0.1);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.files-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.file-item {
  display: flex;
  align-items: center;
  padding: 1rem;
  background: var(--color-bg);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  border: 1px solid transparent;
}

.file-item:hover {
  background: white;
  box-shadow: var(--shadow-sm);
  border-color: var(--color-accent);
  transform: translateY(-2px);
}

.file-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
  font-size: 0.9rem;
  width: 100%;
}

.file-link::before {
  content: var(--file-icon);
  font-size: 1.25rem;
}

.drive-access {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

/* ==========================================
   PRAYER SECTION
   ========================================== */

.prayer-section {
  background: white;
}

.prayer-controls {
  text-align: center;
  margin-bottom: 3rem;
}

.prayer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.prayer-request-item {
  background: var(--color-bg);
  padding: 2rem;
  border-radius: var(--radius-md);
  position: relative;
  transition: var(--transition);
}

.prayer-request-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  background: white;
}

.prayer-request-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.prayer-member-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-primary);
}

.prayer-date {
  font-size: 0.8rem;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.prayer-request-content {
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.8;
}

/* ==========================================
   FOOTER
   ========================================== */

.footer {
  background: var(--color-primary);
  color: white;
  padding: 4rem 0;
  text-align: center;
}

.copyright {
  opacity: 0.6;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.verse-footer {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.25rem;
  opacity: 0.8;
}

/* ==========================================
   MODALS
   ========================================== */

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: all;
}

.modal-window {
  background: white;
  width: 90%;
  max-width: 400px;
  padding: 2.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  transition: var(--transition);
}

.modal-backdrop.active .modal-window {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.modal-header h3 {
  margin: 0;
  font-size: 1.5rem;
}

.close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-text-light);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.1);
}

.error-message {
  color: var(--color-error);
  font-size: 0.85rem;
  margin-top: 0.5rem;
  display: none;
}

.error-message.active {
  display: block;
  color: #e74c3c;
}

/* ==========================================
   EDIT MODE
   ========================================== */

.edit-mode .editable {
  border: 1px dashed var(--color-accent);
  background: rgba(192, 160, 98, 0.05);
  cursor: text;
  padding: 0.5rem;
  border-radius: 4px;
}

.edit-mode .editable:hover {
  background: rgba(192, 160, 98, 0.1);
}

/* NAV LINKS IN HEADER */
.nav-links {
  margin-left: 2rem;
}

.nav-links .btn-sm {
  font-size: 0.75rem;
}

/* DISCUSSION BOARD EXTRA STYLES */
.discussion-userbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding: 1rem 1.5rem;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  gap: 1rem;
}

.discussion-form-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  margin-bottom: 2rem;
}

.discussion-form-card h3 {
  margin-bottom: 1rem;
}

.discussion-controls {
  margin-top: 1rem;
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

.drive-folder-link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--color-accent);
  font-weight: 600;
  transition: var(--transition);
}

.drive-folder-link:hover {
  color: var(--color-primary);
  text-decoration: none;
}



.discussion-edit-btn,
.discussion-delete-btn {
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
}

/* === Discussion Board – modern input styling === */

.discussion-form-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 1.75rem 2rem;
  border: 1px solid rgba(148, 163, 184, 0.5);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
  margin-bottom: 2rem;
}

.discussion-form-card h3 {
  margin-bottom: 0.75rem;
}

/* Textarea */
#commentText {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.8);
  background: #f9fafb;
  padding: 0.9rem 1rem;
  resize: vertical;
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #0f172a;
  transition: all 0.18s ease;
  min-height: 80px;
}

#commentText::placeholder {
  color: #9ca3af;
}

/* Focus effect */
#commentText:focus {
  outline: none;
  background: #ffffff;
  border-color: #4f46e5;
  box-shadow:
    0 0 0 1px rgba(79, 70, 229, 0.55),
    0 12px 30px rgba(79, 70, 229, 0.20);
}

/* Align the submit button to the right */
#commentForm {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

#commentForm .btn.btn-primary.btn-sm {
  align-self: flex-end;
}

/* Optional: smaller note text under the box (if you add it later) */
.discussion-input-hint {
  font-size: 0.75rem;
  color: #9ca3af;
  margin-top: 0.15rem;
}