/**
 * Blush Prose - Romantic Literary Theme Enhancements
 * Visual effects, animations, and decorative styling
 */

/* ============================================
   DECORATIVE FRAMES
   ============================================ */

.elegant-frame {
  position: relative;
}

.elegant-frame::before,
.elegant-frame::after {
  content: '';
  position: absolute;
  width: 50px;
  height: 50px;
  border: 1px solid var(--wp--preset--color--accent-3);
  opacity: 0.4;
  z-index: 1;
  pointer-events: none;
}

.elegant-frame::before {
  top: -6px;
  left: -6px;
  border-right: none;
  border-bottom: none;
}

.elegant-frame::after {
  bottom: -6px;
  right: -6px;
  border-left: none;
  border-top: none;
}

/* Larger frame variant for featured images */
.elegant-frame-large::before,
.elegant-frame-large::after {
  width: 70px;
  height: 70px;
}

.elegant-frame-large::before {
  top: -10px;
  left: -10px;
}

.elegant-frame-large::after {
  bottom: -10px;
  right: -10px;
}

/* ============================================
   ANIMATIONS
   ============================================ */

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes floatSoft {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Entrance animations */
.animate-in {
  animation: fadeInUp 0.6s ease-out forwards;
}

.animate-fade {
  animation: fadeIn 0.8s ease-out forwards;
}

.animate-float {
  animation: floatSoft 4s ease-in-out infinite;
}

/* Staggered animations for lists/grids */
.animate-in:nth-child(1) { animation-delay: 0s; }
.animate-in:nth-child(2) { animation-delay: 0.1s; }
.animate-in:nth-child(3) { animation-delay: 0.2s; }
.animate-in:nth-child(4) { animation-delay: 0.3s; }
.animate-in:nth-child(5) { animation-delay: 0.4s; }
.animate-in:nth-child(6) { animation-delay: 0.5s; }
.animate-in:nth-child(7) { animation-delay: 0.6s; }
.animate-in:nth-child(8) { animation-delay: 0.7s; }
.animate-in:nth-child(9) { animation-delay: 0.8s; }
.animate-in:nth-child(10) { animation-delay: 0.9s; }

/* ============================================
   CARD HOVER EFFECTS
   ============================================ */

.review-card,
.is-style-review-card {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--wp--preset--color--accent-6);
  background: var(--wp--preset--color--base);
}

.review-card:hover,
.is-style-review-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(212, 101, 140, 0.12);
  border-color: var(--wp--preset--color--accent-3);
}

/* ============================================
   ELEGANT QUOTE STYLE
   ============================================ */

.wp-block-quote.is-style-elegant {
  position: relative;
  padding: 2rem 2.5rem;
  background: linear-gradient(135deg, var(--wp--preset--color--accent-5), var(--wp--preset--color--lavender));
  border: none;
  border-radius: 4px;
  margin: 2rem 0;
}

.wp-block-quote.is-style-elegant::before {
  content: '\201C';
  font-family: var(--wp--preset--font-family--script);
  font-size: 5rem;
  color: var(--wp--preset--color--accent-2);
  position: absolute;
  top: -0.5rem;
  left: 1rem;
  line-height: 1;
  opacity: 0.5;
}

.wp-block-quote.is-style-elegant p {
  font-style: italic;
  position: relative;
  z-index: 1;
}

.wp-block-quote.is-style-elegant cite {
  font-family: var(--wp--preset--font-family--script);
  font-size: 1.1rem;
  color: var(--wp--preset--color--accent-4);
  font-style: normal;
}

/* ============================================
   LINK HOVER ANIMATION
   ============================================ */

.elegant-link,
a.elegant-link {
  position: relative;
  text-decoration: none;
  transition: color 0.2s ease;
}

.elegant-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.3s ease;
}

.elegant-link:hover::after {
  width: 100%;
}

/* ============================================
   SECTION BACKGROUND STYLES
   ============================================ */

.is-style-section-blush,
.is-style-section-1 {
  background-color: var(--wp--preset--color--accent-5);
}

