/* ============================================
   ALLSHARE - MAIN STYLESHEET
   Cleaned and organized - November 2024
   ============================================ */

/* ============================================
   CSS CUSTOM PROPERTIES (VARIABLES)
   ============================================ */
:root {
  /* Default colors (neutral theme) */
  --primary-color: #475569;
  --primary-hover: #334155;
  --secondary-color: #64748b;
  --bg-color: #ffffff;
  --text-color: #1f2937;
  --border-color: #e5e7eb;
  --shadow-color: rgba(0, 0, 0, 0.1);
  

  
  /* Typography */
  --font-display: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
}

/* ============================================
   GLOBAL STYLES
   ============================================ */
* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-color);
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6, .font-display {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 1rem 0;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

/* Links */
a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--primary-hover);
}

/* Sections */
section {
  padding: 2rem 1rem;
}

/* PARALLAX SECTION */


/* ============================================
   NAVBAR THEME STYLES
   ============================================ */
.navbar-emoji {
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
  transition: transform 0.3s ease;
  
}

.navbar-title {
  color: var(--text-color);
  transition: color 0.3s ease;
  font-weight: 100;
  font-size: larger;
  font-family: 'Playfair Display', serif;
}

.navbar-logo:hover .navbar-emoji {
  transform: scale(1.1);
}

/* Neutral navbar (main page) */


.navbar-neutral .nav-link,
.navbar-neutral .navbar-title {
  color: #1f2937 !important;
}

.navbar-neutral .nav-button {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-hover)) !important;
  color: white !important;
  border: none !important;
}

.navbar-neutral .nav-button:hover {
  background: linear-gradient(135deg, var(--primary-hover), #1e293b) !important;
}




/* HERO */
.pricing-card .text-4xl {
  color: #d0c33c !important;
  font-weight: 100;;
  font-family: Geneva, Tahoma, sans-serif;
  font-size: x-large ;
}

h1.text-4xl {
  font-family: var(--font-display);
  font-weight: 700;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.4);
  line-height: 1.1;
  letter-spacing: -1px;
}

p.text-lg {
  font-weight: 400;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.4);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
  color: white;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-hover), #1e293b);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--shadow-color);
  color: white;
}

.btn-secondary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
  background: var(--primary-color);
  color: white;
}

/* ============================================
   GALLERY STYLES
   ============================================ */
.photoGallery, .videoGallery {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 8px;
  padding: 1rem;
}

.media-item {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.media-item:hover {
  transform: scale(1.03);
}

.media-item img,
.media-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 8px;
  transition: opacity 0.4s ease-in-out;
}

.media-item img.loaded,
.media-item video.loaded {
  opacity: 1;
}

/* Gallery loader */
#galleryLoader {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  min-height: 100px;
}

.loader {
  border: 4px solid #f3f3f3;
  border-top: 4px solid var(--primary-color);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* SCROLL TO TOP */
/* Main/Neutral theme - Gray */
.theme-neutral #scrollToTop,
body:not([class*="theme-"]) #scrollToTop {
  background-color: #4b5563 !important; /* Gray */
}

.theme-neutral #scrollToTop:hover,
body:not([class*="theme-"]) #scrollToTop:hover {
  background-color: #4b5563 !important; /* Darker gray */
}

/* Wedding theme - Green */
.theme-wedding #scrollToTop {
  background-color: #059669 !important; /* Emerald-600 */
}

.theme-wedding #scrollToTop:hover {
  background-color: #047857 !important; /* Emerald-700 */
}

/* Birthday theme - Orange */
.theme-birthday #scrollToTop {
  background-color: #f59e0b !important; /* Amber-500 */
}

.theme-birthday #scrollToTop:hover {
  background-color: #d97706 !important; /* Amber-600 */
}

/* Hen Do theme - Keep pink */
.theme-hendo #scrollToTop {
  background-color: #e11d48 !important; /* Rose-600 */
}

.theme-hendo #scrollToTop:hover {
  background-color: #be185d !important; /* Rose-700 */
}

/* Stag Do theme - Blue */
.theme-stagdo #scrollToTop {
  background-color: #1d4ed8 !important; /* Blue-700 */
}

.theme-stagdo #scrollToTop:hover {
  background-color: #1e40af !important; /* Blue-800 */
}

/* ============================================
   LOGIN PAGE STYLES
   ============================================ */
