/* ===== BlessingBliss - Ancient Mystical Architecture ===== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700;800;900&display=swap');

/* ===== Warcraft-Style Temple Background Images ===== */

/* Hero section: grand temple interior */
.hero {
  background-image: 
    linear-gradient(180deg, 
      rgba(13, 11, 8, 0.55) 0%, 
      rgba(13, 11, 8, 0.35) 40%, 
      rgba(13, 11, 8, 0.7) 100%),
    url('/images/temple-hero-bg.jpg') !important;
  background-size: cover !important;
  background-position: center center !important;
  background-attachment: fixed;
}

/* Fixed body background: temple corridor */
body {
  background-image: 
    linear-gradient(180deg, 
      rgba(13, 11, 8, 0.78) 0%, 
      rgba(13, 11, 8, 0.72) 50%, 
      rgba(13, 11, 8, 0.78) 100%),
    url('/images/temple-corridor-bg.jpg') !important;
  background-size: cover !important;
  background-position: center center !important;
  background-attachment: fixed !important;
}

/* Features / CTA sections: temple ruins */
.features.section,
section.section.stone-wall {
  background-image: 
    linear-gradient(180deg, 
      rgba(13, 11, 8, 0.72) 0%, 
      rgba(26, 23, 20, 0.65) 50%, 
      rgba(13, 11, 8, 0.72) 100%),
    url('/images/temple-section-bg.jpg') !important;
  background-size: cover !important;
  background-position: center center !important;
  background-attachment: fixed;
}

/* ===== Stone Texture Background ===== */
.stone-texture {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.06;
  background-image: 
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

/* ===== Ancient Stone Wall Overlay ===== */
.stone-wall {
  position: relative;
}

.stone-wall::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.08;
  background-image: 
    linear-gradient(0deg, transparent 0%, rgba(201,162,39,0.1) 50%, transparent 100%),
    repeating-linear-gradient(90deg, 
      transparent 0px, transparent 78px, 
      rgba(201,162,39,0.3) 78px, rgba(201,162,39,0.3) 80px),
    repeating-linear-gradient(0deg, 
      transparent 0px, transparent 38px, 
      rgba(201,162,39,0.2) 38px, rgba(201,162,39,0.2) 40px);
}

/* ===== Gothic Arch Frame ===== */
.arch-frame {
  position: relative;
  display: inline-block;
  padding: 0;
}

.arch-frame::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  border: 2px solid rgba(201, 162, 39, 0.5);
  border-bottom: none;
  z-index: -1;
}

/* ===== Temple Hero Portal ===== */
.temple-portal {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  max-width: 90vw;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.3;
}

.temple-portal svg {
  width: 100%;
  height: 100%;
}

/* ===== Pillar / Column Elements ===== */
.temple-pillars {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  display: flex;
  justify-content: space-between;
  padding: 0 5%;
  opacity: 0.25;
}

.pillar {
  width: 60px;
  height: 100%;
  position: relative;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(201, 162, 39, 0.2) 15%, 
    rgba(201, 162, 39, 0.35) 50%, 
    rgba(201, 162, 39, 0.2) 85%, 
    transparent 100%);
}

/* Pillar capital (top decoration) */
.pillar::before {
  content: '';
  position: absolute;
  top: 60px;
  left: -15px;
  right: -15px;
  height: 30px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(201, 162, 39, 0.35) 20%, 
    rgba(201, 162, 39, 0.6) 50%, 
    rgba(201, 162, 39, 0.35) 80%, 
    transparent 100%);
  border-radius: 4px 4px 0 0;
}

/* Pillar base */
.pillar::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: -20px;
  right: -20px;
  height: 40px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(201, 162, 39, 0.35) 15%, 
    rgba(201, 162, 39, 0.6) 50%, 
    rgba(201, 162, 39, 0.35) 85%, 
    transparent 100%);
  border-radius: 0 0 4px 4px;
}

/* Pillar fluting (vertical lines) */
.pillar-flutes {
  position: absolute;
  top: 90px;
  bottom: 40px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-evenly;
}

.pillar-flutes::before,
.pillar-flutes::after {
  content: '';
  width: 1px;
  background: rgba(201, 162, 39, 0.4);
}

/* ===== Arch Top for Sections ===== */
.arch-section {
  position: relative;
  padding-top: 80px;
}

.arch-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  max-width: 80vw;
  height: 60px;
  border: 1px solid rgba(201, 162, 39, 0.3);
  border-bottom: none;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  pointer-events: none;
}

.arch-section::after {
  content: '';
  position: absolute;
  top: 50px;
  left: 50%;
  transform: translateX(-50%);
  width: 280px;
  max-width: 75vw;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 162, 39, 0.4), transparent);
  pointer-events: none;
}

