/* Modern Coffee Shop Website Styles - Inspired by Blue Bottle, Stumptown, and contemporary design */

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

/* CSS Variables for Trails Coffee brand theming */
:root {
  --primary-brown: #6B4423;
  --secondary-brown: #8B4513;
  --accent-brown: #A0522D;
  --warm-brown: #CD853F;
  --cream: #F5F5DC;
  --warm-white: #FFFEF7;
  --off-white: #FAF9F7;
  --charcoal: #2C2C2C;
  --soft-gray: #F8F9FA;
  --text-dark: #1A1A1A;
  --text-medium: #4A4A4A;
  --text-light: #666666;
  --shadow-soft: rgba(107, 68, 35, 0.1);
  --shadow-medium: rgba(107, 68, 35, 0.15);
  --gradient-warm: linear-gradient(135deg, #6B4423 0%, #CD853F 100%);
  --gradient-subtle: linear-gradient(135deg, #FFFEF7 0%, #FAF9F7 100%);
  --gradient-brown: linear-gradient(135deg, #6B4423 0%, #8B4513 100%);
}

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Static watermark background */
body::before {
  content: '';
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 900px;
  height: 900px;
  background-image: url('ISO-CREAM.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 1;
  z-index: 1;
  pointer-events: none;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--warm-white);
  overflow-x: hidden;
}

/* Modern typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

/* Modern header with glassmorphism effect */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 254, 247, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(139, 69, 19, 0.1);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transition: all 0.3s ease;
}

header.scrolled {
  background: rgba(255, 254, 247, 0.98);
  box-shadow: 0 4px 20px var(--shadow-soft);
}

header.hidden {
  transform: translateY(-100%);
}

header.hidden .hamburger {
  position: fixed;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 254, 247, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 8px;
  padding: 0.75rem;
  box-shadow: 0 4px 20px var(--shadow-soft);
  z-index: 1002;
}

/* Hamburger menu button */
.hamburger {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--primary-brown);
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* Mobile navigation */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  height: 100dvh;
  background: rgba(255, 254, 247, 0.98);
  backdrop-filter: blur(10px);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  z-index: 999;
  box-shadow: 0 4px 20px var(--shadow-soft);
  overflow: hidden;
}

.mobile-nav.active {
  transform: translateX(0);
}

.mobile-nav-content {
  height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 4rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}


.mobile-nav-link {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(107, 68, 35, 0.1);
  transition: all 0.3s ease;
}

.mobile-nav-link:hover {
  color: var(--primary-brown);
  padding-left: 1rem;
}

.logo {
  height: 60px;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

/* Modern navigation */
nav {
  display: flex;
  gap: 2rem;
}

nav a {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  position: relative;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: 25px;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gradient-warm);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

nav a:hover {
  color: var(--primary-brown);
  background: rgba(218, 165, 32, 0.1);
}

nav a:hover::after {
  width: 80%;
}

/* Main content with proper spacing */
main {
  margin-top: 80px;
  min-height: calc(100vh - 160px);
}

/* Section styling */
.section {
  min-height: 100vh;
  padding-top: 2rem;
  position: relative;
  z-index: 10;
}

.section:first-child {
  padding-top: 0;
}

/* Hero section with modern design */
.hero {
  background: var(--gradient-subtle);
  padding: 6rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="coffee" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="%23DAA520" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23coffee)"/></svg>');
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  background: var(--gradient-warm);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
  animation: fadeInUp 1s ease-out;
}

.hero p {
  font-size: 1.3rem;
  color: var(--text-dark);
  margin-bottom: 2.5rem;
  animation: fadeInUp 1s ease-out 0.2s both;
}

/* Hero buttons container */
.hero-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  animation: fadeInUp 1s ease-out 0.4s both;
  flex-wrap: wrap;
}

/* Modern CTA button */
.cta {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: var(--gradient-warm);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(139, 69, 19, 0.3);
  animation: fadeInUp 1s ease-out 0.4s both;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(139, 69, 19, 0.4);
}

.cta:hover::before {
  left: 100%;
}

/* Content sections */
.content-section {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 12;
}

.content-section h2 {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.content-section h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  width: 60px;
  height: 3px;
  background: var(--gradient-warm);
  transform: translateX(-50%);
}