.login-container {
  max-width: 400px;
  margin: 60px auto;
  padding: 30px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.login-heading {
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 24px;
  font-weight: 700;
  font-size: 1.8rem;
}

.login-input {
  width: 100%;
  margin: 10px 0;
  padding: 12px;
  border: 2px solid var(--border-color);
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.login-input:focus {
  outline: none;
  border-color: var(--primary-color);
  background: #f8fafc;
}

.login-button {
  width: 100%;
  margin: 10px 0;
  padding: 12px;
  background-color: var(--primary-color);
  color: white;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.login-button:hover {
  background-color: var(--primary-hover);
}

#error {
  color: #dc2626;
  min-height: 1.5em;
  margin-top: 8px;
  font-weight: 600;
  text-align: center;
}

.login-links {
  margin-top: 16px;
  text-align: center;
  font-size: 0.9rem;
}

.login-links a {
  color: var(--primary-color);
  margin: 0 8px;
  font-weight: 600;
  transition: color 0.3s ease;
}

.login-links a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

/* ============================================
   UPLOAD PAGE STYLES
   ============================================ */
.upload-page {
  padding-top: 80px;
}

.upload-file-input {
  border: 2px dashed var(--border-color);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  transition: all 0.2s ease;
  cursor: pointer;
}

.upload-file-input:hover {
  border-color: var(--primary-color);
  background-color: #f8fafc;
}

.drag-over {
  border-color: var(--primary-color) !important;
  background-color: #f8fafc !important;
}

.upload-button {
  width: 100%;
  background-color: var(--primary-color);
  color: white;
  font-weight: 600;
  padding: 12px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.upload-button:hover:not(:disabled) {
  background-color: var(--primary-hover);
}

.upload-button:disabled {
  background-color: #9ca3af;
  cursor: not-allowed;
}

.progress-bar {
  width: 100%;
  height: 4px;
  background-color: #f3f4f6;
  border-radius: 2px;
  overflow: hidden;
  margin-top: 8px;
}

.progress-fill {
  height: 100%;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.upload-status {
  text-align: center;
  margin-top: 1.5rem;
  min-height: 24px;
}

.upload-status.error {
  color: #dc2626;
}

.upload-status.success {
  color: #059669;
}

/* ============================================
   PAYMENT PAGE STYLES
   ============================================ */
.payment-card {
  background: white;
  max-width: 500px;
  margin: 2rem auto;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.payment-card h2 {
  margin: 0 0 1rem 0;
  color: var(--text-color);
  font-size: 1.5rem;
  text-align: center;
}

.plan-info {
  background: #f8fafc;
  padding: 1rem;
  border-radius: 8px;
  margin: 1rem 0;
}

.plan-name {
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.loading-message {
  text-align: center;
  color: var(--primary-color);
  font-weight: 500;
  padding: 1rem;
  display: none;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ============================================
   FAQ PAGE STYLES
   ============================================ */
.faq-category {
  margin-bottom: 2rem;
}

.faq-category h2 {
  color: var(--primary-color);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}

.faq-item {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1rem;
  transition: all 0.2s ease;
}

.faq-item:hover {
  border-color: var(--primary-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.faq-question:hover {
  background-color: #f9fafb;
}

.faq-question h3 {
  color: var(--primary-color);
  font-size: 1.125rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0;
}

.faq-answer {
  padding: 0 1rem 1rem 1rem;
  color: var(--text-color);
  line-height: 1.6;
}

.faq-answer.hidden {
  display: none;
}

/* ============================================
   FOOTER STYLES
   ============================================ */
footer {
  background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
  color: #f9fafb;
  padding: 2rem 1rem;
  text-align: center;
  font-size: 0.875rem;
}

footer h3, footer h4 {
  color: #f9fafb !important;
}

footer .text-gray-400 {
  color: #9ca3af !important;
}

footer a {
  color: #d1d5db;
  transition: color 0.2s ease;
}

footer a:hover {
  color: #f3f4f6 !important;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.loading-spinner {
  border: 2px solid #f3f3f3;
  border-top: 2px solid var(--primary-color);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  animation: spin 1s linear infinite;
  display: inline-block;
  margin-right: 8px;
}

.active {
  background-color: var(--primary-color);
  color: white;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
  .photoGallery, .videoGallery {
    grid-template-columns: repeat(6, 1fr);
  }
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  
  .photoGallery, .videoGallery {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .hero-content {
    padding: 2rem 1rem;
  }
  
  section {
    padding: 1.5rem 1rem;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 1.75rem; }
  
  .photoGallery, .videoGallery {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .upload-page {
    padding-top: 60px;
  }
  
  .login-container,
  .payment-card {
    margin: 1rem;
    padding: 1.5rem;
  }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
  .faq-answer.hidden {
    display: block !important;
  }
  .navbar-emoji,
  .loading-spinner {
    display: none;
  }
  
}

/* ============================================
   ACCESSIBILITY & MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus styles for better accessibility */
.faq-question:focus,
.btn:focus,
.login-input:focus,
.upload-button:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}