/* tarot.css — Dark Alice Tarot/Oracle window + per-theme skin overrides */

/* ==========================================
   DARK ALICE TAROT / ORACLE WINDOW (THEMED CARDS & NAVBAR)
   ========================================== */

#oracle-window {
  width: 420px;
  background: #0b0f0e !important;
  border: 1px solid #00ffcc !important;
  box-shadow: 0 0 20px rgba(0, 255, 204, 0.4) !important;
  color: #00ffcc;
  font-family: 'Courier New', Courier, monospace;
  margin: 0;
  user-select: none;
  border-radius: 6px 6px 0 0;
  overflow: hidden;
  contain: content;
}

/* Base Window Body & Pseudo Elements */
#oracle-window .window-body,
#oracle-window .win-body,
#oracle-window .window-body::before,
#oracle-window .window-body::after {
  background: #00080a !important;
  background-image: none !important;
  color: #00ffcc !important;
}

/* Base Titlebar */
#oracle-window .aero-titlebar {
  background: #001a22 !important;
  border-bottom: 1px solid #00ffcc !important;
  color: #00ffcc !important;
  letter-spacing: 1px;
}

/* Base Controls */
#oracle-window .win-controls .win-btn {
  background: #00222a !important;
  color: #00ffcc !important;
  border: 1px solid #00ffcc !important;
  font-weight: bold;
}

#oracle-window .win-controls .win-btn.close {
  background: #e81123 !important;
  color: #ffffff !important;
  border-color: #a80000 !important;
}

/* Dropdowns & Theme Bar */
.oracle-theme-bar label {
  color: #888;
}

#oracle-window select, 
#oracle-window select option {
  background: #00080a !important;
  color: inherit !important;
  border: 1px solid currentColor !important;
}

/* Card Mechanics Base */
.cards-container {
  display: flex;
  justify-content: space-around;
  margin-bottom: 15px;
  perspective: 1000px;
}

.card-slot {
  width: 90px;
  height: 130px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card-inner {
  width: 100%;
  height: 110px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card-slot.flipped .card-inner {
  transform: rotateY(180deg);
}

.card-front, .card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  justify-content: center; /* Keeps icon and text centered */
  align-items: center;
  box-sizing: border-box; /* Ensures padding doesn't break fixed width/height */
  padding: 6px 4px !important;
  overflow: hidden;
}

.card-front {
  background: #001218 !important;
  border: 1px solid #00ffcc !important;
  color: #00ffcc !important;
  font-size: 24px;
  box-shadow: inset 0 0 10px rgba(0, 255, 204, 0.2);
}

.card-icon {
  font-size: 22px !important; /* Scaled down slightly from 28px */
  margin-bottom: 6px;
  line-height: 1;
}

.card-title {
  font-size: 8.5px !important;
  font-family: 'Courier New', Courier, monospace;
  text-transform: uppercase;
  text-align: center;
  font-weight: bold;
  line-height: 1.15;
  width: 100%;
  white-space: normal; /* Allows natural wrapping */
  word-break: keep-all; /* Prevents mid-word splitting */
  overflow-wrap: break-word;
  padding: 0 2px;
  margin: 0;
}

.card-back {
  background: #001a22 !important;
  border: 1px solid #00ffcc !important;
  color: #00ffcc !important;
  transform: rotateY(180deg);
  box-shadow: 0 0 10px rgba(0, 255, 204, 0.3);
  padding: 5px;
}

.slot-label {
  font-size: 9px;
  color: #00ffcc;
  margin-top: 5px;
  letter-spacing: 1px;
}

/* Draw Button Base */
#draw-btn {
  background: #001a22 !important;
  color: #00ffcc !important;
  border: 1px solid #00ffcc !important;
  padding: 8px 16px;
  font-family: inherit;
  font-weight: bold;
  cursor: pointer;
  letter-spacing: 1px;
  transition: all 0.2s ease;
}

#draw-btn:hover {
  background: #00ffcc !important;
  color: #00080a !important;
  box-shadow: 0 0 15px #00ffcc !important;
}

