/* WOWSight Theme E - Card Game / TCG Deck Style */
:root {
  --ws-primary: #C31023;
  --ws-bg: #111111;
  --ws-surface: #1A1A1A;
  --ws-text: #F5F5F5;
  --ws-text-secondary: #999;
  --ws-border: #333;
  --ws-radius: 16px;
  --ws-transition: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --ws-font-body: 'Noto Sans TC', -apple-system, sans-serif;
  --ws-font-heading: 'Noto Sans TC', -apple-system, sans-serif;
  --ws-card-width: min(380px, 85vw);
}
[data-theme="light"] { --ws-bg: #F0F0F0; --ws-surface: #FFFFFF; --ws-text: #18181B; --ws-text-secondary: #666; --ws-border: #E0E0E0; }
*, *::before, *::after { box-sizing: border-box; }
body { background: var(--ws-bg) !important; color: var(--ws-text); font-family: var(--ws-font-body); font-size: 0.9375rem; line-height: 1.6; -webkit-font-smoothing: antialiased; margin: 0; overflow-x: hidden; }
a { color: inherit; text-decoration: none; } a:hover { color: var(--ws-primary); }
img { max-width: 100%; height: auto; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
:focus-visible { outline: 2px solid var(--ws-primary); outline-offset: 2px; }
button, a { cursor: pointer; }

/* Theme E is dark-first */
.ws-icon-sun { display: block; } .ws-icon-moon { display: none; }
[data-theme="light"] .ws-icon-sun { display: none; } [data-theme="light"] .ws-icon-moon { display: block; }

/* Header - floating minimal */
.ws-header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: transparent; padding: 1rem 1.5rem; }
.ws-header__inner { max-width: 1200px; margin: 0 auto; align-items: center; gap: 1.5rem; }
.ws-header__nav a { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ws-text-secondary); }
.ws-header__nav a:hover { color: var(--ws-primary); }
.ws-theme-toggle { background: rgba(255,255,255,0.1); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,0.15); border-radius: 50%; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; color: var(--ws-text); }

/* Deck layout - horizontal scroll of vertical cards */
.ws-deck__scroll {
  display: flex;
  gap: 1.25rem;
  padding: 5rem 2rem 3rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.ws-deck__scroll::-webkit-scrollbar { display: none; }

/* Game Card - TCG style */
.ws-game-card {
  flex: 0 0 var(--ws-card-width);
  scroll-snap-align: center;
  background: var(--ws-surface);
  border-radius: var(--ws-radius);
  overflow: hidden;
  border: 2px solid var(--ws-border);
  transition: transform var(--ws-transition), border-color var(--ws-transition), box-shadow var(--ws-transition);
  position: relative;
}
.ws-game-card:hover {
  transform: scale(1.03) translateY(-4px);
  border-color: var(--ws-primary);
  box-shadow: 0 20px 60px rgba(195, 16, 35, 0.15), 0 0 0 1px rgba(195, 16, 35, 0.3);
}

.ws-game-card__image img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: center top;
  border-radius: 0;
  display: block;
}

.ws-game-card__info {
  padding: 1.25rem;
  background: linear-gradient(180deg, var(--ws-surface) 0%, var(--ws-surface) 100%);
  border-top: 2px solid var(--ws-border);
}

.ws-game-card__cat a {
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ws-primary) !important;
  background: rgba(195, 16, 35, 0.1);
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
}

.ws-game-card__title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  margin-top: 0.5rem !important;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ws-game-card__title a { color: var(--ws-text) !important; }
.ws-game-card__title a:hover { color: var(--ws-primary) !important; }

.ws-game-card__date { font-size: 0.65rem; color: var(--ws-text-secondary); margin-top: 0.5rem; font-variant-numeric: tabular-nums; }

/* Card rarity indicator - top right glow */
.ws-game-card::after {
  content: '';
  position: absolute;
  top: 12px;
  right: 12px;
  width: 8px;
  height: 8px;
  background: var(--ws-primary);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--ws-primary), 0 0 12px var(--ws-primary);
}

/* Standard card/single/footer fallbacks */
.ws-card { background: var(--ws-surface); border-radius: var(--ws-radius); overflow: hidden; border: 1px solid var(--ws-border); }
.ws-card:hover { border-color: var(--ws-primary); }
.ws-card__image img { width: 100%; object-fit: cover; }
.ws-card__content { padding: 1rem; }
.ws-card__cat a { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; color: var(--ws-primary) !important; }
.ws-card__title { font-size: 0.95rem; font-weight: 700; line-height: 1.35; margin-top: 0.4rem !important; }
.ws-card__title a { color: var(--ws-text) !important; } .ws-card__title a:hover { color: var(--ws-primary) !important; }
.ws-card__date { font-size: 0.7rem; color: var(--ws-text-secondary); margin-top: 0.3rem; }

.ws-single__hero img { width: 100%; max-height: 70vh; object-fit: cover; border-radius: 0; }
.ws-single__container { padding-top: 2rem; }
.ws-single__title { font-size: clamp(1.5rem, 4vw, 2.25rem); font-weight: 700; line-height: 1.3; }
.ws-single__meta { color: var(--ws-text-secondary); font-size: 0.8rem; gap: 1rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--ws-border); margin-bottom: 2rem !important; }
.ws-single__content { font-size: 1rem; line-height: 1.8; }
.ws-single__tags a { display: inline-block; background: rgba(195,16,35,0.1); padding: 0.2rem 0.6rem; border-radius: 4px; font-size: 0.75rem; margin: 0.2rem; color: var(--ws-primary); }
.ws-share { padding: 2rem 0; border-top: 1px solid var(--ws-border); margin-top: 2rem !important; }
.ws-related { padding: 3rem 0; border-top: 1px solid var(--ws-border); margin-top: 3rem !important; }
.ws-section-title { font-size: 1.125rem; font-weight: 700; margin-bottom: 1rem !important; }
.ws-archive__title { font-size: 1.5rem; font-weight: 700; margin-bottom: 1.5rem !important; }
.ws-footer { background: var(--ws-surface); border-top: 1px solid var(--ws-border); padding: 2rem 1.5rem; margin-top: 3rem; }
.ws-footer__inner { gap: 1.5rem; } .ws-footer__desc { color: var(--ws-text-secondary); font-size: 0.8rem; }
.ws-footer__nav a { font-size: 0.75rem; color: var(--ws-text-secondary); } .ws-footer__nav a:hover { color: var(--ws-primary); }
.ws-footer__social-links .wp-social-link { background: transparent !important; border: 1px solid var(--ws-border); border-radius: 50%; }
.ws-footer__social-links .wp-social-link:hover { background: var(--ws-primary) !important; }
.ws-footer__divider { border-color: var(--ws-border) !important; margin: 1.5rem 0 !important; }
.ws-footer__copyright { color: var(--ws-text-secondary); font-size: 0.7rem; }
.ws-main { padding: 0; }
.ws-404 { text-align: center; padding: 8rem 2rem; }

@media (max-width: 768px) {
  .ws-deck__scroll { padding: 4.5rem 1rem 2rem; gap: 1rem; }
  .ws-game-card { flex: 0 0 80vw; }
  .ws-header { padding: 0.75rem 1rem; }
}
