/* ─────────────────────────────────────────
   pond-gallery.css — KitsCodes
───────────────────────────────────────── */

/* ── Wrapper da seção ── */
.pond-section-label {
  color: rgba(180,220,195,0.55);
  font-size: 1.4rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  margin-bottom: 10px;
  padding-left: 4px;
}

/* ── Pond ── */
#pond {
  position: relative;
  width: 100%;
  height: 800px;
  overflow: hidden;
  border-radius: 12px;
  background: radial-gradient(ellipse at 30% 40%, #1a3a2a 0%, #0d1f18 70%, #060e0b 100%);
  cursor: default;
}

.water-texture {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    repeating-linear-gradient(0deg,  transparent, transparent 80px,  rgba(255,255,255,0.012) 80px,  rgba(255,255,255,0.012) 81px),
    repeating-linear-gradient(90deg, transparent, transparent 120px, rgba(255,255,255,0.008) 120px, rgba(255,255,255,0.008) 121px);
}

.ambient-light {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 60% 30% at 20% 60%, rgba(34,100,60,0.18) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 80% 30%, rgba(20,70,50,0.15)  0%, transparent 70%),
    radial-gradient(ellipse 50% 25% at 55% 80%, rgba(10,50,35,0.12)  0%, transparent 70%);
}

/* ── Hint ── */
.hint {
  position: absolute;
  bottom: 14px;
  right: 18px;
  z-index: 100;
  color: rgba(160,210,180,0.3);
  font-size: 1rem;
  letter-spacing: 0.15em;
  pointer-events: none;
  font-family: 'Georgia', serif;
  transition: opacity 0.4s;
}
.hint.hidden { opacity: 0; }

/* ── Ripple layer ── */
#ripple-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
}

.ripple-group {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.ripple-ring {
  position: absolute;
  left: 0; top: 0;
  border-radius: 50%;
  border: 1px solid rgba(150,220,180,0.4);
  transform: translate(-50%, -50%);
  animation: ripple 1200ms ease-out forwards;
}
.ripple-ring:nth-child(2) { animation-delay: 180ms; }
.ripple-ring:nth-child(3) { animation-delay: 360ms; }

@keyframes ripple {
  0%   { width: 0px;   height: 0px;  opacity: 0.7; }
  100% { width: 120px; height: 60px; opacity: 0;   }
}

/* ── Leaf layer ── */
#leaf-layer {
  position: absolute;
  inset: 0;
  z-index: 10;
  width: 100%;
  height: 100%;
}

/* ── Leaf ── */
.leaf {
  position: absolute;
  cursor: grab;
  user-select: none;
  transition: transform 0.15s ease;
}
.leaf:active { cursor: grabbing; }

.leaf-inner {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 100%;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5), 0 2px 6px rgba(0,0,0,0.3);
  position: relative;
  transition: box-shadow 0.2s ease;
}
.leaf.selected .leaf-inner {
  box-shadow: 0 12px 40px rgba(0,0,0,0.7), 0 0 0 2px rgba(150,220,170,0.4);
}

.leaf img {
  width: 100%;
  height: 100%;
  opacity: 0.25;
  object-fit: cover;
  display: block;
  pointer-events: none;
  filter: brightness(0.82) saturate(0.9);
  transition: filter 0.5s ease, opacity 0.5s ease;
  -webkit-user-drag: none;
}
.leaf:hover img {
  opacity: 0.5;
  filter: brightness(0.9) saturate(1);
}
.leaf.selected img {
  filter: brightness(1.1) saturate(1.1);
}

.leaf-vein {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, transparent 30%, rgba(0,0,0,0.15) 100%);
  pointer-events: none;
}
.leaf-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.25) 0%, transparent 50%, rgba(255,255,255,0.04) 100%);
  pointer-events: none;
}

/* ── Detail overlay ── */
#detail-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(2,8,5,0.88);
  backdrop-filter: blur(14px);
  animation: fadeIn 0.3s ease;
}
#detail-overlay.hidden { display: none; }

@keyframes fadeIn  { from { opacity: 0 } to { opacity: 1 } }
@keyframes slideUp { from { opacity: 0; transform: translateY(24px) scale(0.96) } to { opacity: 1; transform: none } }

