/* ==========================================================================
   Photo Metadata Viewer - Softly Design System & Custom Styles
   Theme: Softly / Digital Wellness / Tactile Minimalist
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Reenie+Beanie&display=swap');

:root {
  --bg-canvas: #FDFCF8;
  --color-coral: #FFB7B2;
  --color-coral-hover: #FFA29B;
  --color-sage: #E8EFE8;
  --color-lavender: #EFEDF4;
  --color-stone-900: #292524;
  --color-stone-700: #44403C;
  --color-stone-500: #78716C;
  --color-stone-200: #E7E5E4;
  --color-stone-100: #F5F5F4;
  
  --font-primary: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-cursive: 'Reenie Beanie', cursive;
  
  --radius-xl: 2rem;
  --radius-2xl: 3rem;
  --radius-pill: 9999px;
  
  --shadow-soft: 0 4px 20px -2px rgba(41, 37, 36, 0.05);
  --shadow-hover: 0 10px 30px -4px rgba(41, 37, 36, 0.08);
}

/* Global Reset & Base Styling */
html {
  scroll-behavior: smooth;
  background-color: var(--bg-canvas);
  color: var(--color-stone-900);
  font-family: var(--font-primary);
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-canvas);
  color: var(--color-stone-900);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* --------------------------------------------------------------------------
   1. Persistent SVG Noise / Grain Overlay (0.35 Opacity Paper Texture)
   -------------------------------------------------------------------------- */
.grain-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.35;
  mix-blend-mode: overlay;
}

/* --------------------------------------------------------------------------
   2. Typography & Special Text Styles
   -------------------------------------------------------------------------- */
.font-cursive {
  font-family: var(--font-cursive);
  line-height: 1;
}

.heading-hero {
  font-family: var(--font-primary);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--color-stone-900);
  text-transform: none;
}

/* --------------------------------------------------------------------------
   3. Floating Pill Navigation Bar (Aligned to max-w-6xl / 72rem)
   -------------------------------------------------------------------------- */
.nav-floating-pill {
  position: fixed;
  top: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 2rem);
  max-width: 72rem; /* Aligned with main max-w-6xl */
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(231, 229, 228, 0.8);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-soft);
  z-index: 1000;
  transition: all 0.3s ease;
}

.nav-link {
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--color-stone-700);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  transition: all 0.2s ease;
  text-decoration: none;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-stone-900);
  background-color: rgba(232, 239, 232, 0.8);
}

/* --------------------------------------------------------------------------
   4. Tactile Pill Buttons
   -------------------------------------------------------------------------- */
.btn-hero-action {
  height: 3.25rem;
  padding: 0 1.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.btn-pill-coral {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-coral);
  color: var(--color-stone-900);
  border-radius: var(--radius-pill);
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-soft);
  text-decoration: none;
}

.btn-pill-coral:hover {
  background-color: var(--color-coral-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-pill-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-stone-900);
  color: #FFFFFF;
  border-radius: var(--radius-pill);
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  gap: 0.5rem;
}

.btn-pill-dark:hover {
  background-color: #000000;
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

/* --------------------------------------------------------------------------
   5. Floating Ambient Background Blobs
   -------------------------------------------------------------------------- */
.blob-container {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 80rem;
  height: 40rem;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
  animation: floatBlob 6s ease-in-out infinite alternate;
}

.blob-peach {
  width: 25rem;
  height: 25rem;
  background-color: #FFE4E1;
  top: 2rem;
  left: 10%;
}

.blob-lavender {
  width: 30rem;
  height: 30rem;
  background-color: #E6E6FA;
  top: 5rem;
  right: 10%;
  animation-delay: -3s;
}

@keyframes floatBlob {
  0% { transform: translateY(0px) scale(1); }
  100% { transform: translateY(-20px) scale(1.05); }
}

/* --------------------------------------------------------------------------
   6. Interactive Dropzone Cards & Image Preview
   -------------------------------------------------------------------------- */
.dropzone-card {
  background-color: #FFFFFF;
  border: 2px dashed rgba(255, 183, 178, 0.6);
  border-radius: var(--radius-2xl);
  padding: 3rem 2rem;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
}

.dropzone-card:hover,
.dropzone-card.drag-over {
  border-color: var(--color-coral);
  background-color: rgba(253, 252, 248, 0.8);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.img-preview-no-radius {
  border-radius: 0 !important;
}

.card-soft-sage {
  background-color: var(--color-sage);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.card-soft-lavender {
  background-color: var(--color-lavender);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  transition: all 0.3s ease;
}

/* --------------------------------------------------------------------------
   7. Scroll Reveal Animations
   -------------------------------------------------------------------------- */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Table Styling */
.table-soft {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #FFFFFF;
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid var(--color-stone-200);
}

.table-soft th {
  background: var(--color-stone-100);
  color: var(--color-stone-700);
  font-weight: 600;
  text-align: left;
  padding: 0.875rem 1.25rem;
  font-size: 0.875rem;
}

.table-soft td {
  padding: 0.875rem 1.25rem;
  border-top: 1px solid var(--color-stone-100);
  color: var(--color-stone-900);
  font-size: 0.875rem;
}

.table-soft tr:hover td {
  background-color: rgba(253, 252, 248, 0.6);
}

/* Copy Toast / Alert Popup */
.copy-toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--color-stone-900);
  color: #FFFFFF;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  z-index: 10000;
  animation: fadeInOut 2.5s ease-in-out forwards;
}

@keyframes fadeInOut {
  0% { opacity: 0; transform: translateY(10px); }
  15% { opacity: 1; transform: translateY(0); }
  85% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(10px); }
}
