:root {
  /* Hot pink palette based on your image */
  --pink-hot: #ee6faa;      /* main hot pink */
  --pink-light: #ff85cc;    /* lighter hot pink */
  --pink-dark: #be5988;     /* darker accent pink */

  --blue-light: #d8efff;
  --blue: #8ed1ff;
  --bg: #fff7fb;
  --text-main: #4a2b3b;
  --card-bg: #ffffff;
  --shadow-soft: 0 12px 30px rgba(238, 111, 170, 0.35);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-pill: 999px;
  --transition-fast: 0.2s ease-out;
  --font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Global reset-ish */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-main);
  font-size: 16px;           /* bigger base */
  line-height: 1.5;

  background:
    linear-gradient(
      to bottom right,
      rgba(255, 160, 200, 0.25),
      rgba(255, 80, 150, 0.25) 40%,
      rgba(255, 60, 140, 0.35)
    ),
    linear-gradient(
      to top left,
      rgba(255, 255, 255, 0.12),
      transparent 60%
    ),
    #f1559e; /* solid hot pink base */

  color: var(--text-main);
  min-height: 100vh;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

/* ============================
   Site title ("We Love Piq")
   ============================ */

.site-title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 24px 16px 8px;
  width: 100%;
  max-width: 960px;
}

.site-title {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(24px, 4vw, 36px);
  display: inline-block;
  width: auto;
  max-width: none;
  margin: 0;

  color: #ffffff;
  letter-spacing: 2px;
  text-transform: uppercase;

  text-shadow:
    3px 3px 0 #ff69b4,
    6px 6px 0 #d94f99,
    9px 9px 0 rgba(0, 0, 0, 0.25);

  animation: snesFloat 3s ease-in-out infinite;
}

@keyframes snesFloat {
  0% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
  100% { transform: translateY(0); }
}

/* Outer shell */

.app-shell {
  width: 100%;
  max-width: 960px;
  margin: 32px 16px 40px;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.95),
    rgba(238, 111, 170, 0.96)
  );
  border-radius: 32px;
  box-shadow: var(--shadow-soft);
  padding: 24px 24px 28px;
  border: 1px solid rgba(238, 111, 170, 0.6);
  backdrop-filter: blur(12px);
  position: relative;
}

/* Admin login button (top-right corner) */

.admin-login {
  position: absolute;
  top: 16px;
  right: 20px;
  z-index: 50;
}

.admin-login-btn {
  display: inline-block;
  padding: 6px 16px;
  font-size: 14px;
  color: #1c2a4d;
  font-weight: 700;
  text-decoration: none;

  background: linear-gradient(135deg, #9ED8FF, #7EC7F9);
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(126, 199, 249, 0.45);

  transition:
    transform 0.15s ease-out,
    box-shadow 0.15s ease-out,
    filter 0.15s ease-out;
}

.admin-login-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 6px 16px rgba(126, 199, 249, 0.55);
}

.admin-login-btn:active {
  transform: translateY(0px) scale(0.97);
  box-shadow: 0 3px 6px rgba(126, 199, 249, 0.35);
}

/* Header inside shell */

.app-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  text-align: center;
}

/* Badge image (emoji-sized avatar) */

.shell-badge {
  display: flex;
  align-items: center;
  justify-content: center;
}

.shell-badge img {
  height: 40px;
  width: 40px;
  border-radius: 50%;
  object-fit: cover;

  background: white;
  padding: 3px;
  box-shadow:
    0 3px 8px rgba(0,0,0,0.20),
    0 0 0 2px rgba(255,255,255,0.85);
}

/* Accent pill banner */

.pill-accent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  padding: 12px 24px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(238, 111, 170, 0.95),
    rgba(255, 160, 210, 0.95)
  );
  border: 1px solid rgba(255, 255, 255, 0.8);

  font-size: clamp(14px, 1.6vw, 18px);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: #ffffff;
  width: min(100%, 740px);
  box-shadow: 0 6px 14px rgba(238, 111, 170, 0.5);
}

.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: radial-gradient(circle, var(--pink-hot), var(--pink-light));
  box-shadow: 0 0 8px rgba(238, 111, 170, 0.9);
}

/* Top nav buttons */

.nav-tabs {
  display: flex;
  gap: 8px;
  margin: 16px 0 8px;
  padding: 4px;
  border-radius: var(--radius-pill);
  background: linear-gradient(
    90deg,
    rgba(255, 190, 222, 0.85),
    rgba(216, 239, 255, 0.9)
  );
  border: 1px solid rgba(238, 111, 170, 0.6);
}