/* Reading Box */
.reading-box {
  margin-top: 15px;
  background: rgba(0, 8, 10, 0.95) !important;
  border: 1px dashed #00ffcc !important;
  padding: 10px;
  min-height: 80px;
  text-align: left;
  font-size: 11px;
  line-height: 1.4;
  max-height: 120px;
  overflow-y: auto;
}

/* ==========================================
   DYNAMIC SKIN COLOR OVERRIDES
   ========================================== */

/* 1. MONOCHROME VOID / ABYSS (Cyan Cyberpunk) */
body #oracle-window.skin-abyss,
#oracle-window.skin-abyss {
  background: #000c10 !important;
  border-color: #00ffcc !important;
  box-shadow: 0 0 20px rgba(0, 255, 204, 0.4) !important;
  color: #00ffcc !important;
}
body #oracle-window.skin-abyss .aero-titlebar {
  background: #001a22 !important;
  border-bottom: 1px solid #00ffcc !important;
  color: #00ffcc !important;
}
body #oracle-window.skin-abyss .win-controls .win-btn {
  background: #00222a !important;
  color: #00ffcc !important;
  border-color: #00ffcc !important;
}
body #oracle-window.skin-abyss .window-body,
body #oracle-window.skin-abyss .reading-box {
  background: #00080a !important;
  border-color: #00ffcc !important;
  color: #00ffcc !important;
}
body #oracle-window.skin-abyss .card-front,
body #oracle-window.skin-abyss .card-back {
  background: #001218 !important;
  border-color: #00ffcc !important;
  color: #00ffcc !important;
  box-shadow: 0 0 10px rgba(0, 255, 204, 0.3) !important;
}
body #oracle-window.skin-abyss .slot-label {
  color: #00ffcc !important;
}
body #oracle-window.skin-abyss #draw-btn {
  background: #001a22 !important;
  border-color: #00ffcc !important;
  color: #00ffcc !important;
}

/* 2. WONDERLAND TEA (Neon Pink) */
body #oracle-window.skin-wonderland,
#oracle-window.skin-wonderland {
  background: #0f000f !important;
  border-color: #ff77ff !important;
  box-shadow: 0 0 20px rgba(255, 119, 255, 0.4) !important;
  color: #ff77ff !important;
}
body #oracle-window.skin-wonderland .aero-titlebar {
  background: #240024 !important;
  border-bottom: 1px solid #ff77ff !important;
  color: #ff77ff !important;
}
body #oracle-window.skin-wonderland .win-controls .win-btn {
  background: #2f002f !important;
  color: #ff77ff !important;
  border-color: #ff77ff !important;
}
body #oracle-window.skin-wonderland .window-body,
body #oracle-window.skin-wonderland .reading-box {
  background: #080008 !important;
  border-color: #ff77ff !important;
  color: #ff77ff !important;
}
body #oracle-window.skin-wonderland .card-front,
body #oracle-window.skin-wonderland .card-back {
  background: #180018 !important;
  border-color: #ff77ff !important;
  color: #ff77ff !important;
  box-shadow: 0 0 10px rgba(255, 119, 255, 0.3) !important;
}
body #oracle-window.skin-wonderland .slot-label {
  color: #ff77ff !important;
}
body #oracle-window.skin-wonderland #draw-btn {
  background: #240024 !important;
  border-color: #ff77ff !important;
  color: #ff77ff !important;
}