/* Card-based layout */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.card {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 30px var(--shadow-soft);
  transition: all 0.3s ease;
  border: 1px solid rgba(139, 69, 19, 0.1);
  position: relative;
  z-index: 15;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px var(--shadow-medium);
}

/* Menu items */
.menu-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--shadow-soft);
  transition: all 0.3s ease;
}

.menu-item:hover {
  padding-left: 1rem;
  background: rgba(107, 68, 35, 0.05);
  border-radius: 8px;
}

.menu-item:last-child {
  border-bottom: none;
}

.menu-item-name {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 1.1rem;
}

.menu-item-price {
  color: var(--primary-brown);
  font-weight: 600;
  font-size: 1.2rem;
}

/* Featured menu section */
.featured-menu {
  background: var(--off-white);
  border-radius: 20px;
  margin: 2rem 0;
}

.menu-highlight {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 10px 30px var(--shadow-soft);
  max-width: 600px;
  margin: 0 auto;
}

/* Contact info styling */
.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.contact-item {
  text-align: center;
  padding: 1.5rem;
  background: var(--soft-gray);
  border-radius: 15px;
  transition: all 0.3s ease;
}

.contact-item:hover {
  background: white;
  box-shadow: 0 10px 25px var(--shadow-soft);
  transform: translateY(-5px);
}

.contact-item h3 {
  color: var(--primary-brown);
  margin-bottom: 1rem;
}

/* Modern footer */
footer {
  background: var(--charcoal);
  color: white;
  padding: 3rem 2rem 2rem;
  text-align: center;
  margin-top: 4rem;
  position: relative;
  z-index: 20;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: var(--accent-gold);
  margin-bottom: 1rem;
}

.social {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
}

.social a {
  display: inline-block;
  padding: 0.75rem;
  background: rgba(218, 165, 32, 0.2);
  color: var(--accent-gold);
  text-decoration: none;
  border-radius: 50%;
  transition: all 0.3s ease;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social a:hover {
  background: var(--accent-gold);
  color: var(--charcoal);
  transform: translateY(-3px);
}

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

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Bitcoin Toggle Switch */
.bitcoin-toggle-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 2rem 0;
  gap: 1rem;
}

.bitcoin-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--cream);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  min-width: 280px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.bitcoin-toggle:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.bitcoin-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.bitcoin-icon {
  color: #f7931a;
  font-size: 20px;
  font-weight: bold;
}

.bitcoin-text {
  color: #f7931a;
  font-weight: 600;
  font-size: 1rem;
}

/* Toggle Switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  border: 1px solid #999;
  border-radius: 26px;
  transition: 0.3s;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 2px;
  bottom: 2px;
  background-color: #000;
  border-radius: 50%;
  transition: 0.3s;
}

input:checked + .toggle-slider {
  background-color: #f7931a;
  border-color: #f7931a;
}

input:checked + .toggle-slider:before {
  transform: translateX(24px);
}

/* Bitcoin Discount Message */
.bitcoin-discount {
  background: linear-gradient(135deg, #f7931a, #ffb347);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  box-shadow: 0 4px 15px rgba(247, 147, 26, 0.3);
  animation: discountPulse 2s infinite;
}

.discount-text {
  font-weight: 600;
  font-size: 0.95rem;
}

.discount-link {
  color: white;
  text-decoration: none;
  display: block;
  transition: all 0.3s ease;
}

.discount-link:hover {
  color: white;
  text-decoration: none;
  transform: scale(1.02);
}

@keyframes discountPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Responsive design */
@media (max-width: 768px) {
  header {
    padding: 1rem;
  }
  
  #main-nav {
    display: none;
  }
  
  .hamburger {
    display: flex;
  }
  
  /* Ensure hamburger is always visible on mobile */
  .hamburger {
    display: flex !important;
  }
  
  .hero {
    padding: 4rem 1rem;
  }
  
  .hero h1 {
    font-size: 2.5rem;
    line-height: 1.2;
  }
  
  .hero p {
    font-size: 1.2rem;
    line-height: 1.5;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
  }
  
  .content-section {
    padding: 3rem 1rem;
  }
  
  .content-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
  }
  
  .card-grid {
    grid-template-columns: 1fr;
  }
  
  .card {
    padding: 1.5rem;
  }
  
  .card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
  }
  
  .card p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0.8rem;
  }
  
  .card ul {
    font-size: 1rem;
    line-height: 1.6;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .section {
    padding-top: 1rem;
  }
  
  /* Bitcoin toggle mobile optimization */
  .bitcoin-toggle {
    min-width: 260px;
    padding: 0.8rem 1.2rem;
  }
  
  .bitcoin-text {
    font-size: 1.1rem;
  }
  
  .bitcoin-icon {
    font-size: 18px;
  }
  
  /* Button text size optimization */
  .cta, a[style*="padding: 1rem 2rem"] {
    font-size: 1.1rem !important;
    padding: 1.2rem 2.5rem !important;
  }
}

