/*
 * Danje Urmia — Soul Layer (Visual Warmth & Decorative Richness)
 * Filename: assets/css/soul.css
 *
 * This layer adds the "spirit" to the site:
 * decorative gold ornaments, section dividers, ambient glows,
 * richer hover micro-interactions, warm textures, and visual depth
 * that transform a functional layout into a living brand experience.
 */

/* ==========================================================================
   1. DECORATIVE SECTION DIVIDERS — Gold Ornaments Between Sections
   ========================================================================== */

/* The ornamental gold diamond + line divider between major sections */
.danje-section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding-block: 8px;
  max-width: 320px;
  margin-inline: auto;
  position: relative;
}

.danje-section-divider::before {
  content: "";
  display: block;
  flex: 1;
  height: 1.5px;
  background: linear-gradient(
    to left,
    var(--gold) 0%,
    transparent 100%
  );
}

.danje-section-divider::after {
  content: "";
  display: block;
  flex: 1;
  height: 1.5px;
  background: linear-gradient(
    to right,
    var(--gold) 0%,
    transparent 100%
  );
}

.danje-section-divider__icon {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  background-color: var(--gold);
  transform: rotate(45deg);
  margin-inline: 16px;
  opacity: 0.6;
  border-radius: 2px;
}

/* Variation: thinner, subtler divider */
.danje-section-divider--subtle {
  max-width: 160px;
  padding-block: 4px;
}

.danje-section-divider--subtle .danje-section-divider__icon {
  width: 8px;
  height: 8px;
  opacity: 0.4;
}

/* ==========================================================================
   2. AMBIENT GOLD GLOW ACCENTS — Soft radial light behind key sections
   ========================================================================== */

/* Soft gold ambient radial glow placed behind collection gateway header */
.danje-collection-header::before {
  content: "";
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse at center, rgba(201,168,76,0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

/* Ambient glow behind about-section image */
.danje-about-image-side::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: radial-gradient(ellipse at center, rgba(201,168,76,0.07) 0%, transparent 60%);
  pointer-events: none;
  z-index: -1;
}

/* Ambient glow behind FAQ image arch */
.faq-arch-wrap::after {
  content: "";
  position: absolute;
  inset: -30px;
  background: radial-gradient(ellipse at center, rgba(201,168,76,0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.danje-faq-image-side {
  position: relative;
}

/* ==========================================================================
   3. ENHANCED FEATURES ROW — More soulful, less generic
   ========================================================================== */

/* Add a decorative gold dot on top of each feature icon */
.danje-feature-card .icon {
  position: relative;
}

.danje-feature-card .icon::after {
  content: "";
  position: absolute;
  top: -4px;
  inset-inline-end: -4px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--gold);
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-spring);
  transform: scale(0);
}

.danje-feature-card:hover .icon::after {
  opacity: 0.7;
  transform: scale(1);
}

/* Subtle gold underline that grows on feature card hover */
.danje-feature-card h3 {
  position: relative;
  display: inline-block;
}

.danje-feature-card h3::after {
  content: "";
  position: absolute;
  bottom: -3px;
  inset-inline-end: 0;
  width: 0;
  height: 2px;
  background-color: var(--gold);
  border-radius: 2px;
  transition: width var(--dur-base) var(--ease-luxury);
}

.danje-feature-card:hover h3::after {
  width: 100%;
}

/* Richer feature card hover: subtle warm background tint */
.danje-feature-card {
  transition: transform var(--dur-base) var(--ease-out),
              background-color var(--dur-base) var(--ease-out);
}

.danje-feature-card:hover {
  background-color: var(--gold-muted);
  border-radius: var(--radius-md);
}

/* ==========================================================================
   4. RICHER NEWSLETTER SECTION — Warm, inviting, not clinical
   ========================================================================== */

/* Add a gold leaf decorative corner ornament to newsletter wrapper */
.danje-newsletter-wrapper {
  position: relative;
  overflow: hidden;
}

/* Top-right corner gold leaf accent */
.danje-newsletter-wrapper::before {
  content: "";
  position: absolute;
  top: -1px;
  inset-inline-end: -1px;
  width: 100px;
  height: 100px;
  background: radial-gradient(
    ellipse at top right,
    rgba(201,168,76,0.12) 0%,
    transparent 70%
  );
  pointer-events: none;
  border-radius: 0 var(--radius-xl) 0 100%;
}

/* Bottom-left corner gold leaf accent */
.danje-newsletter-wrapper::after {
  content: "";
  position: absolute;
  bottom: -1px;
  inset-inline-start: -1px;
  width: 100px;
  height: 100px;
  background: radial-gradient(
    ellipse at bottom left,
    rgba(201,168,76,0.10) 0%,
    transparent 70%
  );
  pointer-events: none;
  border-radius: 100% 0 0 var(--radius-xl);
}

/* Gold ornament icon above newsletter title */
.danje-newsletter-title {
  position: relative;
}

.danje-newsletter-title::before {
  content: "◆";
  display: block;
  font-size: 10px;
  color: var(--gold);
  opacity: 0.5;
  margin-bottom: 12px;
  letter-spacing: 8px;
}

/* ==========================================================================
   5. ENRICHED COLLECTION GATEWAY — Depth & character
   ========================================================================== */

/* Gold shimmer line along the bottom of the collection header title */
.danje-collection-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-shimmer), var(--gold));
  margin: 16px auto 0;
  border-radius: 2px;
  opacity: 0.6;
}