.is-style-section-mist,
.is-style-section-2 {
  background-color: var(--wp--preset--color--mist);
}

.is-style-section-rose,
.is-style-section-3 {
  background: linear-gradient(180deg, var(--wp--preset--color--base), var(--wp--preset--color--accent-1));
}

.is-style-section-gold {
  background: linear-gradient(135deg, var(--wp--preset--color--champagne), var(--wp--preset--color--mist));
}

/* ============================================
   STAR RATING
   ============================================ */

.star-rating {
  display: flex;
  gap: 2px;
  font-size: 1.2em;
  line-height: 1;
}

.star-rating .star {
  color: var(--wp--preset--color--gold);
}

.star-rating .star.empty {
  opacity: 0.3;
}

/* ============================================
   IMAGE STYLES
   ============================================ */

.wp-block-image.is-style-elegant-frame img {
  border-radius: 4px;
}

/* Soft shadow on images */
.wp-block-image img {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wp-block-image:hover img {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212, 101, 140, 0.08);
}

/* ============================================
   SEPARATOR ORNATE STYLE
   ============================================ */

.wp-block-separator.is-style-ornate {
  border: none;
  height: 30px;
  background: transparent;
  position: relative;
  overflow: visible;
}

.wp-block-separator.is-style-ornate::before {
  content: '❧';
  display: block;
  text-align: center;
  color: var(--wp--preset--color--accent-3);
  font-size: 1.5rem;
  line-height: 30px;
}

/* ============================================
   POST META STYLING
   ============================================ */

.wp-block-post-date,
.wp-block-post-terms {
  font-size: 0.9rem;
  color: var(--wp--preset--color--accent-4);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

.wp-block-post-terms a {
  color: var(--wp--preset--color--accent-3);
  text-decoration: none;
  transition: color 0.2s ease;
}

.wp-block-post-terms a:hover {
  color: var(--wp--preset--color--contrast);
}

/* ============================================
   BUTTON ENHANCEMENTS
   ============================================ */

.wp-block-button__link {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.wp-block-button__link::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.wp-block-button__link:hover::before {
  width: 300px;
  height: 300px;
}

/* ============================================
   NAVIGATION ENHANCEMENTS
   ============================================ */

.wp-block-navigation-item a {
  position: relative;
  transition: color 0.2s ease;
}

.wp-block-navigation-item a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--wp--preset--color--accent-3);
  transition: width 0.3s ease;
}

.wp-block-navigation-item a:hover::after,
.wp-block-navigation-item.current-menu-item a::after {
  width: 100%;
}

/* ============================================
   COVER BLOCK ENHANCEMENTS
   ============================================ */

.wp-block-cover {
  position: relative;
}

.wp-block-cover::before {
  transition: opacity 0.3s ease;
}

.wp-block-cover:hover::before {
  opacity: 0.9 !important;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-script {
  font-family: var(--wp--preset--font-family--script);
  font-size: 1.2em;
}

.text-gold {
  color: var(--wp--preset--color--gold);
}

.bg-gradient-rose-gold {
  background: linear-gradient(135deg, var(--wp--preset--color--accent-3), var(--wp--preset--color--gold));
}

.shadow-soft {
  box-shadow: 0 4px 16px rgba(212, 101, 140, 0.08);
}

.shadow-medium {
  box-shadow: 0 8px 24px rgba(212, 101, 140, 0.12);
}

.shadow-large {
  box-shadow: 0 16px 40px rgba(212, 101, 140, 0.16);
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 781px) {
  .elegant-frame::before,
  .elegant-frame::after {
    width: 35px;
    height: 35px;
  }

  .elegant-frame::before {
    top: -4px;
    left: -4px;
  }

  .elegant-frame::after {
    bottom: -4px;
    right: -4px;
  }

  .wp-block-quote.is-style-elegant {
    padding: 1.5rem 1.75rem;
  }

  .wp-block-quote.is-style-elegant::before {
    font-size: 3.5rem;
  }
}