/* 3. QUEEN'S CRIMSON (Blood Red) */
body #oracle-window.skin-blood,
#oracle-window.skin-blood {
  background: #120002 !important;
  border-color: #ff3344 !important;
  box-shadow: 0 0 20px rgba(255, 51, 68, 0.5) !important;
  color: #ff3344 !important;
}
body #oracle-window.skin-blood .aero-titlebar {
  background: #290006 !important;
  border-bottom: 1px solid #ff3344 !important;
  color: #ff3344 !important;
}
body #oracle-window.skin-blood .win-controls .win-btn {
  background: #380008 !important;
  color: #ff3344 !important;
  border-color: #ff3344 !important;
}
body #oracle-window.skin-blood .window-body,
body #oracle-window.skin-blood .reading-box {
  background: #080001 !important;
  border-color: #ff3344 !important;
  color: #ff3344 !important;
}
body #oracle-window.skin-blood .card-front,
body #oracle-window.skin-blood .card-back {
  background: #1f0004 !important;
  border-color: #ff3344 !important;
  color: #ff3344 !important;
  box-shadow: 0 0 10px rgba(255, 51, 68, 0.3) !important;
}
body #oracle-window.skin-blood .slot-label {
  color: #ff3344 !important;
}
body #oracle-window.skin-blood #draw-btn {
  background: #290006 !important;
  border-color: #ff3344 !important;
  color: #ff3344 !important;
}

/* 4. ABSOLUTE VOID (Deep Cosmic Purple) */
body #oracle-window.skin-void,
#oracle-window.skin-void {
  background: #07000e !important;
  border-color: #9933ff !important;
  box-shadow: 0 0 20px rgba(153, 51, 255, 0.5) !important;
  color: #bb77ff !important;
}
body #oracle-window.skin-void .aero-titlebar {
  background: #180030 !important;
  border-bottom: 1px solid #9933ff !important;
  color: #bb77ff !important;
}
body #oracle-window.skin-void .win-controls .win-btn {
  background: #220042 !important;
  color: #bb77ff !important;
  border-color: #9933ff !important;
}
body #oracle-window.skin-void .window-body,
body #oracle-window.skin-void .reading-box {
  background: #040008 !important;
  border-color: #9933ff !important;
  color: #bb77ff !important;
}
body #oracle-window.skin-void .card-front,
body #oracle-window.skin-void .card-back {
  background: #120024 !important;
  border-color: #9933ff !important;
  color: #bb77ff !important;
  box-shadow: 0 0 10px rgba(153, 51, 255, 0.3) !important;
}
body #oracle-window.skin-void .slot-label {
  color: #bb77ff !important;
}
body #oracle-window.skin-void #draw-btn {
  background: #180030 !important;
  border-color: #9933ff !important;
  color: #bb77ff !important;
}

/* Active Desktop 90s Styles (VOID_NET Applet) */
.active-desktop {
  position: absolute;
  top: 40px;
  right: 20px;
  width: 280px;
  background: rgba(0, 0, 128, 0.7);
  border: 2px inset #ffffff;
  color: #ffffff;
  font-family: "MS Sans Serif", Tahoma, sans-serif;
  font-size: 12px;
  padding: 8px;
  z-index: 1; /* Sits behind draggable windows */
  box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.5);
}

.ad-channel-banner {
  background: #000080;
  color: #fff;
  font-weight: bold;
  padding: 2px 4px;
  margin-bottom: 8px;
  border: 1px solid #707070;
}

.ad-content-box {
  background: #000;
  color: #00ff66;
  padding: 8px;
  font-family: "Courier New", monospace;
  min-height: 120px;
  border: 1px solid #444;
}

/* Windows 98 Active Desktop Channel Bar Sidebar */
.channel-bar {
  position: absolute;
  top: 325px; 
  right: 65px; 
  width: 172px; 
  background-color: #000000;
  border: 2px inset #ffffff;
  box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.7);
  font-family: "Tahoma", "MS Sans Serif", sans-serif;
  user-select: none;
  z-index: 2;
}

.hit-counter-widget {
  top: auto;
  bottom: 90px; /* clears the taskbar (30px) + webring bar, regardless of channel-list height above it */
  right: 20px;
  width: 172px;
}
.hit-counter-box { min-height: 0; text-align: center; }
.hit-counter-caption { font-size: 10px; color: #cccccc; margin-bottom: 6px; }
.hit-counter-digits { letter-spacing: 3px; }

.channel-popup-window {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8), 0 0 10px rgba(0, 255, 204, 0.3);
  border: 2px outset #ffffff;
  animation: winOpenPop 0.2s ease-out;
}

