/* Turning Point Church Website - Royal Blue & Gold Design */
/* Large text and high contrast for accessibility */

:root {
  --royal-blue-primary: #1e3a8a;      /* Deep royal blue */
  --royal-blue-secondary: #3b82f6;    /* Medium royal blue */
  --royal-blue-light: #60a5fa;        /* Light royal blue */
  --royal-blue-dark: #1e40af;         /* Dark royal blue */
  --church-gold: #fbbf24;             /* Rich gold */
  --church-gold-light: #fcd34d;       /* Light gold */
  --church-gold-dark: #d97706;        /* Dark gold */
  --church-cream: #fef3c7;            /* Cream background */
  --text-primary: #1f2937;            /* Dark text */
  --text-secondary: #4b5563;          /* Medium text */
  --text-light: #ffffff;              /* White text */
  --background-primary: #f8fafc;      /* Light background */
  --background-secondary: #e2e8f0;    /* Secondary background */
}

/* Base typography - EXTRA LARGE for elderly accessibility */
body {
  font-size: 22px; /* Much larger base font size */
  line-height: 1.7; /* Better line spacing */
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 500; /* Slightly bolder for better visibility */
}

/* EXTRA LARGE headings for better readability */
h1 { font-size: 4.5rem; font-weight: 800; line-height: 1.2; }
h2 { font-size: 3.75rem; font-weight: 700; line-height: 1.3; }
h3 { font-size: 3rem; font-weight: 700; line-height: 1.3; }
h4 { font-size: 2.5rem; font-weight: 600; line-height: 1.4; }
h5 { font-size: 2rem; font-weight: 600; line-height: 1.4; }
h6 { font-size: 1.75rem; font-weight: 600; line-height: 1.4; }

/* Paragraph text - MUCH larger for readability */
p { font-size: 1.5rem; line-height: 1.8; margin-bottom: 1rem; font-weight: 500; }
.text-lead { font-size: 1.75rem; line-height: 1.8; font-weight: 600; }
.text-large { font-size: 1.625rem; line-height: 1.7; font-weight: 500; }

/* Custom animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes goldShimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Page load animation */
.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* Hero section with royal blue and gold gradient */
.hero-gradient {
  background: linear-gradient(135deg, var(--royal-blue-primary) 0%, var(--royal-blue-secondary) 50%, var(--church-gold) 100%);
  min-height: 500px;
}

/* Header styling */
.church-header {
  background: linear-gradient(90deg, var(--royal-blue-primary), var(--royal-blue-dark));
  color: var(--text-light);
  padding: 1.5rem 0;
  box-shadow: 0 4px 20px rgba(30, 58, 138, 0.3);
}

/* Navigation links - LARGER for elderly users */
.nav-link {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-light);
  transition: all 0.3s ease;
}

.nav-link:hover {
  color: var(--church-gold);
  transform: translateY(-2px);
}

/* Button styles with royal blue and gold - LARGER TEXT */
.btn-primary {
  background: linear-gradient(45deg, var(--royal-blue-primary), var(--royal-blue-secondary));
  color: var(--text-light);
  font-size: 1.5rem;
  font-weight: 800;
  padding: 1.5rem 2.5rem;
  border-radius: 12px;
  border: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(30, 58, 138, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(45deg, var(--royal-blue-dark), var(--royal-blue-primary));
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(30, 58, 138, 0.4);
}

.btn-secondary {
  background: transparent;
  border: 3px solid var(--church-gold);
  color: var(--text-light);
  font-size: 1.5rem;
  font-weight: 800;
  padding: 1.5rem 2.5rem;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: var(--church-gold);
  color: var(--royal-blue-primary);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(251, 191, 36, 0.4);
}

.btn-gold {
  background: linear-gradient(45deg, var(--church-gold), var(--church-gold-light));
  color: var(--royal-blue-primary);
  font-size: 1.5rem;
  font-weight: 800;
  padding: 1.5rem 2.5rem;
  border-radius: 12px;
  border: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
}

.btn-gold:hover {
  background: linear-gradient(45deg, var(--church-gold-dark), var(--church-gold));
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(251, 191, 36, 0.4);
}

.btn-donate {
  background: linear-gradient(45deg, var(--church-gold), var(--church-gold-light));
  color: var(--royal-blue-primary);
  font-size: 1.125rem;
  font-weight: 700;
  padding: 0.875rem 1.75rem;
  border-radius: 10px;
  border: none;
  transition: all 0.3s ease;
}

.btn-donate:hover {
  background: linear-gradient(45deg, var(--church-gold-dark), var(--church-gold));
  transform: translateY(-2px);
}

/* Card styles with royal blue accents */
.church-card {
  background: var(--text-light);
  border: 1px solid var(--background-secondary);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 8px 30px rgba(30, 58, 138, 0.1);
  transition: all 0.3s ease;
}

.church-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(30, 58, 138, 0.2);
  border-color: var(--church-gold);
}