/* Gold corner accents on collection panels */
.danje-collection-panel::before {
  content: "";
  position: absolute;
  top: 16px;
  inset-inline-start: 16px;
  width: 24px;
  height: 24px;
  border-top: 2px solid var(--gold);
  border-inline-start: 2px solid var(--gold);
  opacity: 0;
  transition: opacity var(--dur-slow) var(--ease-luxury);
  z-index: 5;
  pointer-events: none;
  border-radius: 4px 0 0 0;
}

.danje-collection-panel::after {
  content: "";
  position: absolute;
  bottom: 16px;
  inset-inline-end: 16px;
  width: 24px;
  height: 24px;
  border-bottom: 2px solid var(--gold);
  border-inline-end: 2px solid var(--gold);
  opacity: 0;
  transition: opacity var(--dur-slow) var(--ease-luxury);
  z-index: 5;
  pointer-events: none;
  border-radius: 0 0 4px 0;
}

.danje-collection-panel:hover::before,
.danje-collection-panel:hover::after {
  opacity: 0.5;
}

/* ==========================================================================
   6. STAT CARDS — Animated counter feel
   ========================================================================== */

.stat-card {
  transition: transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out);
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-border);
  box-shadow: 0 8px 24px rgba(201,168,76,0.08);
}

.stat-card strong {
  transition: color var(--dur-base) var(--ease-out);
}

.stat-card:hover strong {
  color: var(--gold);
}

/* ==========================================================================
   7. FAQ ACCORDION ENRICHMENT — More alive, less static
   ========================================================================== */

/* Gold left-border indicator for active FAQ items */
.danje-accordion-item {
  border-inline-start: 3px solid transparent;
  transition: all var(--dur-base),
              border-inline-start-color var(--dur-base) var(--ease-out);
}

.danje-accordion-item.active {
  border-inline-start-color: var(--gold);
}

/* Hover warmth on FAQ items */
.danje-accordion-item:hover:not(.active) {
  background-color: rgba(201,168,76,0.03);
}

/* ==========================================================================
   8. BEST SELLERS ENRICHMENT — Gold rank emphasis
   ========================================================================== */

/* Top-3 gold accent for best sellers */
.danje-best-item:nth-child(-n+4) .danje-best-number {
  position: relative;
}

.danje-best-item:nth-child(-n+4) .danje-best-number::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 2px;
  background-color: var(--gold);
  border-radius: 2px;
  opacity: 0.5;
}

/* Hover warmth */
.danje-best-item {
  transition: box-shadow var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out),
              transform var(--dur-base) var(--ease-out);
}

.danje-best-item:hover {
  transform: translateY(-3px);
}

/* ==========================================================================
   9. HERO SLIDE — Richer text presentation
   ========================================================================== */

/* Add a subtle gold bar above the English eyebrow text */
.danje-hero-slide__title .en-text::before {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  background-color: var(--gold);
  margin-bottom: 12px;
  margin-inline-start: auto; /* RTL: align right */
  border-radius: 2px;
  opacity: 0.7;
}

/* ==========================================================================
   10. PRODUCT CARD ENRICHMENT — Premium hover polish
   ========================================================================== */

/* Add to cart button glow on card hover */
.danje-cart-btn {
  transition: all var(--dur-base) var(--ease-out);
}

.danje-product-card:hover .danje-cart-btn {
  background-color: var(--gold);
  color: #fff;
  box-shadow: 0 4px 12px rgba(201,168,76,0.25);
}