@media (max-width: 480px) {
  nav a {
    padding: 0.5rem;
    font-size: 0.9rem;
  }
  
  .hero h1 {
    font-size: 2.2rem;
    line-height: 1.1;
  }
  
  .hero p {
    font-size: 1.1rem;
    line-height: 1.4;
  }
  
  .content-section h2 {
    font-size: 1.8rem;
  }
  
  .card h3 {
    font-size: 1.3rem;
  }
  
  .card p {
    font-size: 1.05rem;
    line-height: 1.5;
  }
  
  .card ul {
    font-size: 1.05rem;
    line-height: 1.5;
  }
  
  /* Extra small mobile optimizations */
  .bitcoin-toggle {
    min-width: 240px;
    padding: 0.7rem 1rem;
  }
  
  .bitcoin-text {
    font-size: 1rem;
  }
  
  .cta {
    padding: 1.1rem 2rem;
    font-size: 1.05rem;
  }
  
  a[style*="padding: 1rem 2rem"] {
    font-size: 1.05rem !important;
    padding: 1.1rem 2rem !important;
  }
  
  .hero-buttons {
    gap: 0.8rem;
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus states for accessibility */
a:focus,
button:focus {
  outline: 2px solid var(--accent-gold);
  outline-offset: 2px;
}

/* Bitcoin page section navigation */
.hero-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-buttons .cta {
  margin: 0;
  font-size: 0.9rem;
  padding: 0.8rem 1.5rem;
}

/* Smooth scrolling for Bitcoin page sections */
html {
  scroll-behavior: smooth;
}

/* Bitcoin vs Traditional comparison styling */
@media (max-width: 768px) {
  .hero-buttons {
    flex-direction: column;
    gap: 0.8rem;
  }
  
  .hero-buttons .cta {
    width: 100%;
    max-width: 280px;
  }
  
  /* Make comparison grid responsive */
  div[style*="grid-template-columns: 1fr 1fr"] {
    display: block !important;
  }
  
  div[style*="grid-template-columns: 1fr 1fr"] > div {
    margin-bottom: 2rem;
  }
}

/* Limited Time Product Styling */
.limited-time-badge {
  display: inline-block;
  background: linear-gradient(135deg, #d32f2f, #f44336);
  color: white;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(211, 47, 47, 0.3);
  margin-bottom: 1rem;
}

.limited-time-card {
  position: relative;
  border: 2px solid var(--primary-brown) !important;
  box-shadow: 0 10px 30px rgba(107, 68, 35, 0.2) !important;
}

.limited-time-card .limited-time-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  margin-bottom: 0;
}

.limited-time-product-card {
  position: relative;
}

.limited-time-product-card .limited-time-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  margin-bottom: 0;
  z-index: 10;
}

/* Fundraiser Styles */
.fundraiser-loading,
.fundraiser-error,
.fundraiser-empty {
  text-align: center;
  padding: 3rem 1rem;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid var(--cream);
  border-top: 4px solid var(--primary-brown);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.fundraiser-card {
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.campaign-image {
  display: none; /* Hide campaign logos */
}

.campaign-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.verified-badge {
  display: inline-block;
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  width: fit-content;
}

.creator-nip05 {
  color: var(--text-light);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  font-family: monospace;
}

.campaign-description {
  flex: 1;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.campaign-progress {
  margin: 1.5rem 0;
  padding: 1rem;
  background: var(--soft-gray);
  border-radius: 10px;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.raised-amount {
  color: var(--primary-brown);
  font-weight: 600;
}

.goal-amount {
  color: var(--text-light);
}

.progress-bar {
  width: 100%;
  height: 12px;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 0.5rem;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-fill {
  height: 100%;
  background: var(--gradient-warm);
  border-radius: 10px;
  transition: width 0.5s ease;
}

.progress-percentage {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-medium);
  font-weight: 600;
}

.campaign-payment {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--shadow-soft);
  text-align: center;
}

.qr-code {
  display: flex;
  justify-content: center;
  margin: 1rem 0;
  padding: 1rem;
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.qr-code img {
  border-radius: 8px;
}

.lightning-address {
  background: var(--soft-gray);
  padding: 0.75rem;
  border-radius: 8px;
  margin: 1rem 0;
  word-break: break-all;
}

.lightning-address strong {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
  font-size: 0.85rem;
}

.ln-address {
  background: white;
  padding: 0.5rem;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.85rem;
  color: var(--primary-brown);
  display: inline-block;
  margin: 0.25rem 0;
}

.copy-btn {
  background: var(--primary-brown);
  color: white;
  border: none;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-left: 0.5rem;
}

.copy-btn:hover {
  background: var(--secondary-brown);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(107, 68, 35, 0.3);
}

.zap-button {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, #f7931a, #ffb347);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(247, 147, 26, 0.3);
  margin-top: 0.5rem;
}

.zap-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(247, 147, 26, 0.4);
}

.no-payment {
  color: var(--text-light);
  font-style: italic;
  padding: 1rem;
  background: var(--soft-gray);
  border-radius: 8px;
  margin-top: 1rem;
}

/* Responsive adjustments for fundraiser */
@media (max-width: 768px) {
  .qr-code {
    padding: 0.5rem;
  }
  
  .lightning-address {
    font-size: 0.8rem;
  }
  
  .ln-address {
    font-size: 0.75rem;
  }
  
  .copy-btn {
    display: block;
    margin: 0.5rem auto 0;
    width: 100%;
  }
  
  .zap-button {
    font-size: 1rem;
    padding: 0.9rem;
  }
}

@media (max-width: 480px) {
  .progress-info {
    flex-direction: column;
    gap: 0.25rem;
  }
}

/* Event page styles */
.view-toggle {
  display: flex;
  gap: 0.5rem;
  background: var(--soft-gray);
  padding: 0.25rem;
  border-radius: 12px;
}

.view-btn {
  padding: 0.6rem 1.2rem;
  border: none;
  background: transparent;
  color: var(--text-medium);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Quicksand', sans-serif;
}

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

.view-btn.active {
  background: white;
  color: var(--primary-brown);
  box-shadow: 0 2px 8px var(--shadow-soft);
}

/* Modal styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  overflow-y: auto;
}

.modal-content {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  max-width: 700px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  margin: auto;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--soft-gray);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.5rem;
  color: var(--text-medium);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  z-index: 1;
}

.modal-close:hover {
  background: var(--primary-brown);
  color: white;
  transform: rotate(90deg);
}

/* FullCalendar customization */
#calendar {
  background: white;
  padding: 1.5rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px var(--shadow-soft);
}

.fc {
  font-family: 'Quicksand', sans-serif;
}

.fc .fc-button {
  background: var(--primary-brown);
  border-color: var(--primary-brown);
  font-family: 'Quicksand', sans-serif;
  text-transform: capitalize;
  padding: 0.5rem 1rem;
}

.fc .fc-button:hover {
  background: var(--secondary-brown);
  border-color: var(--secondary-brown);
}

.fc .fc-button-primary:not(:disabled):active,
.fc .fc-button-primary:not(:disabled).fc-button-active {
  background: var(--accent-brown);
  border-color: var(--accent-brown);
}

.fc .fc-daygrid-day-number {
  color: var(--text-dark);
  font-weight: 500;
}

.fc .fc-col-header-cell-cushion {
  color: var(--primary-brown);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.fc .fc-event {
  cursor: pointer;
  border-radius: 4px;
  border: none;
  padding: 2px 4px;
  margin-bottom: 2px;
}

.fc .fc-event:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.fc .fc-event-title {
  font-weight: 600;
  font-size: 0.85rem;
}

/* Highlight days with events */
.fc .fc-daygrid-day.fc-day-today {
  background-color: #FFF9F5 !important;
}

.fc .fc-daygrid-day-frame {
  min-height: 100px;
}

/* Event time display */
.fc .fc-event-time {
  font-size: 0.75rem;
  font-weight: 500;
}

/* Responsive adjustments for events page */
@media (max-width: 768px) {
  .view-toggle {
    width: 100%;
    justify-content: center;
  }
  
  .view-btn {
    flex: 1;
    font-size: 0.85rem;
    padding: 0.5rem 0.8rem;
  }
  
  .modal-content {
    padding: 1.5rem;
    margin: 1rem;
  }
  
  #calendar {
    padding: 1rem;
  }
  
  .fc .fc-toolbar {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .fc .fc-toolbar-chunk {
    display: flex;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .modal-content {
    padding: 1rem;
    border-radius: 12px;
  }
  
  .fc .fc-button {
    padding: 0.4rem 0.6rem;
    font-size: 0.85rem;
  }
  
  .fc .fc-toolbar-title {
    font-size: 1.2rem;
  }
}

/* Print styles */
@media print {
  header, footer, .cta {
    display: none;
  }
  
  body {
    background: white;
    color: black;
  }
}

/* ============================================================
   FORM SUBMISSION STYLES
   ============================================================ */

/* Form Container - Hidden by default */
.submission-form-container {
  display: none !important;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s ease, opacity 0.3s ease, margin 0.3s ease;
  margin: 0;
}

.submission-form-container.form-visible {
  display: block !important;
  max-height: 5000px;
  opacity: 1;
  margin-bottom: 3rem;
}

/* Form Card */
.form-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 20px var(--shadow-soft);
  border: 1px solid var(--soft-gray);
  max-width: 800px;
  margin: 0 auto;
}

.form-card h3 {
  color: var(--primary-brown);
  margin-bottom: 0.5rem;
}

/* Form Styles */
.submission-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.95rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group input[type="datetime-local"],
.form-group select,
.form-group textarea {
  padding: 0.75rem 1rem;
  border: 2px solid var(--soft-gray);
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-brown);
  box-shadow: 0 0 0 3px rgba(107, 68, 35, 0.1);
}

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

.form-group small {
  color: var(--text-medium);
  font-size: 0.85rem;
}

/* Character counter */
#summary-counter {
  font-weight: 600;
  color: var(--primary-brown);
}

#summary-counter.counter-exceeded {
  color: #dc3545;
}

/* Image Upload Section */
.image-upload-section {
  background: var(--soft-gray);
  padding: 1.5rem;
  border-radius: 8px;
}

.image-upload-input {
  padding: 0.5rem;
  border: 2px dashed var(--primary-brown);
  border-radius: 8px;
  background: white;
  cursor: pointer;
  display: block;
  width: 100%;
}

.image-upload-input:hover {
  border-color: var(--accent-brown);
  background: var(--cream);
}

.image-preview-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.image-preview {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid var(--soft-gray);
}

.image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-preview .remove-image {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(220, 53, 69, 0.9);
  color: white;
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.image-preview .remove-image:hover {
  background: rgba(220, 53, 69, 1);
}

.image-uploading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: white;
  border-radius: 8px;
  border: 2px solid var(--primary-brown);
}

.image-uploading .spinner {
  width: 20px;
  height: 20px;
  border: 3px solid var(--soft-gray);
  border-top-color: var(--primary-brown);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* Form Actions */
.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.form-actions .cta {
  flex: 1;
  min-width: 150px;
}

.btn-secondary {
  flex: 1;
  min-width: 150px;
  padding: 0.75rem 1.5rem;
  background: white;
  color: var(--text-dark);
  border: 2px solid var(--soft-gray);
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Inter', sans-serif;
}

.btn-secondary:hover {
  border-color: var(--primary-brown);
  color: var(--primary-brown);
  background: var(--cream);
}

/* Notifications */
.form-notification {
  position: fixed;
  top: 100px;
  right: -400px;
  max-width: 400px;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  z-index: 10000;
  transition: right 0.3s ease;
  font-weight: 500;
}

.form-notification.notification-visible {
  right: 20px;
}

.notification-success {
  background: #d4edda;
  color: #155724;
  border: 2px solid #c3e6cb;
}

.notification-error {
  background: #f8d7da;
  color: #721c24;
  border: 2px solid #f5c6cb;
}

.notification-info {
  background: #d1ecf1;
  color: #0c5460;
  border: 2px solid #bee5eb;
}

/* Checkbox styling */
.form-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--primary-brown);
}