@keyframes winOpenPop {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.channel-bar-header {
  background: linear-gradient(90deg, #000080, #1084d0);
  color: #ffffff;
  font-size: 10px;
  font-weight: bold;
  text-transform: uppercase;
  padding: 3px 6px;
  letter-spacing: 1px;
}

.channel-item {
  display: flex;
  align-items: center;
  padding: 5px 8px;
  color: #ffffff;
  font-size: 11px;
  cursor: pointer;
  border-bottom: 1px solid #1a1a1a;
  transition: background 0.1s;
}

.channel-item:hover {
  background: #000080;
}

.channel-icon {
  margin-right: 8px;
  font-size: 13px;
}

.channel-text {
  white-space: nowrap;
}

.channel-divider {
  height: 2px;
  background: #333333;
  margin: 4px 0;
}

/* Channel Brand Buttons */
.channel-brand {
  padding: 6px;
  text-align: center;
  cursor: pointer;
  font-size: 12px;
  font-weight: bold;
  border-bottom: 1px solid #1a1a1a;
  transition: filter 0.2s;
}

.channel-brand:hover {
  filter: brightness(1.3);
}

.channel-brand.wonderland { background: #000000; color: #ff3300; font-family: sans-serif; }
.channel-brand.cheshire { background: #002244; color: #ffffff; }
.channel-brand.fable { background: #990000; color: #ffcc00; font-family: cursive, sans-serif; }
.channel-brand.lookingglass { background: #4b0082; color: #ff00ff; }
.channel-brand.voidonline { background: #005588; color: #ffffff; }

/* Control Panel Toggle Controls */
.control-row-checkbox {
  display: flex;
  align-items: center;
  font-size: 12px;
  color: inherit;
  margin-top: 4px;
}

.control-row-checkbox input[type="checkbox"] {
  margin-right: 8px;
  cursor: pointer;
}

/* Active Desktop Popup Notification */
.ad-notification-popup {
  position: fixed;
  bottom: 35px;
  right: 20px;
  width: 320px;
  background: #c0c0c0;
  border: 2px outset #ffffff;
  box-shadow: 4px 4px 15px rgba(0, 0, 0, 0.6);
  z-index: 99999;
  font-family: "MS Sans Serif", Tahoma, sans-serif;
  animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Bouncing Window Styling */
.idiot-window {
  position: fixed;
  width: 300px;
  height: 200px;
  background: #000;
  border: 3px inset #ff0000;
  box-shadow: 0 0 15px #ff0000;
  z-index: 100000;
  display: flex;
  flex-direction: column;
  user-select: none;
}

.idiot-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #000;
  color: #fff;
  text-align: center;
}

.idiot-flash {
  animation: flashBg 0.2s infinite alternate;
}

@keyframes flashBg {
  0% { background: #000; color: #fff; }
  100% { background: #fff; color: #000; }
}

/* Terminal Body */
.terminal-body {
  background: #050807 !important;
  color: #00ffcc !important;
  font-family: 'Courier New', Courier, monospace !important;
  font-size: 13px;
  padding: 10px;
  height: 280px;
  overflow-y: auto;
}

.fastfetch-art {
  color: #00ffcc;
  font-family: 'Courier New', Courier, monospace;
  line-height: 1.3;
  margin: 10px 0;
}

.fastfetch-art strong {
  color: #ff3366;
}

.terminal-input-row {
  display: flex;
  align-items: center;
  margin-top: 8px;
  border-top: 1px dashed rgba(0, 255, 204, 0.3);
  padding-top: 6px;
}

.term-prompt {
  color: #ff3366;
  font-weight: bold;
  margin-right: 6px;
}

.term-input {
  background: transparent;
  border: none;
  color: #00ffcc;
  font-family: 'Courier New', Courier, monospace;
  font-size: 13px;
  outline: none;
  width: 100%;
}