.church-card h3 {
  color: var(--royal-blue-primary);
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.church-card p {
  font-size: 1.125rem;
  color: var(--text-secondary);
}

/* Sermon and event cards */
.sermon-card {
  border-left: 6px solid var(--royal-blue-primary);
  background: var(--text-light);
  padding: 1.5rem;
  margin-bottom: 1rem;
  border-radius: 0 12px 12px 0;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(30, 58, 138, 0.1);
}

.sermon-card:hover {
  background: var(--church-cream);
  border-left-color: var(--church-gold);
  transform: translateX(8px);
  box-shadow: 0 8px 25px rgba(30, 58, 138, 0.15);
}

.sermon-card h4 {
  font-size: 1.375rem;
  color: var(--royal-blue-primary);
  margin-bottom: 0.5rem;
}

.sermon-card p {
  font-size: 1.125rem;
  color: var(--text-secondary);
}

.event-card {
  border-left: 6px solid var(--church-gold);
  background: var(--text-light);
  padding: 1.5rem;
  margin-bottom: 1rem;
  border-radius: 0 12px 12px 0;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(251, 191, 36, 0.1);
}

.event-card:hover {
  background: var(--church-cream);
  border-left-color: var(--royal-blue-primary);
  transform: translateX(8px);
  box-shadow: 0 8px 25px rgba(251, 191, 36, 0.15);
}

.event-card h4 {
  font-size: 1.375rem;
  color: var(--church-gold-dark);
  margin-bottom: 0.5rem;
}

.event-card p {
  font-size: 1.125rem;
  color: var(--text-secondary);
}

/* Chat styles with royal blue theme */
.chat-container {
  background: var(--text-light);
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(30, 58, 138, 0.15);
  overflow: hidden;
  border: 2px solid var(--royal-blue-light);
}

.chat-messages {
  height: 400px;
  overflow-y: auto;
  padding: 1.5rem;
  background: linear-gradient(to bottom, var(--background-primary), var(--text-light));
  scroll-behavior: smooth;
}

.chat-bubble-user {
  background: linear-gradient(45deg, var(--royal-blue-primary), var(--royal-blue-secondary));
  color: var(--text-light);
  padding: 1rem 1.5rem;
  border-radius: 20px 20px 5px 20px;
  font-size: 1.125rem;
  max-width: 80%;
  margin-left: auto;
  margin-bottom: 1rem;
  box-shadow: 0 4px 15px rgba(30, 58, 138, 0.3);
}

.chat-bubble-bot {
  background: linear-gradient(45deg, var(--church-gold-light), var(--church-cream));
  color: var(--royal-blue-primary);
  padding: 1rem 1.5rem;
  border-radius: 20px 20px 20px 5px;
  font-size: 1.125rem;
  max-width: 80%;
  margin-bottom: 1rem;
  box-shadow: 0 4px 15px rgba(251, 191, 36, 0.2);
  border: 1px solid var(--church-gold);
}

.chat-input {
  padding: 1rem;
  font-size: 1.125rem;
  border: 2px solid var(--royal-blue-light);
  border-radius: 12px;
  outline: none;
  transition: all 0.3s ease;
}

.chat-input:focus {
  border-color: var(--church-gold);
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.1);
}

.chat-send {
  background: linear-gradient(45deg, var(--royal-blue-primary), var(--royal-blue-secondary));
  color: var(--text-light);
  font-size: 1.125rem;
  font-weight: 700;
  padding: 1rem 2rem;
  border: none;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.chat-send:hover {
  background: linear-gradient(45deg, var(--royal-blue-dark), var(--royal-blue-primary));
  transform: translateY(-2px);
}

/* Modal styles */
.modal-overlay {
  background: rgba(30, 58, 138, 0.8);
  backdrop-filter: blur(5px);
}

.modal-content {
  background: var(--text-light);
  border-radius: 20px;
  box-shadow: 0 25px 50px rgba(30, 58, 138, 0.3);
  border: 2px solid var(--church-gold);
  max-width: 600px;
}

.modal-header {
  background: linear-gradient(90deg, var(--royal-blue-primary), var(--royal-blue-secondary));
  color: var(--text-light);
  padding: 1.5rem 2rem;
  border-radius: 18px 18px 0 0;
}

.modal-header h2 {
  font-size: 1.875rem;
  font-weight: 700;
  margin: 0;
}

.modal-body {
  padding: 2rem;
}

/* Form styles */
.form-input, .form-textarea, .form-select {
  font-size: 1.125rem;
  padding: 1rem;
  border: 2px solid var(--background-secondary);
  border-radius: 12px;
  transition: all 0.3s ease;
  width: 100%;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--royal-blue-primary);
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
  outline: none;
}