.form-group input[type="radio"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--primary-brown);
}

/* Job location note */
#job-location-note {
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Contact fields animation */
#contact-fields {
  animation: slideDown 0.3s ease;
}

/* Responsive Form Styles */
@media (max-width: 768px) {
  .form-card {
    padding: 1.5rem;
  }
  
  .form-actions {
    flex-direction: column;
  }
  
  .form-actions .cta,
  .btn-secondary {
    width: 100%;
  }
  
  .image-preview {
    width: 100px;
    height: 100px;
  }
  
  .form-notification {
    right: -100%;
    left: 10px;
    max-width: calc(100% - 20px);
  }
  
  .form-notification.notification-visible {
    right: auto;
    left: 10px;
  }
}

/* ========================================
   Marketplace Enhancements - Plebeian Market Integration
   ======================================== */

/* Category and Tag Badges */
.category-badge {
  background: var(--primary-brown);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.7rem;
  background: #e8f5e9;
  color: #2e7d32;
  border-radius: 16px;
  font-size: 0.8rem;
  font-weight: 500;
  margin: 0.2rem;
  transition: background 0.2s;
}

.tag-chip:hover {
  background: #c8e6c9;
}

.tag-suggestion {
  cursor: pointer;
  padding: 0.4rem 0.8rem;
  background: #e0e0e0;
  border-radius: 16px;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.tag-suggestion:hover {
  background: var(--primary-brown);
  color: white;
  transform: translateY(-1px);
}

/* Improved Listing Cards */
.card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px var(--shadow-medium);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-brown);
  opacity: 0;
  transition: opacity 0.3s;
}