/* ===== Keystone (拱顶石) ===== */
.keystone {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 24px;
  background: var(--bg-dark);
  border: 1px solid rgba(201, 162, 39, 0.4);
  clip-path: polygon(15% 0%, 85% 0%, 100% 100%, 0% 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.keystone::after {
  content: '';
  width: 8px;
  height: 8px;
  background: rgba(201, 162, 39, 0.5);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(201, 162, 39, 0.4);
}

/* ===== Temple Entrance (for hero) ===== */
.temple-entrance {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  max-width: 85vw;
  height: 80%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.2;
}

/* ===== Gothic Window Frame ===== */
.gothic-window {
  position: relative;
  width: 120px;
  height: 200px;
  margin: 0 auto;
}

.gothic-window::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 2px solid rgba(201, 162, 39, 0.3);
  border-radius: 50% 50% 0 0 / 60% 60% 0 0;
  clip-path: polygon(0 100%, 0 40%, 25% 0, 50% 0, 75% 0, 100% 40%, 100% 100%);
}

.gothic-window::after {
  content: '';
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 60%;
  background: rgba(201, 162, 39, 0.3);
}

/* ===== Stone Arch Header ===== */
.arch-header {
  position: relative;
  padding: 60px 0 20px;
}

.arch-header::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  max-width: 85vw;
  height: 2px;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(201, 162, 39, 0.1) 10%,
    rgba(201, 162, 39, 0.3) 50%, 
    rgba(201, 162, 39, 0.1) 90%,
    transparent);
}

/* ===== Ornamental Capital (柱头装饰) ===== */
.capital-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 24px 0;
  opacity: 0.8;
}

.capital-ornament .line {
  flex: 1;
  max-width: 200px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 162, 39, 0.4));
}

.capital-ornament .line:last-child {
  background: linear-gradient(90deg, rgba(201, 162, 39, 0.4), transparent);
}

.capital-ornament svg {
  width: 32px;
  height: 32px;
  color: var(--gold);
  flex-shrink: 0;
}

/* ===== Product Card as Shrine (神龛) ===== */
.product-card {
  position: relative;
}

/* Arch top on product card */
.product-card .product-image {
  position: relative;
}

.product-card .product-image::after {
  content: '';
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 30px;
  border: 1px solid rgba(201, 162, 39, 0.25);
  border-bottom: none;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  pointer-events: none;
  transition: opacity 0.4s ease, border-color 0.4s ease;
  opacity: 0.7;
}

.product-card:hover .product-image::after {
  border-color: rgba(201, 162, 39, 0.6);
  opacity: 1;
}

/* ===== Pediment (山墙) for Section Headers ===== */
.section-header {
  position: relative;
}

.section-header::before {
  content: '';
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 200px solid transparent;
  border-right: 200px solid transparent;
  border-bottom: 30px solid rgba(201, 162, 39, 0.08);
  pointer-events: none;
}

/* ===== Ancient Stone Border ===== */
.stone-border-top {
  position: relative;
}

.stone-border-top::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, 
    transparent 0%,
    rgba(201, 162, 39, 0.3) 20%,
    rgba(201, 162, 39, 0.6) 50%,
    rgba(201, 162, 39, 0.3) 80%,
    transparent 100%);
  box-shadow: 0 1px 0 rgba(201, 162, 39, 0.15);
}

.stone-border-bottom {
  position: relative;
}

.stone-border-bottom::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, 
    transparent 0%,
    rgba(201, 162, 39, 0.3) 20%,
    rgba(201, 162, 39, 0.6) 50%,
    rgba(201, 162, 39, 0.3) 80%,
    transparent 100%);
  box-shadow: 0 -1px 0 rgba(201, 162, 39, 0.15);
}

/* ===== Temple Steps (台阶) ===== */
.temple-steps {
  position: relative;
  height: 24px;
  margin-top: -1px;
}

.temple-steps::before,
.temple-steps::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  height: 1px;
  background: rgba(201, 162, 39, 0.2);
}

.temple-steps::before {
  bottom: 8px;
  width: 80%;
}

.temple-steps::after {
  bottom: 0;
  width: 100%;
  background: rgba(201, 162, 39, 0.3);
}

/* ===== Ancient Door / Portal ===== */
.ancient-door {
  position: relative;
  width: 200px;
  height: 300px;
  margin: 0 auto;
}

.ancient-door-frame {
  position: absolute;
  inset: 0;
  border: 2px solid rgba(201, 162, 39, 0.3);
  border-radius: 50% 50% 0 0 / 30% 30% 0 0;
  background: linear-gradient(180deg, 
    rgba(13, 11, 8, 0.8) 0%, 
    rgba(26, 23, 20, 0.6) 100%);
}

.ancient-door-frame::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: calc(100% - 40px);
  background: rgba(201, 162, 39, 0.2);
}

.ancient-door-frame::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  background: rgba(201, 162, 39, 0.4);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(201, 162, 39, 0.3);
}

/* ===== Rosette (圆形浮雕装饰) ===== */
.rosette {
  width: 48px;
  height: 48px;
  margin: 0 auto;
  position: relative;
  opacity: 0.6;
  transition: opacity 0.4s ease;
}

.rosette:hover {
  opacity: 1;
}

