/* ==========================================================================
   RuneHealing Core Widgets, 78-Card Tarot & 24-Rune Futhark Oracle Styles
   ========================================================================== */

.rh-altar {
  background: radial-gradient(circle at 20% 10%, #22423B 0%, #152925 75%);
  color: #F7F5F0;
  border: 1px solid #2D4D46;
  border-radius: 24px;
  padding: 36px 28px;
  text-align: center;
  position: relative;
}
.rh-altar-compact { padding: 26px 24px; }
.rh-altar h2, .rh-altar h3, .rh-altar h4 { color: #F7F5F0; }
.rh-altar-sub { color: #B6C4BF; max-width: 580px; margin: 0 auto 24px; font-size: 0.96rem; }

.rh-altar-switch {
  display: inline-flex; gap: 6px; padding: 5px; border-radius: 999px;
  background: rgba(255,255,255,0.06); border: 1px solid #2D4D46; margin-bottom: 22px;
}
.rh-altar-switch button {
  padding: 8px 18px; border-radius: 999px; border: none; background: transparent;
  color: #B6C4BF; font-weight: 600; font-size: 0.86rem; cursor: pointer;
  transition: all 0.2s ease;
}
.rh-altar-switch button.is-active { background: #C49B57; color: #152925; }

/* Rune Stones (for 3-Rune spread) */
.rh-stones-row {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin: 22px 0;
}
.rh-stone {
  width: 96px; height: 132px; border-radius: 16px; cursor: pointer;
  background: linear-gradient(160deg, #214039, #152925);
  border: 1.5px solid #3C635A; color: #C49B57;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 2.3rem; transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.rh-stone:hover { transform: translateY(-6px); border-color: #C49B57; box-shadow: 0 12px 26px rgba(0,0,0,0.28); }
.rh-stone.is-picked { background: #264A42; border-color: #C49B57; box-shadow: 0 0 0 2px rgba(196,155,87,0.35); }
.rh-stone-rev { transform: rotate(180deg); display: inline-block; }

/* ==========================================================================
   Rune Day Oracle Plaques (5-plaque fan + revealed carved plaque)
   ========================================================================== */
.rh-rune-deck {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin: 22px 0;
}
.rh-rune-slot {
  width: 112px; aspect-ratio: 5 / 8; cursor: pointer; perspective: 1000px;
  background: transparent; border: none; padding: 0;
  transition: transform 0.25s ease;
}
.rh-rune-slot:hover { transform: translateY(-8px); }
.rh-rune-slot-inner {
  width: 100%; height: 100%; border-radius: 14px; position: relative;
  background: radial-gradient(circle at 50% 35%, #284C44 0%, #162B26 78%, #10201D 100%);
  border: 1.5px solid #C49B57;
  box-shadow: 0 8px 20px rgba(0,0,0,0.38), inset 0 0 0 4px rgba(196,155,87,0.14);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  transition: transform 0.55s ease, box-shadow 0.25s ease;
}
.rh-rune-slot:hover .rh-rune-slot-inner {
  box-shadow: 0 14px 28px rgba(0,0,0,0.48), inset 0 0 0 4px rgba(196,155,87,0.32);
}
.rh-rune-slot-ring {
  position: absolute; width: 68px; height: 68px; border-radius: 50%;
  border: 1px dashed rgba(196,155,87,0.45); pointer-events: none;
}
.rh-rune-slot-glyph {
  font-size: 2.4rem; line-height: 1; color: #C49B57;
  text-shadow: 0 2px 10px rgba(196,155,87,0.35);
}
.rh-rune-slot-sub {
  font-size: 0.65rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(247,245,240,0.68); font-weight: 600;
}
.rh-rune-slot.flipping .rh-rune-slot-inner { transform: rotateY(180deg); }

/* Revealed Rune Plaque in Result Card */
.rh-rune-visual {
  width: 195px; aspect-ratio: 5 / 8; border-radius: 14px; flex-shrink: 0;
  border: 2px solid #C49B57; box-shadow: 0 10px 24px rgba(0,0,0,0.45);
  background: radial-gradient(circle at 50% 35%, #2C534A 0%, #172E29 75%, #11221E 100%);
  padding: 10px; box-sizing: border-box;
}
.rh-rune-plaque-face {
  width: 100%; height: 100%; border-radius: 10px; position: relative;
  border: 1px solid rgba(196,155,87,0.55);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 14px 10px; box-sizing: border-box; text-align: center;
}
.rh-rune-plaque-corner {
  position: absolute; font-size: 0.7rem; color: rgba(196,155,87,0.75); line-height: 1;
}
.rh-rune-plaque-corner.tl { top: 8px; left: 9px; }
.rh-rune-plaque-corner.tr { top: 8px; right: 9px; }
.rh-rune-plaque-corner.bl { bottom: 8px; left: 9px; }
.rh-rune-plaque-corner.br { bottom: 8px; right: 9px; }
.rh-rune-plaque-glyph {
  font-size: 5.2rem; line-height: 1; color: #E2BE79;
  text-shadow: 0 4px 18px rgba(196,155,87,0.45);
  margin-bottom: 14px;
}
.rh-rune-plaque-label {
  font-family: var(--rh-font-serif, Georgia, serif);
  font-size: 1.15rem; font-weight: 700; color: #F7F5F0; letter-spacing: 0.04em;
}
.rh-rune-plaque-brand {
  position: absolute; bottom: 10px; font-size: 0.62rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: rgba(196,155,87,0.75);
}

/* Sidebar adjustments for Rune Day */
.rh-tarot-sidebar .rh-rune-slot { width: 30%; max-width: 86px; }
.rh-tarot-sidebar .rh-rune-slot-ring { width: 48px; height: 48px; }
.rh-tarot-sidebar .rh-rune-slot-glyph { font-size: 1.8rem; }
.rh-tarot-sidebar .rh-rune-visual { width: 120px; margin: 0 auto; }
.rh-tarot-sidebar .rh-rune-plaque-glyph { font-size: 3.2rem; margin-bottom: 6px; }
.rh-tarot-sidebar .rh-rune-plaque-label { font-size: 0.9rem; }

/* Tarot Cards (with real card_back.png & 78 illustrations) */
.rh-tarot-deck {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin: 22px 0;
}
.rh-tarot-slot {
  width: 112px; aspect-ratio: 5 / 8; cursor: pointer; perspective: 1000px;
  background: transparent; border: none; padding: 0;
  transition: transform 0.25s ease;
}
.rh-tarot-slot:hover { transform: translateY(-8px); }
.rh-tarot-inner {
  width: 100%; height: 100%; border-radius: 12px; overflow: hidden;
  border: 1.5px solid #C49B57; box-shadow: 0 8px 20px rgba(0,0,0,0.38);
  transition: transform 0.55s ease; background: #1D3732;
}
.rh-tarot-inner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rh-tarot-slot.flipping .rh-tarot-inner { transform: rotateY(180deg); }

.rh-tarot-result-grid {
  display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap;
}
.rh-tarot-visual {
  width: 195px; border-radius: 12px; overflow: hidden;
  border: 2px solid #C49B57; box-shadow: 0 10px 24px rgba(0,0,0,0.45); flex-shrink: 0;
}
.rh-tarot-visual img { width: 100%; height: auto; display: block; }
.rh-tarot-info { flex: 1; min-width: 240px; }

.rh-result-box {
  background: rgba(255,255,255,0.06); border: 1px solid #2D4D46;
  border-radius: 18px; padding: 24px; margin-top: 22px; text-align: left;
  max-width: 780px; margin-left: auto; margin-right: auto;
}
.rh-advice-callout {
  background: rgba(196, 155, 87, 0.12);
  border-left: 3px solid #C49B57;
  padding: 10px 14px;
  border-radius: 6px;
  margin-top: 10px;
  font-size: 0.94rem;
}

.rh-result-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; align-items: center; }
.rh-share-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 7px 14px; border-radius: 999px; font-size: 0.8rem; font-weight: 700;
  color: #FFFFFF !important; text-decoration: none !important; transition: opacity 0.2s ease;
}
.rh-share-btn:hover { opacity: 0.88; }
.rh-s-tg { background: #229ED9; }
.rh-s-vk { background: #0077FF; }
.rh-s-ok { background: #EE8208; }
.rh-s-max { background: #6A3DE8; }

.rh-related-articles {
  margin-top: 20px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.14);
}
.rh-related-articles h4 { font-size: 1.05rem; color: #C49B57; margin-bottom: 8px; }
.rh-related-articles ul { margin: 0; padding-left: 18px; }
.rh-related-articles li { margin-bottom: 6px; font-size: 0.92rem; }
.rh-related-articles a { color: #F7F5F0; text-decoration: underline; }
.rh-related-articles a:hover { color: #C49B57; }

/* Compact Sidebar Tarot & Rune Widget */
.rh-tarot-sidebar {
  background: radial-gradient(circle at 20% 10%, #22423B 0%, #152925 75%);
  color: #F7F5F0; border: 1px solid #2D4D46; border-radius: 16px;
  padding: 16px; margin-bottom: 20px;
}
.rh-tarot-sidebar-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.rh-tarot-sidebar-title {
  font-family: var(--rh-font-serif, Georgia, serif);
  font-size: 1.15rem; font-weight: 700; color: #C49B57;
}
.rh-tarot-sidebar-toggle {
  background: rgba(196, 155, 87, 0.16); color: #C49B57;
  border: 1px solid rgba(196, 155, 87, 0.45); border-radius: 999px;
  padding: 4px 12px; font-size: 0.78rem; font-weight: 600; cursor: pointer;
}
@media (min-width: 992px) {
  .rh-tarot-sidebar-toggle { display: none; }
}
.rh-tarot-sidebar.is-collapsed .rh-tarot-sidebar-body { display: none; }
.rh-tarot-sidebar .rh-tarot-slot { width: 30%; max-width: 86px; }
.rh-tarot-sidebar .rh-tarot-visual { width: 110px; margin: 0 auto; }

/* Zodiac bar */
.rh-zodiac-strip { display: grid; grid-template-columns: repeat(12, 1fr); gap: 8px; }
.rh-zodiac-item {
  background: #FFFFFF; border: 1px solid #E6E1D6; border-radius: 14px;
  padding: 12px 6px; text-align: center; transition: all 0.2s ease;
}
.rh-zodiac-item:hover { border-color: #C49B57; transform: translateY(-2px); }
.rh-zodiac-glyph { font-size: 1.35rem; color: #5E7870; display: block; margin-bottom: 4px; }
.rh-zodiac-name { font-size: 0.76rem; font-weight: 600; }

/* Lunar informer */
.rh-lunar-bar {
  background: #FFFFFF; border: 1px solid #E6E1D6; border-radius: 20px;
  padding: 22px 26px; display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 18px;
}
.rh-lunar-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.rh-lunar-pill {
  padding: 6px 14px; border-radius: 999px; font-size: 0.84rem; font-weight: 600;
  background: #F7F5F0; border: 1px solid #E6E1D6;
}

/* Futhark Grid */
.rh-futhark-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px; }
.rh-futhark-cell {
  background: #FFFFFF; border: 1px solid #E6E1D6; border-radius: 14px;
  padding: 14px 8px; text-align: center; cursor: pointer; transition: all 0.2s ease;
}
.rh-futhark-cell:hover, .rh-futhark-cell.is-active { border-color: #C49B57; background: #FAF7F0; }
.rh-futhark-glyph { font-size: 1.9rem; color: #152925; line-height: 1.1; }
.rh-futhark-name { font-size: 0.78rem; font-weight: 600; color: #5C6662; margin-top: 4px; }

/* Dice */
.rh-dice-tray { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; margin: 22px 0; }
.rh-die {
  min-width: 150px; padding: 18px; border-radius: 16px;
  background: #1D3732; border: 1.5px solid #C49B57; color: #F7F5F0;
}
.rh-die.is-rolling { animation: rhShake 0.45s ease; }
@keyframes rhShake {
  0%,100% { transform: rotate(0deg) scale(1); }
  25% { transform: rotate(-7deg) scale(1.06); }
  75% { transform: rotate(7deg) scale(1.06); }
}

@media (max-width: 1024px) {
  .rh-zodiac-strip { grid-template-columns: repeat(6, 1fr); }
  .rh-futhark-grid { grid-template-columns: repeat(6, 1fr); }
}
@media (max-width: 640px) {
  .rh-zodiac-strip { grid-template-columns: repeat(4, 1fr); }
  .rh-futhark-grid { grid-template-columns: repeat(4, 1fr); }
  .rh-tarot-slot, .rh-rune-slot { width: 86px; }
  .rh-tarot-visual, .rh-rune-visual { width: 150px; margin: 0 auto; }
  .rh-rune-plaque-glyph { font-size: 4rem; }
}