#detail-panel {
  position: relative;
  overflow: hidden;
  max-width: min(92vw, 1000px);
  width: fit-content;
  border: 1px solid rgba(100,180,130,0.15);
  border-radius: 18px;
  box-shadow: 0 40px 100px rgba(0,0,0,0.9), 0 0 80px rgba(20,80,50,0.12);
  animation: slideUp 0.35s cubic-bezier(0.2,0.8,0.3,1);
  font-family: Montserrat, sans-serif;
  background: #060e0b;
}

#detail-img-wrap {
  width: 100%;
  position: relative;
  line-height: 0;
}
#detail-img {
  width: 100%;
  max-height: 88vh;
  object-fit: contain;
  display: block;
}

.detail-img-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(4,14,9,0.95) 0%,
    rgba(4,14,9,0.5)  35%,
    transparent       65%
  );
  pointer-events: none;
}

#detail-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
#detail-meta {
  color: rgba(120,200,150,0.7);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
#detail-title {
  color: rgba(220,245,230,0.95);
  font-size: 28px;
  font-style: italic;
  line-height: 1.2;
}
.detail-divider {
  width: 64px;
  height: 2px;
  background: rgba(100,180,130,0.45);
  margin: 4px 0;
}
#detail-desc {
  color: rgba(170,215,188,0.75);
  font-size: 13px;
  line-height: 1.7;
  font-style: italic;
}

/* ── Botões do detail panel ── */
.detail-actions {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

#detail-expand {
  background: rgba(100,180,130,0.12);
  border: 1px solid rgba(100,180,130,0.35);
  color: rgba(160,220,180,0.85);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 7px 18px;
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.2s, color 0.2s;
  font-family: 'Georgia', serif;
}
#detail-expand:hover {
  background: rgba(100,180,130,0.25);
  color: rgba(200,240,210,1);
}

#detail-close {
  background: rgba(10,28,18,0.6);
  border: 1px solid rgba(100,180,130,0.3);
  color: rgba(140,200,160,0.7);
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  padding: 7px 18px;
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.2s, color 0.2s;
  font-family: 'Georgia', serif;
  backdrop-filter: blur(4px);
}
#detail-close:hover {
  background: rgba(100,180,130,0.15);
  color: rgba(180,230,200,0.95);
}

/* Botão X no canto superior direito */
#detail-overlay::after {
  content: '×';
  position: fixed;
  top: 20px;
  right: 28px;
  color: rgba(160,210,180,0.4);
  font-size: 32px;
  cursor: pointer;
  font-family: 'Georgia', serif;
  line-height: 1;
  transition: color 0.2s;
  pointer-events: none;
}

/* ── Fullscreen overlay ── */
#fullscreen-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(1,5,3,0.95);
  backdrop-filter: blur(20px);
  animation: fadeIn 0.25s ease;
}
#fullscreen-overlay.hidden { display: none; }

#fullscreen-panel {
  display: flex;
  width: 100%;
  height: 100%;
  font-family: Montserrat, sans-serif;
}

#fullscreen-img-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #020a05;
}
#fullscreen-img {
  max-width: 100%;
  max-height: 100vh;
  object-fit: contain;
  display: block;
  animation: slideUp 0.3s cubic-bezier(0.2,0.8,0.3,1);
}

#fullscreen-info {
  width: 300px;
  flex-shrink: 0;
  background: linear-gradient(180deg, rgba(10,22,16,0.98), rgba(5,14,10,1));
  border-left: 1px solid rgba(100,180,130,0.12);
  padding: 48px 32px 36px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
}
#fullscreen-meta {
  color: rgba(120,200,150,0.6);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
#fullscreen-title {
  color: rgba(220,245,230,0.95);
  font-size: 24px;
  font-style: italic;
  line-height: 1.25;
  margin-top: 4px;
}
.detail-divider {
  width: 64px;
  height: 2px;
  background: rgba(100,180,130,0.45);
  margin: 4px 0;
}
#fullscreen-desc {
  color: rgba(170,215,188,0.7);
  font-size: 13px;
  line-height: 1.75;
  font-style: italic;
  margin-top: 4px;
  flex: 1;
}
#fullscreen-close {
  margin-top: 28px;
  align-self: flex-start;
  background: none;
  border: 1px solid rgba(100,180,130,0.3);
  color: rgba(140,200,160,0.6);
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  padding: 7px 18px;
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.2s, color 0.2s;
  font-family: 'Georgia', serif;
}
#fullscreen-close:hover {
  background: rgba(100,180,130,0.1);
  color: rgba(180,230,200,0.95);
}