.nav-btn {
  flex: 1;
  border: none;
  background: transparent;
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  color: #a24a7a;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition:
    background var(--transition-fast),
    box-shadow var(--transition-fast),
    transform var(--transition-fast),
    color var(--transition-fast);
}

.nav-btn span.icon {
  font-size: 18px;
}

.nav-btn:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(238, 111, 170, 0.35);
}

.nav-btn.active {
  background: linear-gradient(135deg, var(--pink-light), var(--pink-hot));
  color: white;
  box-shadow: 0 10px 20px rgba(238, 111, 170, 0.55);
}

.nav-btn.active .icon {
  transform: translateY(-1px);
}

/* Content shell & views */

.content-shell {
  margin-top: 18px;
  border-radius: var(--radius-lg);
  background: radial-gradient(
    circle at top left,
    rgba(255, 205, 232, 0.8),
    rgba(255, 255, 255, 0.98)
  );
  padding: 22px 20px 24px;
  border: 1px solid rgba(238, 111, 170, 0.55);
  min-height: 300px;
}

.view-section {
  display: none;
  animation: fadeIn 0.25s ease-out;
}

.view-section.active {
  display: block;
}

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

/* Section header */

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(20px, 2.1vw, 24px);
  font-weight: 700;
  color: #8d345f;
}

.section-caption {
  font-size: 13px;
  color: #a06a82;
  opacity: 0.9;
}

/* Form styles */

#messageForm {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

#messageForm label {
  font-size: 15px;
  font-weight: 600;
  color: #7b4f63;
}

#messageForm input[type="text"],
#messageForm textarea {
  border-radius: 14px;
  border: 1px solid rgba(238, 111, 170, 0.7);
  padding: 11px 14px;
  font: inherit;
  font-size: 15px;
  resize: vertical;
  min-height: 48px;
  background: rgba(255, 255, 255, 0.95);
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    background var(--transition-fast),
    transform var(--transition-fast);
}

#messageForm textarea {
  min-height: 80px;
}

#messageForm input[type="text"]:focus,
#messageForm textarea:focus {
  outline: none;
  border-color: var(--pink-hot);
  box-shadow: 0 0 0 2px rgba(238, 111, 170, 0.4);
  background: #ffffff;
  transform: translateY(-1px);
}

/* Submit button */

.submit-btn {
  align-self: flex-start;
  margin-top: 8px;
  border-radius: var(--radius-pill);
  border: none;
  padding: 11px 20px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  color: white;
  background: linear-gradient(135deg, var(--pink-light), var(--pink-hot));
  box-shadow: 0 10px 20px rgba(238, 111, 170, 0.55);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    filter var(--transition-fast);
}

.submit-btn .icon {
  font-size: 18px;
}

.submit-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
  box-shadow: 0 12px 24px rgba(238, 111, 170, 0.65);
}

.submit-btn:active {
  transform: translateY(1px) scale(0.99);
  box-shadow: 0 6px 14px rgba(238, 111, 170, 0.4);
}

/* Messages list */

.messages-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
  max-height: 460px;
  overflow-y: auto;
  padding-right: 6px;
}

.message-card {
  border-radius: var(--radius-md);
  padding: 12px 14px 10px;
  background: linear-gradient(
    135deg,
    rgba(255, 205, 232, 0.95),
    rgba(255, 255, 255, 0.98)
  );
  border: 1px solid rgba(238, 111, 170, 0.7);
  box-shadow: 0 4px 10px rgba(238, 111, 170, 0.35);
  position: relative;
}

.message-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 4px;
}

.message-author {
  font-weight: 700;
  font-size: 15px;
  color: #8d345f;
}

.message-date {
  font-size: 12px;
  color: #a06a82;
  opacity: 0.9;
}

.message-section {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(238, 111, 170, 0.35);
  margin-top: 12px;
}

.message-section:first-of-type {
  margin-top: 4px;
}

.message-section-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--pink-dark);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.message-section-content {
  font-size: 15px;
  line-height: 1.5;
  color: #5f3f4d;
}

.message-tag {
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(216, 239, 255, 0.95);
  color: #436488;
  border: 1px solid rgba(142, 209, 255, 0.7);
}

/* Gallery */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-top: 6px;
  max-height: 460px;
  overflow-y: auto;
  padding-right: 4px;
}