.form-label {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--royal-blue-primary);
  margin-bottom: 0.5rem;
  display: block;
}

/* Donation form styles */
.donation-type {
  background: var(--background-primary);
  border: 3px solid var(--background-secondary);
  padding: 1.5rem;
  border-radius: 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.donation-type:hover {
  border-color: var(--royal-blue-light);
  background: var(--church-cream);
}

.donation-type.selected {
  border-color: var(--church-gold);
  background: var(--church-cream);
  box-shadow: 0 4px 20px rgba(251, 191, 36, 0.3);
}

.donation-type .font-semibold {
  font-size: 1.25rem;
  color: var(--royal-blue-primary);
}

.amount-btn {
  background: var(--background-primary);
  border: 2px solid var(--royal-blue-light);
  padding: 0.875rem 1.5rem;
  border-radius: 10px;
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.amount-btn:hover {
  border-color: var(--church-gold);
  background: var(--church-cream);
}

.amount-btn.selected {
  background: var(--royal-blue-primary);
  color: var(--text-light);
  border-color: var(--royal-blue-primary);
}

/* Footer styles */
.church-footer {
  background: linear-gradient(135deg, var(--royal-blue-primary), var(--royal-blue-dark));
  color: var(--text-light);
  padding: 3rem 0;
}

.church-footer h3, .church-footer h4 {
  color: var(--church-gold);
  font-size: 1.375rem;
  margin-bottom: 1rem;
}

.church-footer p, .church-footer li {
  font-size: 1.125rem;
  line-height: 1.7;
}

.footer-link {
  color: var(--text-light);
  transition: all 0.3s ease;
  font-size: 1.125rem;
}

.footer-link:hover {
  color: var(--church-gold);
  text-decoration: none;
}

/* Special elements */
.bible-verse {
  font-style: italic;
  color: var(--royal-blue-primary);
  border-left: 4px solid var(--church-gold);
  padding: 1rem 1.5rem;
  background: var(--church-cream);
  border-radius: 0 12px 12px 0;
  font-size: 1.25rem;
  line-height: 1.8;
}

.scripture-reference {
  font-size: 1rem;
  font-weight: 600;
  color: var(--church-gold-dark);
}

.prayer-count {
  background: var(--church-cream);
  color: var(--royal-blue-primary);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 1rem;
  font-weight: 600;
  border: 1px solid var(--church-gold);
}

/* Event type badges with royal blue and gold */
.event-type-badge {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 1rem;
  font-weight: 600;
}

.event-type-badge.service {
  background: var(--royal-blue-light);
  color: var(--text-light);
}

.event-type-badge.fellowship {
  background: var(--church-gold);
  color: var(--royal-blue-primary);
}

.event-type-badge.study {
  background: var(--royal-blue-primary);
  color: var(--text-light);
}

.event-type-badge.feast_day {
  background: var(--church-gold-light);
  color: var(--royal-blue-primary);
}

.event-type-badge.outreach {
  background: var(--church-gold-dark);
  color: var(--text-light);
}

/* Enhanced mobile design - EXTRA LARGE fonts for elderly users */
@media (max-width: 768px) {
  /* EXTRA LARGE base font size for mobile */
  body { font-size: 24px; }
  
  /* MASSIVE headings on mobile for better readability */
  h1 { font-size: 4rem; }
  h2 { font-size: 3.5rem; }
  h3 { font-size: 3rem; }
  h4 { font-size: 2.5rem; }
  p { font-size: 1.5rem; }
  .text-lead { font-size: 1.75rem; }
  
  /* EXTRA LARGE, more touch-friendly buttons */
  .btn-primary, .btn-secondary, .btn-gold {
    font-size: 1.75rem;
    font-weight: 800;
    padding: 2rem 3rem;
    border-radius: 16px;
    margin: 0.75rem 0;
    min-height: 80px;
  }
  
  /* Larger chat bubbles for better readability */
  .chat-bubble-user, .chat-bubble-bot {
    font-size: 1.125rem;
    max-width: 90%;
    padding: 1.25rem 1.75rem;
    line-height: 1.6;
  }
  
  /* Larger input fields */
  .chat-input {
    font-size: 1.125rem;
    padding: 1.25rem;
    min-height: 60px;
  }
  
  .chat-send {
    font-size: 1.125rem;
    padding: 1.25rem 2rem;
    min-height: 60px;
  }
  
  /* Enhanced modal for mobile */
  .modal-content {
    margin: 0.5rem;
    max-width: calc(100% - 1rem);
    border-radius: 16px;
  }
  
  /* Larger form inputs on mobile */
  .form-input, .form-textarea, .form-select {
    font-size: 1.125rem;
    padding: 1.25rem;
    min-height: 60px;
  }
  
  /* Better spacing for cards */
  .church-card {
    padding: 2.5rem 2rem;
    margin-bottom: 2rem;
  }
  
  /* Larger navigation menu for mobile */
  .nav-link {
    font-size: 1.25rem;
    padding: 1rem;
  }
  
  /* Mobile header improvements */
  .church-header {
    padding: 2rem 0;
  }
  
  /* Hero section mobile optimization */
  .hero-gradient {
    padding: 3rem 0;
    min-height: 400px;
  }
  
  /* Footer text size increase */
  .church-footer p, .church-footer li {
    font-size: 1.125rem;
  }
}

/* High contrast mode for accessibility */
@media (prefers-contrast: high) {
  :root {
    --royal-blue-primary: #000080;
    --church-gold: #FFD700;
    --text-primary: #000000;
    --text-light: #FFFFFF;
  }
  
  .btn-primary, .btn-secondary {
    border: 3px solid;
  }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom scrollbar with royal blue theme */
.custom-scrollbar::-webkit-scrollbar {
  width: 12px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: var(--background-primary);
  border-radius: 6px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, var(--royal-blue-primary), var(--church-gold));
  border-radius: 6px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, var(--royal-blue-dark), var(--church-gold-dark));
}

/* Gold shimmer animation for special elements */
.gold-shimmer {
  background: linear-gradient(90deg, var(--church-gold) 25%, var(--church-gold-light) 50%, var(--church-gold) 75%);
  background-size: 200% 100%;
  animation: goldShimmer 2s infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Additional mobile-first accessibility enhancements */
@media (max-width: 480px) {
  /* Extra small devices - MASSIVE text */
  body { font-size: 26px; }
  h1 { font-size: 3.5rem; }
  h2 { font-size: 3rem; }
  
  /* Stack navigation vertically on very small screens */
  .church-header .flex {
    flex-direction: column;
    gap: 1rem;
  }
  
  /* Full width MASSIVE buttons on small screens */
  .btn-primary, .btn-secondary, .btn-gold {
    width: 100%;
    margin: 1rem 0;
    font-size: 2rem;
    font-weight: 900;
    padding: 2.5rem 3rem;
    min-height: 100px;
  }
  
  /* Enhanced hero section for small screens */
  .hero-gradient h2 {
    font-size: 2.5rem;
  }
  
  .hero-gradient p {
    font-size: 1.25rem;
  }
}

/* Tablet-specific optimizations */
@media (min-width: 769px) and (max-width: 1024px) {
  body { font-size: 19px; }
  
  .btn-primary, .btn-secondary, .btn-gold {
    font-size: 1.125rem;
    padding: 1.125rem 1.875rem;
  }
  
  .chat-bubble-user, .chat-bubble-bot {
    font-size: 1.125rem;
    max-width: 85%;
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  /* Larger touch targets for touch devices */
  .btn-primary, .btn-secondary, .btn-gold, .chat-send {
    min-height: 60px;
    min-width: 120px;
  }
  
  /* Larger interactive elements */
  .sermon-card, .event-card {
    padding: 2rem;
    margin-bottom: 1.5rem;
  }
  
  /* Remove hover effects that don't work on touch */
  .church-card:hover {
    transform: none;
  }
  
  .sermon-card:hover, .event-card:hover {
    transform: none;
  }
}

/* Mobile menu styling */
#mobile-menu {
  background: var(--royal-blue-dark);
  border: 2px solid var(--church-gold);
  box-shadow: 0 8px 25px rgba(30, 58, 138, 0.3);
}

#mobile-menu-btn {
  padding: 0.75rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid var(--church-gold);
  min-width: 50px;
  min-height: 50px;
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

#mobile-menu-btn:hover {
  background: var(--church-gold);
  color: var(--royal-blue-primary);
}

#mobile-menu .nav-link {
  border-radius: 8px;
  transition: all 0.3s ease;
  display: block;
}

#mobile-menu .nav-link:hover {
  background: var(--church-gold);
  color: var(--royal-blue-primary);
}

/* Enhanced visual hierarchy with blues and gold */
.section-divider {
  height: 4px;
  background: linear-gradient(90deg, var(--royal-blue-primary), var(--church-gold), var(--royal-blue-primary));
  border: none;
  margin: 3rem 0;
}

/* Additional accessibility improvements */
.focus-visible:focus {
  outline: 3px solid var(--church-gold);
  outline-offset: 2px;
}

/* High contrast mode enhancements */
@media (prefers-contrast: high) {
  .btn-primary, .btn-secondary, .btn-gold {
    border: 3px solid;
    font-weight: 800;
  }
  
  .church-card {
    border: 2px solid var(--royal-blue-primary);
  }
}