.rosette svg {
  width: 100%;
  height: 100%;
  color: var(--gold);
  animation: rotateSlow 30s linear infinite;
}

/* ===== Frieze (檐壁装饰带) ===== */
.frieze {
  position: relative;
  height: 40px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.25;
}

.frieze-pattern {
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='40'%3E%3Cg fill='none' stroke='%23c9a227' stroke-width='1'%3E%3Cpath d='M0 20 Q20 5 40 20 Q60 35 80 20'/%3E%3Cpath d='M0 20 Q20 35 40 20 Q60 5 80 20' opacity='0.5'/%3E%3Ccircle cx='40' cy='20' r='4'/%3E%3Cpath d='M10 10 L10 30 M70 10 L70 30' opacity='0.5'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 80px 40px;
}

/* ===== Cinzel Font for Headings ===== */
.arch-title {
  font-family: 'Cinzel', 'Cormorant Garamond', serif !important;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.section-header h2,
.hero h1,
.about-hero h1,
.section-header .accent {
  font-family: 'Cinzel', 'Cormorant Garamond', serif !important;
}

/* ===== Arched Container ===== */
.arched-container {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 50% 50% 8px 8px / 30px 30px 8px 8px;
  overflow: hidden;
}

/* ===== Crypt / Catacomb Pattern (拱顶走廊) ===== */
.crypt-arches {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  z-index: 0;
  pointer-events: none;
  opacity: 0.15;
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
}

.crypt-arch {
  width: 80px;
  height: 100px;
  border: 1px solid var(--gold);
  border-bottom: none;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  position: relative;
}

.crypt-arch::after {
  content: '';
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(201, 162, 39, 0.5);
}

/* ===== Enhanced Header with Temple Entablature ===== */
.header {
  position: relative;
}

.header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(201, 162, 39, 0.2) 10%,
    rgba(201, 162, 39, 0.5) 50%,
    rgba(201, 162, 39, 0.2) 90%,
    transparent 100%);
}

.header::before {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  right: 0;
  height: 4px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='8'%3E%3Cg fill='none' stroke='%23c9a227' stroke-width='0.5' opacity='0.3'%3E%3Cpath d='M0 4 L15 4 M30 4 L45 4'/%3E%3Ccircle cx='22' cy='4' r='2'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 60px 8px;
}

/* ===== Footer with Temple Base ===== */
.footer {
  position: relative;
}

.footer::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
  background-image: 
    linear-gradient(90deg,
      transparent 0%,
      rgba(201, 162, 39, 0.15) 5%,
      rgba(201, 162, 39, 0.4) 50%,
      rgba(201, 162, 39, 0.15) 95%,
      transparent 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='8'%3E%3Cg fill='none' stroke='%23c9a227' stroke-width='0.5' opacity='0.3'%3E%3Cpath d='M0 4 L12 4 M28 4 L40 4'/%3E%3Ccircle cx='20' cy='4' r='1.5'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat, repeat-x;
  background-size: 100% 100%, 40px 8px;
}

/* ===== Value Card as Temple Niche (壁龛) ===== */
.value-card {
  position: relative;
}

.value-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 20px;
  border: 1px solid rgba(201, 162, 39, 0.2);
  border-bottom: none;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  pointer-events: none;
  transition: border-color 0.4s ease;
}

.value-card:hover::before {
  border-color: rgba(201, 162, 39, 0.4);
}

/* ===== Customize Preview as Altar (祭坛) ===== */
.preview-card {
  position: relative;
}

.preview-card::after {
  content: '';
  position: absolute;
  bottom: 20px;
  left: 10%;
  right: 10%;
  height: 4px;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(201, 162, 39, 0.3) 20%, 
    rgba(201, 162, 39, 0.5) 50%, 
    rgba(201, 162, 39, 0.3) 80%, 
    transparent);
  border-radius: 2px;
  pointer-events: none;
}

/* ===== Torchlight Glow (火把光影) ===== */
.torch-glow {
  position: absolute;
  bottom: 20%;
  width: 200px;
  height: 300px;
  z-index: 0;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(40px);
}

.torch-left {
  left: 8%;
  background: radial-gradient(ellipse at bottom,
    rgba(255, 180, 60, 0.2) 0%,
    rgba(201, 162, 39, 0.1) 30%,
    rgba(201, 162, 39, 0.05) 50%,
    transparent 70%);
}

.torch-right {
  right: 8%;
  background: radial-gradient(ellipse at bottom,
    rgba(255, 180, 60, 0.2) 0%,
    rgba(201, 162, 39, 0.1) 30%,
    rgba(201, 162, 39, 0.05) 50%,
    transparent 70%);
}

/* ===== Reveal Animation for Architecture ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .temple-portal { width: 400px; }
  .pillar { width: 40px; }
  .crypt-arch { width: 60px; height: 80px; }
  .section-header::before {
    border-left-width: 150px;
    border-right-width: 150px;
  }
  .frieze { height: 30px; }
  .torch-glow { width: 120px; height: 200px; }
}