/* Product title: gold underline on hover */
.danje-product-title {
  position: relative;
  transition: color var(--dur-fast) var(--ease-out);
}

.danje-product-card:hover .danje-product-title {
  color: var(--gold-dark);
}

/* ==========================================================================
   11. CATEGORY CIRCLES — Pulse warmth
   ========================================================================== */

/* Subtle floating animation on the "view all" link */
.danje-home-favorites .danje-link-more,
.danje-home-categories .danje-link-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Category circle: gold ring pulse on hover */
.danje-category-circle:hover .danje-category-circle__border {
  animation: pulse-gold 2s ease-in-out infinite;
}

/* ==========================================================================
   12. SCROLL-TO-TOP BUTTON — Premium floating action
   ========================================================================== */

.danje-scroll-top {
  position: fixed;
  bottom: 32px;
  inset-inline-start: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--gold);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  opacity: 0;
  transform: translateY(20px) scale(0.8);
  transition: opacity var(--dur-base) var(--ease-out),
              transform var(--dur-base) var(--ease-spring),
              background-color var(--dur-fast) var(--ease-out);
  box-shadow: 0 4px 20px rgba(201,168,76,0.25),
              0 0 0 3px rgba(201,168,76,0.1);
  pointer-events: none;
}

.danje-scroll-top.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.danje-scroll-top:hover {
  background-color: var(--gold-dark);
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 30px rgba(201,168,76,0.35),
              0 0 0 3px rgba(201,168,76,0.15);
}

.danje-scroll-top:active {
  transform: translateY(0) scale(0.95);
}

/* ==========================================================================
   13. LOADING SKELETON WARMTH — Gold-tinted instead of gray
   ========================================================================== */

.danje-skeleton {
  background: linear-gradient(
    90deg,
    #F0EBE0 25%,
    #F8F3E8 37%,
    #F0EBE0 63%
  ) !important;
}

/* ==========================================================================
   14. GLOBAL LINK HOVER ANIMATION — Underline grows from right (RTL)
   ========================================================================== */

.danje-animated-link {
  position: relative;
  display: inline-block;
}

.danje-animated-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  inset-inline-end: 0;
  width: 0;
  height: 1.5px;
  background-color: var(--gold);
  border-radius: 2px;
  transition: width var(--dur-base) var(--ease-luxury);
}

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

/* ==========================================================================
   15. PRICE DISPLAY — Gold emphasis for prices
   ========================================================================== */

.danje-product-price {
  position: relative;
}

/* ==========================================================================
   16. BODY TEXTURE OVERLAY — Subtle paper grain
   ========================================================================== */

/* Extremely subtle noise overlay for texture across entire page */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 99999;
  opacity: 0.015;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
}

/* ==========================================================================
   17. FOOTER ENRICHMENT — Warm, not clinical
   ========================================================================== */

/* Gold top border accent on footer */
.danje-site-footer::before {
  content: "";
  display: block;
  height: 2px;
  background: linear-gradient(
    to left,
    transparent 0%,
    rgba(201,168,76,0.15) 20%,
    rgba(201,168,76,0.3) 50%,
    rgba(201,168,76,0.15) 80%,
    transparent 100%
  );
  margin-bottom: 0;
}

/* Contact list items: subtle hover warmth */
.danje-contact-list li {
  transition: color var(--dur-fast) var(--ease-out);
  cursor: default;
}

.danje-contact-list li:hover {
  color: var(--gold-dark);
}

/* Badge boxes: interactive hover */
.badge-box {
  transition: transform var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
}

.badge-box:hover {
  transform: translateY(-2px);
  border-color: var(--gold-border);
}

/* Footer logo name: gold shimmer on hover */
.danje-footer-logo strong {
  transition: color var(--dur-base) var(--ease-out);
}

.danje-footer-logo:hover strong {
  color: var(--gold);
}

/* App download buttons: gold accent hover */
.app-btn {
  transition: all var(--dur-fast) var(--ease-out) !important;
}

.app-btn:hover {
  border-color: var(--gold-border) !important;
  background-color: rgba(201,168,76,0.05) !important;
  transform: translateY(-2px);
}

/* ==========================================================================
   18. COUNTDOWN OFFERS — Timer glow
   ========================================================================== */

.timer-box {
  transition: transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out);
}

.timer-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 15px rgba(201,168,76,0.15);
}

/* ==========================================================================
   19. REDUCED MOTION RESPECT
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
