/* ═══════════════════════════════════════════════════════════
   DDH Dog Hotel — Memorial Page Styles
   Usage: [ddh_memorials] shortcode
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Inter:wght@300;400;500&display=swap');

/* Page Container */
.ddh-memorial-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px 60px;
  font-family: 'Inter', -apple-system, sans-serif;
}

/* Header */
.ddh-memorial-header {
  text-align: center;
  padding: 40px 20px 50px;
  margin-bottom: 40px;
}

.ddh-memorial-icon {
  font-size: 64px;
  margin-bottom: 16px;
  animation: ddh-flicker 3s ease-in-out infinite;
}

.ddh-memorial-header h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 36px;
  font-weight: 700;
  color: #2c2c2c;
  margin: 0 0 12px;
  letter-spacing: 0.5px;
}

.ddh-memorial-header p {
  font-size: 16px;
  color: #777;
  margin: 0;
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto;
}

/* Grid */
.ddh-memorial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

/* Card */
.ddh-memorial-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.ddh-memorial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Photo */
.ddh-memorial-photo {
  width: 100%;
  height: 240px;
  overflow: hidden;
  background: linear-gradient(135deg, #f5f0eb 0%, #e8e0d8 100%);
  position: relative;
}

.ddh-memorial-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85);
  transition: filter 0.3s ease;
}

.ddh-memorial-card:hover .ddh-memorial-photo img {
  filter: saturate(1);
}

.ddh-memorial-no-photo {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  opacity: 0.3;
}

/* Info */
.ddh-memorial-info {
  padding: 24px 24px 28px;
}

.ddh-memorial-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 24px;
  font-weight: 600;
  color: #2c2c2c;
  margin: 0 0 4px;
}

.ddh-memorial-breed {
  display: inline-block;
  font-size: 13px;
  color: #999;
  font-weight: 400;
  margin-bottom: 8px;
}

.ddh-memorial-dates {
  font-size: 13px;
  color: #888;
  margin-bottom: 16px;
  letter-spacing: 0.3px;
}

.ddh-memorial-message {
  margin: 0 0 12px;
  padding: 14px 18px;
  border-left: 3px solid #d4a574;
  background: #faf8f5;
  border-radius: 0 8px 8px 0;
  font-size: 14px;
  line-height: 1.65;
  color: #555;
  font-style: italic;
}

.ddh-memorial-owner {
  display: block;
  font-size: 13px;
  color: #aaa;
  text-align: right;
  font-style: italic;
}

/* Candle */
.ddh-memorial-candle {
  position: absolute;
  top: 12px;
  right: 14px;
  font-size: 24px;
  opacity: 0.7;
  animation: ddh-flicker 4s ease-in-out infinite;
}

/* Empty state */
.ddh-memorial-empty {
  text-align: center;
  padding: 60px 20px;
  color: #aaa;
  font-size: 16px;
}

/* Flicker animation */
@keyframes ddh-flicker {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

/* Responsive */
@media (max-width: 640px) {
  .ddh-memorial-header h2 {
    font-size: 28px;
  }
  .ddh-memorial-grid {
    grid-template-columns: 1fr;
  }
  .ddh-memorial-photo {
    height: 200px;
  }
}
