/* =====================================================================
   TELA: FOTOS (álbuns por dia, galeria, área administrativa)
   + mensagem de FEEDBACK (compartilha esta folha).
   ===================================================================== */

.photos-content {
  padding: 28px 22px 32px;
}

.photos-content h3 {
  margin: 0 0 6px;
  font-size: 1.34rem;
  line-height: 1.1;
  color: var(--navy);
}

.photos-intro {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
  max-width: 60ch;
}

.photos-note {
  color: var(--muted);
  font-size: 0.85rem;
  font-style: italic;
}

.photos-empty {
  margin: 8px 0;
  padding: 40px 20px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ===== Mensagem de Feedback ===== */
.feedback-content {
  display: grid;
  align-items: flex-start;
  grid-template-columns: minmax(0, 480px);
  justify-content: center;
  gap: 28px;
  padding: 38px 22px;
}

.feedback-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: 100%;
  min-height: 430px;
  max-width: 480px;
  margin: 0 auto;
  padding: 38px 26px 30px;
  border: 1px solid rgba(0, 46, 95, 0.1);
  border-radius: 22px;
  background: linear-gradient(160deg, #fff 35%, #f1f7fc 100%);
  box-shadow: 0 12px 32px rgba(0, 46, 95, 0.1);
  text-align: center;
}

.feedback-icon {
  display: grid;
  width: 88px;
  height: 88px;
  place-items: center;
  border-radius: 50%;
  background: var(--navy);
  box-shadow: 0 10px 24px rgba(0, 46, 95, 0.25);
}

.feedback-icon svg {
  width: 48px;
  height: 48px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feedback-copy {
  max-width: 390px;
}

.feedback-eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  color: #0872bd;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.feedback-copy h3 {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: 1.42rem;
  line-height: 1.2;
}

.feedback-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.6;
}

.feedback-button {
  display: inline-flex;
  width: auto;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 12px;
  background: var(--navy);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(0, 46, 95, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.feedback-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feedback-button:hover,
.feedback-button:focus-visible {
  background: #005ca9;
  box-shadow: 0 11px 25px rgba(0, 46, 95, 0.3);
  outline: none;
  transform: translateY(-2px);
}

.feedback-button:active {
  transform: translateY(0);
}

.feedback-note {
  color: #7b8996;
  font-size: 0.72rem;
}

@media (max-width: 520px) {
  .feedback-content {
    grid-template-columns: 1fr;
    gap: 26px;
  }
}

@media (max-width: 380px) {
  .feedback-content {
    padding: 28px 16px;
  }

  .feedback-message {
    min-height: 390px;
    padding: 30px 18px 26px;
  }

  .feedback-icon {
    width: 76px;
    height: 76px;
  }

  .feedback-icon svg {
    width: 42px;
    height: 42px;
  }

  .feedback-copy h3 {
    font-size: 1.25rem;
  }
}

/* ===== Álbuns por dia (capas) ===== */
.albums-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 6px;
}

.album-cover {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  background: #fff;
  box-shadow: 0 8px 22px rgba(0, 41, 84, 0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  aspect-ratio: 1 / 1;
}

.album-cover:hover,
.album-cover:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0, 41, 84, 0.32);
  outline: none;
}

.album-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.album-cover:hover img {
  transform: scale(1.05);
}

.album-cover-info {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.album-cover-title {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.album-cover-count {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 2px 8px rgba(0, 41, 84, 0.28);
}

/* Botão voltar aos álbuns */
.albums-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 14px;
  padding: 7px 14px 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.albums-back:hover {
  background: var(--paper, #f8f8f7);
  border-color: var(--navy);
}

.albums-back svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ===== Galeria (grid de portfólio) ===== */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.photo-item {
  position: relative;
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #e9eaed;
  box-shadow: 0 4px 14px rgba(7, 29, 60, 0.1);
  aspect-ratio: 4 / 3;
  cursor: pointer;
}

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

.photo-item:hover img,
.photo-item:focus-within img {
  transform: scale(1.06);
}

.photo-item figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 22px 12px 10px;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.3;
  background: linear-gradient(180deg, rgba(0, 20, 45, 0) 0%, rgba(0, 20, 45, 0.82) 100%);
}

.photo-delete {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 50%;
  background: rgba(198, 40, 40, 0.92);
  color: #fff;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  z-index: 2;
}

.photo-delete:hover {
  background: #b71c1c;
}

/* ===== Área administrativa (discreta, rodapé do cartão) ===== */
.admin-area {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  text-align: right;
}

.admin-toggle {
  background: none;
  border: none;
  padding: 6px 2px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  opacity: 0.45;
  transition: opacity 0.15s ease, color 0.15s ease;
}

.admin-toggle:hover,
.admin-toggle:focus-visible {
  opacity: 0.95;
  color: var(--navy);
  text-decoration: underline;
}

.admin-login,
.admin-panel {
  text-align: left;
  margin: 14px auto 0;
  max-width: 420px;
  padding: 18px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 6px 20px rgba(7, 29, 60, 0.08);
}

.admin-login label,
.admin-panel label {
  display: block;
  margin: 10px 0 4px;
  color: var(--navy);
  font-size: 0.8rem;
  font-weight: 700;
}

.admin-login label:first-child,
.admin-panel form label:first-of-type {
  margin-top: 0;
}

.admin-login input,
.admin-panel input,
.admin-panel select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.9rem;
  background: #fff;
}

.admin-login input[type="file"],
.admin-panel input[type="file"] {
  padding: 8px;
  background: #fff;
}

.admin-submit {
  margin-top: 14px;
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.15s ease;
}

.admin-submit:hover {
  background: var(--navy-deep);
}

.admin-error {
  margin: 10px 0 0;
  color: #c0392b;
  font-size: 0.8rem;
  font-weight: 600;
}

.admin-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.admin-panel-head strong {
  color: var(--navy);
  font-size: 0.88rem;
}

.admin-logout {
  background: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 5px 12px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}

.admin-logout:hover {
  color: var(--navy);
  border-color: var(--navy);
}

.admin-status {
  margin: 10px 0 0;
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 600;
  min-height: 1em;
}

/* ===== Media queries da tela de Fotos ===== */
@media (min-width: 620px) {
  .albums-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

@media (min-width: 560px) {
  .photo-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
}

@media (min-width: 781px) {
  .photos-content {
    padding-top: 42px;
  }

  .photos-content h3 {
    font-size: 1.6rem;
  }

  .photo-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
}

@media (min-width: 1100px) {
  .photo-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}