.card:hover::before {
  opacity: 1;
}

/* Filter Buttons */
.filter-toggle {
  display: flex;
  background: var(--soft-gray);
  border-radius: 8px;
  padding: 0.25rem;
  gap: 0.25rem;
}

.filter-btn {
  padding: 0.5rem 1rem;
  border: none;
  background: transparent;
  color: var(--text-medium);
  border-radius: 6px;
  cursor: pointer;
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s;
}

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

.filter-btn.active {
  background: var(--primary-brown);
  color: white;
  box-shadow: 0 2px 4px rgba(107, 68, 35, 0.2);
}

/* Stall Management Modal Enhancements */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--soft-gray);
  border-radius: 8px;
  font-family: 'Quicksand', sans-serif;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-brown);
  box-shadow: 0 0 0 3px rgba(107, 68, 35, 0.1);
}

/* Image Gallery in Modal */
.modal-image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.modal-image-gallery img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.3s;
}

.modal-image-gallery img:hover {
  transform: scale(1.05);
}

/* Price Input Row in Form */
.price-row {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}

.price-row .price-number-input {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  width: auto !important;
  padding: 0.75rem 1rem;
  border: 2px solid var(--soft-gray);
  border-radius: 8px;
  font-size: 1rem;
  font-family: 'Quicksand', sans-serif;
}

