/* Grace Church Melbourne - Elegant Neutral Theme */

/* Custom Font Import */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --color-primary: #2C2C2C;
  --color-secondary: #1A1A1A;
  --color-accent: #8B7355;
  --color-text: #4A4A4A;
  --color-light: #F5F5F5;
  --font-serif: 'Playfair Display', serif;
  --font-sans: 'Inter', sans-serif;
}

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

body {
  font-family: var(--font-sans);
  line-height: 1.7;
  color: var(--color-text);
  background-color: #FAFAFA;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 700;
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

/* Button Styles */
.btn-primary {
  background-color: var(--color-primary);
  color: white;
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: var(--font-sans);
}

.btn-primary:hover {
  background-color: #1A1A1A;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Hero CTA Buttons Animation */
@keyframes pulse-shadow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
  }
  50% {
    box-shadow: 0 0 0 15px rgba(255, 255, 255, 0);
  }
}

button:focus,
a:focus {
  outline: none;
  animation: pulse-shadow 1.5s infinite;
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-primary);
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  border: 2px solid var(--color-primary);
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: var(--font-sans);
}

.btn-secondary:hover {
  background-color: var(--color-primary);
  color: white;
  transform: translateY(-2px);
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.show {
  opacity: 1;
}

.modal-content {
  background-color: white;
  border-radius: 1rem;
  padding: 2.5rem;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.modal-overlay.show .modal-content {
  transform: scale(1);
}

/* Form Styles */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid #E5E5E5;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-family: var(--font-sans);
  transition: all 0.3s ease;
  background-color: #FAFAFA;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  background-color: white;
  box-shadow: 0 0 0 3px rgba(44, 44, 44, 0.1);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

label {
  display: block;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}

/* Decorative Elements */
.decorative-line {
  width: 60px;
  height: 3px;
  background-color: var(--color-accent);
  margin: 1.5rem auto;
}

/* Scroll Indicator */
.scroll-indicator {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    to right,
    var(--color-primary) 0%,
    var(--color-accent) 50%,
    var(--color-primary) 100%
  );
  transform: scaleX(0);
  transform-origin: left;
  z-index: 9999;
  transition: transform 0.1s ease;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #F5F5F5;
}

::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-secondary);
}

/* Responsive Typography */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  h3 {
    font-size: 1.75rem;
  }
  
  .modal-content {
    padding: 1.5rem;
  }
}

/* Loading State */
.loading {
  position: relative;
  pointer-events: none;
  opacity: 0.6;
}

.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid var(--color-primary);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

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

/* Success Message */
.success-message {
  background-color: #10B981;
  color: white;
  padding: 1rem;
  border-radius: 0.5rem;
  margin-top: 1rem;
  text-align: center;
  font-weight: 600;
  animation: fadeInUp 0.5s ease;
}

/* Instagram Gallery Hover Effects */
.instagram-gallery-item {
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.instagram-gallery-item:hover {
  transform: scale(1.05);
  z-index: 10;
}

.instagram-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.instagram-gallery-item:hover img {
  transform: scale(1.1);
}

/* Image Placeholder for Real Photos */
.photo-placeholder {
  background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 50%, #e5e7eb 100%);
  background-size: 200% 200%;
  animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Real Image Support - Add this class to divs when you have real images */
.real-image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Focus Styles */
*:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}

/* Tailwind Custom Classes Override */
.font-serif {
  font-family: var(--font-serif) !important;
}

/* Giving Modal Specific Styles */
.modal-content {
  max-width: 700px !important;
}

.giving-type-btn {
  cursor: pointer;
  user-select: none;
}

.giving-type-btn:active {
  transform: scale(0.98);
}

.amount-btn {
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
}

.amount-btn:active {
  transform: scale(0.95);
}

.amount-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Payment Method Links */
a[href*="paypal"],
a[href*="venmo"],
a[href*="cash.app"],
a[href*="zellepay"],
a[href*="wise"],
a[href*="westernunion"] {
  text-decoration: none;
  transition: all 0.3s ease;
}

/* QR Code Modal Animation */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fixed.inset-0.bg-black\\/50 > div {
  animation: slideUp 0.3s ease;
}

/* Copy button feedback */
@keyframes copyPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}

button[onclick^="copyToClipboard"]:active {
  animation: copyPulse 0.3s ease;
}

/* Print Styles */
@media print {
  nav,
  footer,
  button {
    display: none;
  }
}
