/**
 * Wood Theme Styles - "Grand Vintage Coffee Board"
 * An extreme skeuomorphic design with deep carving, gold inlay, and ornate ironwork.
 */

@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@700;900&family=Noto+Serif+SC:wght@700&display=swap');

.theme-wood {
  font-family: 'Cinzel Decorative', 'Noto Serif SC', serif;
  background-color: #1a0f0a;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
}

/* ── The Physical Board ── */
.theme-wood .wood-board {
  position: absolute;
  top: 5%; left: 5%; right: 5%; bottom: 5%;
  background: #3d2516;
  /* Deep, rich mahogany texture using multiple gradients */
  background-image: 
    linear-gradient(90deg, rgba(0,0,0,0.1) 0%, transparent 1%, transparent 99%, rgba(0,0,0,0.1) 100%),
    repeating-linear-gradient(
      180deg,
      rgba(0,0,0,0.15) 0px,
      rgba(0,0,0,0.15) 1px,
      transparent 1px,
      transparent 4px
    ),
    radial-gradient(ellipse at 50% 50%, rgba(90,50,20,0.2) 0%, rgba(40,20,10,0.4) 100%);
  box-shadow: 
    0 30px 60px rgba(0,0,0,0.8),
    inset 0 0 100px rgba(0,0,0,0.5);
  border-radius: 4px;
  z-index: 1;
}

/* ── Multi-tiered Luxury Frame ── */
.theme-wood .frame-layer {
  position: absolute;
  pointer-events: none;
  z-index: 10;
}

.theme-wood .frame-outer {
  top: 0; left: 0; right: 0; bottom: 0;
  border: 40px solid #2a180d;
  border-image: linear-gradient(135deg, #4d2d18 0%, #1a0f0a 50%, #4d2d18 100%) 1;
  box-shadow: 
    inset 0 0 20px rgba(0,0,0,0.8),
    0 10px 30px rgba(0,0,0,0.5);
}

.theme-wood .frame-inner {
  top: 40px; left: 40px; right: 40px; bottom: 40px;
  border: 4px solid #b8860b; /* Gold pinstripe */
  opacity: 0.4;
  box-shadow: inset 0 0 10px rgba(0,0,0,1);
}

/* ── Ornate Ironwork Corners ── */
.theme-wood .ornament {
  position: absolute;
  width: 120px;
  height: 120px;
  z-index: 15;
  background-size: contain;
  background-repeat: no-repeat;
  filter: drop-shadow(2px 4px 6px rgba(0,0,0,0.8));
  opacity: 0.9;
}

/* Using CSS to draw a classic filigree shape */
.theme-wood .ornament::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border: 8px solid #8b6508;
  border-bottom: none;
  border-right: none;
  border-radius: 100% 0 0 0;
}

.theme-wood .ornament::after {
  content: '';
  position: absolute;
  top: 20px; left: 20px;
  width: 40px; height: 40px;
  background: radial-gradient(circle, #ffd700, #8b6508);
  border-radius: 50%;
  box-shadow: 2px 2px 5px rgba(0,0,0,0.5);
}

.theme-wood .orn-tl { top: 20px; left: 20px; transform: rotate(0deg); }
.theme-wood .orn-tr { top: 20px; right: 20px; transform: rotate(90deg); }
.theme-wood .orn-bl { bottom: 20px; left: 20px; transform: rotate(-90deg); }
.theme-wood .orn-br { bottom: 20px; right: 20px; transform: rotate(180deg); }

/* ── Lighting & Atmosphere ── */
.theme-wood .lighting-vignette {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 20;
  background: radial-gradient(circle at 50% 40%, transparent 20%, rgba(0,0,0,0.6) 100%);
  pointer-events: none;
}

.theme-wood .lighting-spot {
  position: absolute;
  top: -50%; left: -50%; width: 200%; height: 200%;
  z-index: 21;
  background: radial-gradient(circle at 50% 50%, rgba(255,240,200,0.08) 0%, transparent 30%);
  pointer-events: none;
  animation: light-drift 15s ease-in-out infinite;
}

@keyframes light-drift {
  0%, 100% { transform: translate(-5%, -5%); }
  50% { transform: translate(5%, 5%); }
}

/* ── Deep Gold Carved Text ── */
.theme-wood .wood-sign-text,
.theme-wood .wood-flow-text {
  position: relative;
  z-index: 12;
  color: #ffd700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: center;
  /* Complex multi-layer carving effect */
  text-shadow: 
    /* The "Depth" of the cut */
    0 1px 0 #8b6508,
    0 2px 0 #7a5a07,
    0 3px 0 #694f06,
    0 4px 0 #584405,
    /* The Inner Shadow (Carving) */
    inset 0 2px 5px rgba(0,0,0,0.8),
    /* The Bottom highlight (Edge of the cut) */
    0 5px 1px rgba(255,255,255,0.2),
    /* The Ambient Glow */
    0 0 20px rgba(218,165,32,0.3);
  
  background: linear-gradient(to bottom, #ffd700 0%, #b8860b 50%, #ffd700 100%);
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 10px 15px rgba(0,0,0,0.6));
}

.theme-wood .wood-flow-track {
  position: relative;
  z-index: 12;
  display: flex;
  align-items: center;
}

/* ── Decorative Flourish Below Text ── */
.theme-wood .text-divider {
  width: 60%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ffd700, transparent);
  margin-top: 20px;
  position: relative;
  opacity: 0.6;
}

.theme-wood .text-divider::after {
  content: '◈';
  position: absolute;
  top: -10px; left: 50%;
  transform: translateX(-50%);
  color: #ffd700;
  font-size: 20px;
}