.price-row .price-currency-select {
  flex: 0 0 auto;
  width: 90px;
  padding: 0.75rem;
  border: 2px solid var(--soft-gray);
  border-radius: 8px;
  font-family: 'Quicksand', sans-serif;
  font-size: 1rem;
  background: white;
}

/* Price Display Enhancement */
.price-display {
  background: linear-gradient(135deg, var(--soft-gray) 0%, #f5f5f5 100%);
  border: 2px solid var(--soft-gray);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  margin: 1.5rem 0;
}

.price-display .price-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-brown);
  font-family: 'Inter', sans-serif;
}

.price-display .price-secondary {
  font-size: 0.9rem;
  color: var(--text-medium);
  margin-top: 0.5rem;
}

/* Seller Info Card */
.seller-info-card {
  background: var(--soft-gray);
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 1.5rem;
}

.seller-info-card .seller-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.seller-info-card .seller-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-brown);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
}

.seller-info-card .verified-badge {
  background: #4caf50;
  color: white;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Loading Spinner Enhancement */
.loading-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--soft-gray);
  border-top-color: var(--primary-brown);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Status Badges */
.status-badge {
  padding: 0.3rem 0.8rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  display: inline-block;
}

.status-badge.active {
  background: #4caf50;
  color: white;
}

.status-badge.sold {
  background: #dc3545;
  color: white;
}

