/* Claude Aesthetic & Custom Styling for OurPetsLog */
@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,400..700;1,6..72,400..700&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  --bg-cream: #FAF8F5;
  --bg-card: #FFFFFF;
  --bg-subtle: #F3EFE6;
  --text-main: #2D2B28;
  --text-muted: #6B665F;
  --border-warm: #E6E1D7;
  --accent-amber: #D97706;
  --accent-amber-light: #FEF3C7;
  --accent-terracotta: #C25E00;
  --accent-green: #059669;
  --accent-blue: #2563EB;
}

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-cream);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
}

/* Prevent iOS focus zoom while respecting the user's larger root font size. */
@media (max-width: 640px) {
  input:not([readonly]),
  select,
  textarea {
    font-size: max(1rem, 16px) !important;
  }
}

.font-serif-heading {
  font-family: 'Newsreader', Georgia, serif;
}

/* Claude Card & Container Aesthetics */
.claude-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-warm);
  border-radius: 1rem;
  box-shadow: 0 4px 20px -2px rgba(45, 43, 40, 0.04), 0 2px 6px -1px rgba(45, 43, 40, 0.02);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.claude-card:hover {
  box-shadow: 0 8px 30px -4px rgba(45, 43, 40, 0.07), 0 4px 10px -2px rgba(45, 43, 40, 0.03);
}

.claude-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 500;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-cream);
}
::-webkit-scrollbar-thumb {
  background: #D6D1C7;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #B8B2A6;
}

/* Bottom Navigation Bar for Mobile */
.bottom-nav {
  background-color: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-warm);
}

/* Animation utilities */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 0.25s ease-out forwards;
}

/* Custom Pulse Badge for Active Pet Status */
.status-pulse {
  position: relative;
}
.status-pulse::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 8px; height: 8px;
  background-color: var(--accent-green);
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--bg-card);
}

/* Modern web standard for stable scrollbar gutter (prevents layout shift on overlays/modals) */
html {
  scrollbar-gutter: stable;
}

/* Allow root document to retain normal overflow so sticky header is never broken by GLightbox */
html.glightbox-open,
body.glightbox-open {
  overflow: visible !important;
  height: auto !important;
}

/* Fail-safe utility classes for standard body overlay locking */
body.overflow-hidden {
  overflow: hidden !important;
}
body.touch-none {
  touch-action: none !important;
}
body.overscroll-none {
  overscroll-behavior: none !important;
}

/* Lightbox Image Zoom Cursor & Hover Effects */
.glightbox {
  cursor: zoom-in;
}
.glightbox img {
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.glightbox:hover img {
  opacity: 0.95;
}

/* GLightbox Clean View - Remove bulky white description box on all screen sizes */
.gslide-description,
.gslide-title,
.gslide-desc,
.gdesc-inner,
.glightbox-clean .gslide-description,
.description-bottom,
.description-top,
.description-left,
.description-right {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  height: 0 !important;
  max-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.goverlay {
  background: rgba(15, 14, 12, 0.92) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Mobile Lightbox Breathing Room & Centered Premium Look */
@media (max-width: 768px) {
  .ginner-container {
    padding: 3rem 1.25rem !important;
  }
  .gslide-image img {
    max-height: 75dvh !important;
    max-height: 75vh !important;
    max-width: 90vw !important;
    margin: 0 auto !important;
    border-radius: 1.25rem !important;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5) !important;
    object-fit: contain !important;
  }
}

/* Padding stays in template utilities because Tailwind CDN styles are injected later. */
.app-select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%236B665F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 8 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 0.75rem;
}

.app-select::-ms-expand {
  display: none;
}

.app-select:disabled {
  background-image: none;
}
