/* ==========================================================================
   CARO PRECIOSA — GLOBAL VARIABLES & STYLES
   ========================================================================== */

:root {
  --fuchsia: #FF00FF;
  --teal-deep: #40e0d0;
  --bg-color: #fdf8f5;
  --card-bg: #ffffff;
  --text-dark: #111111;
  --font-main: 'Baloo 2', cursive, sans-serif;
  --font-display: 'Bungee', cursive, sans-serif;
  --font-hand: 'Caveat', cursive, sans-serif;
}

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

body {
  background-color: var(--fuchsia);
  font-family: var(--font-main);
  color: var(--text-dark);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 10px;
}

/* Passcode Lock Screen Overlay */
.lock-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--fuchsia);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.lock-card {
  background: #ffffff;
  border: 4px solid #000000;
  border-radius: 24px;
  padding: 32px 24px;
  box-shadow: 8px 8px 0px #000000;
  text-align: center;
  max-width: 380px;
  width: 100%;
}

/* Background Canvas Layer */
#sparkle-canvas,
#confetti-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
}

/* App Container */
.app {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 850px;
  margin: 0 auto;
}

/* ==========================================================================
   NAVIGATION TABBAR
   ========================================================================== */

.tabbar {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.tab-btn {
  background: #ffffff;
  border: 3px solid #000000;
  border-radius: 30px;
  padding: 10px 22px;
  font-family: var(--font-main);
  font-weight: 800;
  font-size: 1.05rem;
  color: #000000;
  cursor: pointer;
  box-shadow: 4px 4px 0px #000000;
  transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.2s ease;
}

.tab-btn:hover {
  transform: translateY(-2px);
  box-shadow: 6px 6px 0px #000000;
}

.tab-btn.active {
  background: var(--fuchsia);
  color: #ffffff;
  transform: translateY(2px);
  box-shadow: 2px 2px 0px #000000;
}

/* ==========================================================================
   PANELS & CONTAINER CARDS
   ========================================================================== */

.panels {
  position: relative;
}

.panel {
  display: none;
  background: var(--bg-color);
  border: 4px solid #000000;
  border-radius: 28px;
  padding: 32px 24px;
  box-shadow: 8px 8px 0px #000000;
}

.panel.active {
  display: block;
}

.panel-content {
  max-width: 720px;
  margin: 0 auto;
}

.eyebrow {
  display: block;
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--fuchsia);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 6px;
  text-align: center;
}

.stamp-heading {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--fuchsia);
  text-align: center;
  margin-bottom: 12px;
  text-shadow: 2px 2px 0px #000000;
}

.sub {
  text-align: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--teal-deep);
  margin-bottom: 24px;
}

.card {
  background: var(--card-bg);
  border: 3px solid #000000;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 5px 5px 0px #000000;
  margin-top: 16px;
}

/* Buttons */
.peek-btn {
  display: inline-block;
  background: var(--teal-deep);
  color: #000000;
  border: 3px solid #000000;
  border-radius: 30px;
  padding: 12px 28px;
  font-family: var(--font-main);
  font-weight: 800;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 4px 4px 0px #000000;
  text-decoration: none;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.peek-btn:hover {
  transform: translateY(-2px);
  box-shadow: 6px 6px 0px #000000;
}

/* Badges */
.hero-badge-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 20px 0;
}

.badge {
  background: #ffffff;
  border: 2px solid #000000;
  border-radius: 20px;
  padding: 6px 16px;
  font-weight: 800;
  font-size: 0.95rem;
  box-shadow: 3px 3px 0px #000000;
}

/* ==========================================================================
   HOME / HERO SECTION
   ========================================================================== */

#panel-top .panel-content {
  text-align: center;
}

.hero-logo {
  font-family: var(--font-display);
  font-size: 3.5rem;
  color: var(--fuchsia);
  text-shadow: 3px 3px 0px #000000;
  line-height: 1;
  margin-bottom: 8px;
}

.hero-logo .dot-i {
  color: var(--teal-deep);
}

.hero-tag {
  display: inline-block;
  font-family: var(--font-hand);
  font-size: 2rem;
  font-weight: 700;
  color: var(--teal-deep);
  margin-bottom: 20px;
}

.photo-slot--circle {
  width: 180px;
  height: 180px;
  margin: 0 auto 20px;
  border-radius: 50%;
  border: 4px solid #000000;
  overflow: hidden;
  background: #f0f0f0;
  box-shadow: 5px 5px 0px #000000;
}

.photo-slot--circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-sub {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}

/* ==========================================================================
   GALLERY SECTION (STANDARDIZED PHOTO CARDS)
   ========================================================================== */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  padding: 12px 0;
}

.polaroid {
  background: #ffffff;
  border: 3px solid #000000;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 5px 5px 0px #000000;
  text-align: center;
  transition: transform 0.15s ease;
}

.polaroid:hover {
  transform: translateY(-4px);
}

/* Standardized photo frame size so long images don't cause massive scrolling */
.polaroid .frame {
  width: 100%;
  height: 240px;
  border: 2px solid #000000;
  border-radius: 10px;
  overflow: hidden;
  background-color: #f7f7f7;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.polaroid .frame img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Crops photos uniformly without stretching */
  display: block;
}

.polaroid .cap {
  font-family: var(--font-hand);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.2;
}

/* ==========================================================================
   POOP LOGGER SECTION & STANDARDIZED LOG ATTACHMENTS
   ========================================================================== */

.logger-card {
  max-width: 600px;
  margin: 0 auto;
}

.logger-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.swatch-label {
  font-weight: 800;
  font-size: 1rem;
  color: var(--fuchsia);
}

.logger-input,
.logger-textarea,
.logger-file-input {
  width: 100%;
  border: 2px solid #000000;
  border-radius: 12px;
  padding: 10px;
  font-family: var(--font-main);
  font-size: 1rem;
  background: #ffffff;
}

.logger-textarea {
  resize: vertical;
}

.logger-btn--small {
  align-self: flex-start;
  background: #ffffff;
  border: 2px solid #000000;
  border-radius: 8px;
  padding: 6px 12px;
  font-weight: 800;
  font-size: 0.85rem;
  cursor: pointer;
  box-shadow: 2px 2px 0px #000000;
}

.logger-divider {
  border: none;
  border-top: 3px dashed #000000;
  margin: 28px 0;
}

.logger-subheading {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--teal-deep);
  margin-bottom: 16px;
  text-align: center;
}

.logger-entries-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.logger-entry-card {
  background: #fdf8f5;
  border: 2px solid #000000;
  border-radius: 12px;
  padding: 14px;
  box-shadow: 3px 3px 0px #000000;
}

/* Standardized uploaded photos in Poop Log items */
.logger-entry-card img {
  width: 100%;
  max-width: 300px;
  max-height: 220px;
  object-fit: cover;
  border: 2px solid #000000;
  border-radius: 8px;
  display: block;
  margin: 10px auto 0;
}

.delete-btn {
  background: #ff4d4d;
  color: #ffffff;
  border: 2px solid #000000;
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 2px 2px 0px #000000;
}

/* ==========================================================================
   RESPONSIVE DESIGN (MOBILE ADJUSTMENTS)
   ========================================================================== */

@media (max-width: 600px) {
  .hero-logo {
    font-size: 2.6rem;
  }

  .tab-btn {
    padding: 8px 14px;
    font-size: 0.9rem;
  }

  .panel {
    padding: 20px 14px;
  }

  .polaroid .frame {
    height: 200px; /* Slightly shorter frame on mobile screens */
  }
}