.gallery-item {
  border-radius: 18px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 6px 14px rgba(216, 144, 186, 0.45);
  border: 1px solid rgba(238, 111, 170, 0.7);
  position: relative;
  aspect-ratio: 4 / 5;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease-out;
}

.gallery-item:hover img {
  transform: scale(1.03);
}

.gallery-badge {
  position: absolute;
  bottom: 8px;
  right: 10px;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(238, 111, 170, 0.92);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

/* Small screens */

@media (max-width: 640px) {
  body {
    font-size: 15px; /* slightly smaller but still readable */
  }

  .site-title-row {
    margin-top: 64px;   /* gives room for the admin button */
    margin-bottom: 8px;
    gap: 8px;
  }

  .app-shell {
    margin: 20px 10px 28px;
    padding: 18px 14px 22px;
    border-radius: 24px;
  }

  .content-shell {
    padding: 18px 12px 20px;
  }

  .nav-btn {
    font-size: 14px;
    padding-inline: 10px;
  }

  .section-caption {
    font-size: 12px;
  }

  #messageForm input[type="text"],
  #messageForm textarea {
    font-size: 15px;
  }

  .admin-login {
    top: 10px;
    right: 12px;
  }

  .admin-login-btn {
    font-size: 12px;
    padding: 4px 10px;
  }

}
/* end media */

/* Lightbox / Carousel */

.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 10vh;
  z-index: 1000;
}

.lightbox.open {
  display: flex;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at top,
    rgba(238, 111, 170, 0.35),
    rgba(0, 0, 0, 0.75)
  );
  backdrop-filter: blur(4px);
}

.lightbox-inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
  width: 90%;
  max-height: 80vh;
  background: radial-gradient(
    circle at top left,
    rgba(255, 205, 232, 0.98),
    rgba(255, 255, 255, 0.98)
  );
  border-radius: 24px;
  border: 1px solid rgba(238, 111, 170, 0.8);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
  padding: 18px 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-image-frame {
  width: 100%;
  max-height: 65vh;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: #000;
  overflow: hidden;
}

.lightbox-image {
  display: block;
  max-width: 100%;
  max-height: 65vh;
  width: auto;
  height: auto;
  object-fit: contain;
  background: #000;
}

/* Lightbox controls */

.lightbox-close {
  position: absolute;
  top: 10px;
  right: 14px;
  border: none;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  border-radius: 999px;
  width: 30px;
  height: 30px;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background var(--transition-fast),
    transform var(--transition-fast);
}

.lightbox-close:hover {
  background: rgba(0, 0, 0, 0.6);
  transform: translateY(-1px);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.95),
    rgba(238, 111, 170, 0.95)
  );
  color: #4a2b3b;
  border-radius: 999px;
  width: 40px;
  height: 40px;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    filter var(--transition-fast);
}

.lightbox-nav:hover {
  transform: translateY(-50%) scale(1.05);
  filter: brightness(1.05);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}

.lightbox-prev {
  left: 12px;
}

.lightbox-next {
  right: 12px;
}

.lightbox-counter {
  position: absolute;
  bottom: 10px;
  right: 18px;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Lightbox on small screens */

@media (max-width: 640px) {
  .lightbox-inner {
    padding: 14px 24px;
    border-radius: 18px;
  }

  .lightbox-nav {
    width: 34px;
    height: 34px;
    font-size: 20px;
  }

  .lightbox-counter {
    bottom: 8px;
    right: 14px;
  }
}

/* (Optional) Legacy pm-badge styles, safe to remove if unused */
.pm-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 64px;
  height: 64px;
  z-index: 20;
  border-radius: 50%;
  padding: 4px;
  background: #ffffff;
  box-shadow:
    0 4px 10px rgba(0, 0, 0, 0.25),
    0 0 0 2px rgba(0, 0, 0, 0.12);
  transform: rotate(-5deg);
}

.pm-badge img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: block;
}

@media (min-width: 700px) {
  .pm-badge:hover {
    transform: rotate(-3deg) translateY(-2px);
    box-shadow:
      0 8px 18px rgba(0, 0, 0, 0.35),
      0 0 0 2px rgba(0, 0, 0, 0.15);
  }
}

@media (max-width: 480px) {
  .pm-badge {
    width: 48px;
    height: 48px;
    top: 8px;
    left: 8px;
    transform: rotate(-4deg);
  }
}