/* Image Upload Enhancements */
.image-uploading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background: var(--soft-gray);
  border-radius: 8px;
  margin: 0.5rem 0;
}

.image-uploading .spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--soft-gray);
  border-top-color: var(--primary-brown);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* Responsive Cards */
@media (max-width: 768px) {
  .card-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .price-display .price-value {
    font-size: 2rem;
  }
  
  .filter-toggle {
    flex-direction: column;
    width: 100%;
  }
  
  .filter-btn {
    width: 100%;
    text-align: center;
  }
}

/* Category Dropdown Enhancement */
#category-container select {
  background: white;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1.25rem;
  padding-right: 2.5rem;
}

/* Tag Input Container */
#selected-tags {
  min-height: 2rem;
  padding: 0.5rem;
  background: var(--soft-gray);
  border-radius: 8px;
  border: 2px dashed var(--soft-gray);
}

#selected-tags:empty::after {
  content: 'No tags added yet';
  color: var(--text-light);
  font-size: 0.85rem;
  font-style: italic;
}

/* Smooth animations */
.card-enter {
  animation: cardEnter 0.4s ease-out;
}

@keyframes cardEnter {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Improved Modal */
.modal-content {
  max-height: 90vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-brown) var(--soft-gray);
}

.modal-content::-webkit-scrollbar {
  width: 8px;
}

.modal-content::-webkit-scrollbar-track {
  background: var(--soft-gray);
  border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb {
  background: var(--primary-brown);
  border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-brown);
}

/* ========================================
   Enhanced Image Upload
   ======================================== */

.image-preview {
  position: relative;
  display: inline-block;
  margin: 0.5rem;
  cursor: move;
  transition: all 0.3s;
  border: 2px solid transparent;
}

.image-preview:hover {
  border-color: var(--primary-brown);
  transform: scale(1.02);
}

.image-preview.dragging {
  opacity: 0.5;
  transform: scale(0.95);
}

.image-preview-drag-handle {
  cursor: move;
  user-select: none;
}

.image-caption {
  font-family: 'Quicksand', sans-serif !important;
  transition: border-color 0.2s;
}

.image-caption:focus {
  border-color: var(--primary-brown) !important;
  outline: none;
}

.image-order-badge {
  font-family: 'Inter', sans-serif;
}

.image-preview-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
  padding: 1rem;
  background: var(--soft-gray);
  border-radius: 12px;
  min-height: 100px;
  border: 2px dashed var(--soft-gray);
}

.image-preview-container:empty::after {
  content: 'No images uploaded yet';
  color: var(--text-light);
  font-size: 0.9rem;
  font-style: italic;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.remove-image {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: rgba(220, 53, 69, 0.9);
  color: white;
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 10;
}

.remove-image:hover {
  background: #dc3545;
  transform: scale(1.1);
}

/* Image Gallery in Modal */
.listing-modal-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.75rem;
  margin: 1rem 0;
}

.listing-modal-gallery img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s;
  border: 2px solid transparent;
}

.listing-modal-gallery img:hover {
  transform: scale(1.05);
  border-color: var(--primary-brown);
}

/* Drag and Drop Upload Area */
.image-upload-dropzone {
  border: 3px dashed var(--soft-gray);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s;
  cursor: pointer;
  background: var(--warm-white);
}

.image-upload-dropzone:hover {
  border-color: var(--primary-brown);
  background: var(--soft-gray);
}

.image-upload-dropzone.dragover {
  border-color: var(--primary-brown);
  background: var(--cream);
  transform: scale(1.02);
}
