/*
 Theme Name: Open Dungeons
 Theme URI: https://opendungeons.com
 Author: OD
 Description: Landing page theme for Open Dungeons RPG
 Version: 1.0
*/

:root {
  --od-bg: #05060a;
  --od-text: #f3e8d0;
  --od-muted: #d6cbb0;
  --od-accent-gold: #f2a23b;
  --od-accent-gold-dark: #cc7622;
  --od-accent-purple: #3e305f;
  --od-accent-purple-dark: #2b2144;
  --od-card-bg: #11141b;
  --od-card-border: #2a3140;
  --od-font-heading: "Georgia", "Times New Roman", serif;
  --od-font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Reset-ish */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background: var(--od-bg);
  color: var(--od-text);
  font-family: var(--od-font-body);
  font-size: 18px;
}

/* Layout helpers */
.od-container {
  width: min(1160px, 100% - 3rem);
  margin: 0 auto;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* Header and Navigation */
.od-site-header {
  background: rgba(17, 20, 27, 0.95);
  border-bottom: 1px solid var(--od-card-border);
  padding: 0.75rem 1.5rem;
  z-index: 1000;
  backdrop-filter: none;
}

.od-site-header .od-container {
  width: 100%;
  max-width: none;
}

.od-header-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  width: 100%;
}

.od-site-branding {
  flex-shrink: 0;
}

.od-logo-link {
  display: inline-block;
  transition: opacity 0.3s;
}

/* MDM Menu overrides for mid-range screens */
@media (min-width: 961px) and (max-width: 1682px) {
  .mdm-menu-link {
    gap: 0.1rem;
    text-transform: none;
  }
  .mdm-mega-menu {
    flex-wrap: nowrap;
  }
}

@media (hover: none) and (pointer: coarse) {
  .mdm-menu-link,
  .mdm-dropdown-link {
    padding: 0;
    min-height: 44px;
  }
}

.od-logo-link:hover {
  opacity: 0.8;
}

.od-logo-text {
  font-family: Arial, "Lucida Handwriting", cursive;
  font-size: 1rem;
  letter-spacing: 0.02em;
  color: var(--od-accent-gold);
}

.od-main-nav {
  display: flex;
  justify-content: center;
}

.od-nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2rem;
  align-items: center;
}

.od-nav-menu li {
  margin: 0;
  padding: 0;
}

.od-nav-menu a {
  color: var(--od-text);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.3s;
  position: relative;
  padding: 0.75rem 0.5rem;
}

.od-nav-menu a:hover,
.od-nav-menu a:focus {
  color: var(--od-accent-gold);
}

.od-nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--od-accent-gold);
  transition: width 0.3s;
}

.od-nav-menu a:hover::after {
  width: 100%;
}

/* Footer */
.od-site-footer {
  background: var(--od-card-bg);
  border-top: 1px solid var(--od-card-border);
  padding: 2rem 0;
  margin-top: 1rem;
}

.od-footer-content {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  text-align: center;
  flex-direction: column;
}

.od-footer-content p {
  margin: 0;
  font-size: 1rem;
  color: var(--od-muted);
}

.od-footer-nav {
  display: flex;
  gap: 1.5rem;
}

.od-footer-nav a {
  font-size: 1rem;
  color: var(--od-muted);
  transition: color 0.3s;
}

.od-footer-nav a:hover {
  color: var(--od-accent-gold);
}

/* Notice Button & Footer Buttons */
.od-notice-button,
.od-footer-button {
  background: #91000e;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  padding: 0.5rem 1rem;
  transition: all 0.3s ease;
  font-family: var(--od-font-body);
  letter-spacing: 0.5px;
  display: inline-block;
}

.od-notice-button:hover,
.od-footer-button:hover {
  opacity: 0.85;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Footer Button Admin Controls */
.od-footer-btn-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.od-footer-btn-edit,
.od-footer-btn-remove,
.od-footer-btn-add {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  font-size: 0.875rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  transition: all 0.2s;
  font-weight: bold;
  line-height: 1;
}

.od-footer-btn-edit:hover,
.od-footer-btn-remove:hover,
.od-footer-btn-add:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
}

.od-footer-btn-edit {
  background: rgba(242, 162, 59, 0.2);
  border-color: var(--od-accent-gold);
  color: var(--od-accent-gold);
}

.od-footer-btn-edit:hover {
  background: rgba(242, 162, 59, 0.3);
}

.od-footer-btn-remove {
  background: rgba(255, 59, 59, 0.2);
  border-color: #ff3b3b;
  color: #ff3b3b;
}

.od-footer-btn-remove:hover {
  background: rgba(255, 59, 59, 0.3);
}

.od-footer-btn-add {
  background: rgba(59, 255, 59, 0.2);
  border-color: #3bff3b;
  color: #3bff3b;
  padding: 0.5rem 1rem;
  font-size: 1rem;
}

.od-footer-btn-add:hover {
  background: rgba(59, 255, 59, 0.3);
}

/* Notice Modal */
.od-notice-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  animation: od-fadeIn 0.3s ease;
}

.od-notice-modal.active {
  display: flex;
}

@keyframes od-fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.od-notice-modal-content {
  background: var(--od-card-bg);
  border: 2px solid #e50318;
  border-radius: 12px;
  padding: 2.5rem;
  max-width: 500px;
  width: 90%;
  position: relative;
  box-shadow: 0 10px 40px rgba(220, 53, 69, 0.3);
  animation: od-slideIn 0.3s ease;
}

@keyframes od-slideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.od-notice-modal-content h3 {
  margin: 0 0 1.5rem 0;
  color: #dc3545;
  font-family: var(--od-font-heading);
  font-size: 1.8rem;
  text-align: center;
}

.od-notice-modal-content p {
  margin: 0;
  color: var(--od-text);
  font-size: 1.2rem;
  line-height: 1.6;
  text-align: center;
}

.od-notice-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: transparent;
  border: none;
  color: var(--od-muted);
  font-size: 2rem;
  cursor: pointer;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s ease;
  line-height: 1;
}

.od-notice-close:hover {
  background: rgba(220, 53, 69, 0.2);
  color: #dc3545;
}

/* Hero */
.od-hero {
  padding: 0;
  background:
    linear-gradient(to bottom, #05060a 0%, transparent 20%, transparent 80%, #05060a 100%),
    radial-gradient(circle at center, rgba(60, 120, 255, 0.35), transparent 60%),
    #05060a;
}

/* Top Buttons */
.od-top-buttons {
  padding: 1rem 0 0;
  background: #05060a;
}

.od-top-buttons-inner {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.od-top-btn-wrapper {
  position: relative;
  display: inline-flex;
}

.od-btn-top {
  background: rgba(30, 40, 60, 0.6);
  border: 1px solid rgba(130, 200, 255, 0.4);
  color: #e0f0ff;
  text-shadow: 0 0 5px rgba(130, 200, 255, 0.6);
  border-radius: 4px; /* Squarish */
  padding: 0.6rem 1.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.2s ease;
  box-shadow: 0 0 15px rgba(60, 120, 255, 0.15), inset 0 0 10px rgba(60, 120, 255, 0.1);
}

.od-btn-top:hover,
.od-btn-top:active {
  background: #00ff88;
  color: #000;
  border-color: #00cc6a;
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(0, 255, 136, 0.5);
}

.od-top-btn-edit,
.od-top-btn-remove {
  position: absolute;
  top: -8px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.3);
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  font-weight: 300;
  padding: 0;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.od-top-btn-edit {
  right: 24px;
  background: var(--od-accent-gold);
  color: #261307;
}

.od-top-btn-edit:hover {
  background: var(--od-accent-gold-dark);
  transform: scale(1.1);
}

.od-top-btn-remove {
  right: -8px;
  background: #dc3545;
  color: #fff;
  font-size: 16px;
}

.od-top-btn-remove:hover {
  background: #c82333;
  transform: scale(1.1);
}

.od-top-btn-add {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--od-accent-gold);
  color: #261307;
  border: 2px solid rgba(0, 0, 0, 0.3);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  font-weight: 300;
  padding: 0;
  align-self: center;
}

.od-top-btn-add:hover {
  background: var(--od-accent-gold-dark);
  transform: scale(1.1);
}

.od-hero-inner {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.od-hero-kicker {
  letter-spacing: 0.2em;
  font-size: 1.3rem;
  color: var(--od-muted);
  margin-bottom: 0.1rem;
}

.od-hero-title {
  font-family: var(--od-font-heading);
  font-size: clamp(1.8rem, 2.8vw, 2.2rem);
  font-weight: 300;
  letter-spacing: 0.08em;
  margin: 1rem 0 0.5rem;
}

.od-hero-subtitle-title {
  letter-spacing: 0.2em;
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--od-muted);
  margin: 0 0 1rem;
}

.od-hero-subtitle {
  margin: 0 0 1.75rem;
  font-size: 1rem;
  color: var(--od-muted);
  max-width: 560px;
}

/* Hero buttons */
.od-hero-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 100%;
}

.od-hero-btn-wrapper {
  position: relative;
  display: inline-flex;
}

.od-hero-btn-edit,
.od-hero-btn-remove {
  position: absolute;
  top: -8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.3);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  font-weight: 300;
  padding: 0;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.od-hero-btn-edit {
  right: 32px;
  background: var(--od-accent-gold);
  color: #261307;
}

.od-hero-btn-edit:hover {
  background: var(--od-accent-gold-dark);
  transform: scale(1.1);
}

.od-hero-btn-remove {
  right: -8px;
  background: #dc3545;
  color: #fff;
  font-size: 18px;
}

.od-hero-btn-remove:hover {
  background: #c82333;
  transform: scale(1.1);
}

.od-hero-btn-add {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--od-accent-gold);
  color: #261307;
  border: 2px solid rgba(0, 0, 0, 0.3);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  font-weight: 300;
  padding: 0;
  align-self: center;
}

.od-hero-btn-add:hover {
  background: var(--od-accent-gold-dark);
  transform: scale(1.1);
}

.od-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
}

.od-btn-primary {
  background: var(--od-accent-gold);
  color: #000;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.45);
}

.od-btn-primary:hover {
  background: var(--od-accent-gold-dark);
  transform: translateY(-1px);
}

.od-btn-secondary {
  background: #E64553;
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.45);
}

.od-btn-secondary:hover {
  background: #c93a47;
  transform: translateY(-1px);
}

.od-btn-source {
  background: linear-gradient(135deg, #5f2eea 0%, var(--od-accent-gold) 100%);
  color: #150a1f;
  box-shadow: 0 8px 22px rgba(95, 46, 234, 0.4);
}

.od-btn-source:hover {
  background: linear-gradient(135deg, #7447ff 0%, #ffb347 100%);
  transform: translateY(-1px);
}

.od-btn-disabled {
  opacity: 0.55;
  pointer-events: none;
  cursor: not-allowed;
}

.od-btn-patreon {
  background: #ff424d;
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.45);
}

.od-btn-patreon:hover {
  background: #e0353f;
  transform: translateY(-1px);
}

/* Hero feature row */
.od-hero-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--od-muted);
  align-items: center;
}

.od-hero-feature-wrapper {
  position: relative;
  display: inline-flex;
}

.od-hero-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: none;
  letter-spacing: 0.12em;
}

.od-hero-feature-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.od-hero-feature-link {
  color: var(--od-muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.od-hero-feature-link:hover {
  color: var(--od-text);
  border-bottom-color: var(--od-text);
}

.od-hero-feature-link:hover ~ .od-hero-feature-icon,
.od-hero-feature:has(.od-hero-feature-link:hover) .od-hero-feature-icon {
  background: #00ff88;
  border-color: #00ff88;
  box-shadow: 0 0 12px rgba(0, 255, 136, 0.6), 0 0 24px rgba(0, 255, 136, 0.3);
}

.od-hero-feature-edit,
.od-hero-feature-remove {
  position: absolute;
  top: -10px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.3);
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  font-weight: 300;
  padding: 0;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.od-hero-feature-edit {
  right: 24px;
  background: var(--od-accent-gold);
  color: #261307;
}

.od-hero-feature-edit:hover {
  background: var(--od-accent-gold-dark);
  transform: scale(1.1);
}

.od-hero-feature-remove {
  right: -8px;
  background: #dc3545;
  color: #fff;
  font-size: 16px;
}

.od-hero-feature-remove:hover {
  background: #c82333;
  transform: scale(1.1);
}

.od-hero-feature-add {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--od-accent-gold);
  color: #261307;
  border: 2px solid rgba(0, 0, 0, 0.3);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  font-weight: 300;
  padding: 0;
}

.od-hero-feature-add:hover {
  background: var(--od-accent-gold-dark);
  transform: scale(1.1);
}

/* Section heading */
.od-section {
  padding: 0 0 3rem;
}

.od-library-filter {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.od-filter-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--od-text);
  padding: 0.45rem 1.5rem;
  border-radius: 999px;
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.od-filter-btn:is(:hover, :focus-visible) {
  border-color: var(--od-accent-gold);
  color: var(--od-accent-gold);
}

.od-filter-btn.is-active {
  background: var(--od-accent-gold);
  color: #261307;
  border-color: var(--od-accent-gold);
  box-shadow: 0 6px 20px rgba(242, 162, 59, 0.35);
}

.od-section-heading {
  text-align: center;
  margin-bottom: 2rem;
}

.od-section-title {
  font-family: var(--od-font-heading);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 1.5rem;
  margin: 0 0 0.35rem;
}

.od-section-subtitle {
  margin: 0;
  font-size: 0.95rem;
  color: var(--od-muted);
}

/* Grid of cards */
.od-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

.od-card {
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.05), transparent 58%),
              var(--od-card-bg);
  border-radius: 18px;
  border: 1px solid var(--od-card-border);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.od-card-source {
  border-color: rgba(95, 46, 234, 0.6);
  box-shadow: 0 20px 40px rgba(95, 46, 234, 0.45);
}

.od-card-hidden {
  opacity: 0;
  transform: scale(0.97);
  pointer-events: none;
}

.od-card.od-dragging {
  opacity: 0.5;
  transform: scale(0.95);
}

.od-card.od-drag-over {
  border-color: var(--od-accent-gold);
  box-shadow: 0 0 20px rgba(242, 162, 59, 0.5);
}

.od-card.od-sortable {
  cursor: move;
  cursor: grab;
}

.od-card.od-sortable:active {
  cursor: grabbing;
}

.od-card-image {
  position: relative;
  padding: 1.25rem;
}

.od-card-image img {
  border-radius: 12px;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Placeholder for cards without images */
.od-card-placeholder {
  background: linear-gradient(135deg, #1a1d26 0%, #22252e 100%);
  border-radius: 12px;
  width: 100%;
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed rgba(255, 255, 255, 0.1);
}

/* Admin upload button */
.od-upload-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--od-accent-gold);
  color: #261307;
  border: 2px solid rgba(0, 0, 0, 0.3);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  font-weight: 300;
  padding: 0;
  z-index: 10;
}

.od-upload-btn:hover {
  background: var(--od-accent-gold-dark);
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.7);
}

.od-upload-btn:active {
  transform: scale(0.95);
}

.od-delete-image-btn {
  position: absolute;
  top: 1.5rem;
  right: 6rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ff6b6b;
  color: #fff;
  border: 2px solid rgba(0, 0, 0, 0.3);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  padding: 0;
  z-index: 10;
}

.od-delete-image-btn:hover {
  background: #ff5252;
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.7);
}

.od-delete-image-btn:active {
  transform: scale(0.95);
}

.od-upload-pdf-btn {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #6c5ce7;
  color: #fff;
  border: 2px solid rgba(0, 0, 0, 0.3);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  padding: 0;
  z-index: 10;
}

.od-upload-pdf-btn:hover {
  background: #5f4fd1;
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.7);
}

.od-upload-pdf-btn:active {
  transform: scale(0.95);
}

.od-delete-pdf-btn {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #dc3545;
  color: #fff;
  border: 2px solid rgba(0, 0, 0, 0.3);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  padding: 0;
  z-index: 10;
}

.od-delete-pdf-btn:hover {
  background: #c82333;
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.7);
}

.od-delete-pdf-btn:active {
  transform: scale(0.95);
}

.od-card-image {
  cursor: pointer;
}

.od-card-image:hover img {
  opacity: 0.85;
  transform: scale(1.02);
  transition: all 0.2s ease;
}

.od-card-image .od-card-placeholder {
  cursor: default;
}

.od-remove-card-btn {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #dc3545;
  color: #fff;
  border: 2px solid rgba(0, 0, 0, 0.3);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  font-weight: 300;
  padding: 0;
  z-index: 10;
}

.od-remove-card-btn:hover {
  background: #c82333;
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.7);
}

.od-remove-card-btn:active {
  transform: scale(0.95);
}

.od-admin-controls {
  margin-top: 2rem;
  text-align: center;
}

.od-add-card-btn {
  padding: 0.75rem 2rem;
}

/* Custom Modal Styles */
.od-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 6, 10, 0.9);
  backdrop-filter: none;
  animation: od-fade-in 0.2s ease;
}

.od-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.od-modal-content {
  background: var(--od-card-bg);
  border: 1px solid var(--od-card-border);
  border-radius: 18px;
  padding: 2rem;
  max-width: 450px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
  animation: od-slide-up 0.3s ease;
}

.od-modal-title {
  font-family: var(--od-font-heading);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 1.25rem;
  margin: 0 0 1.25rem;
  color: var(--od-text);
  text-align: center;
}

.od-modal-message {
  color: var(--od-muted);
  margin: 0 0 1.5rem;
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.5;
}

.od-modal-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--od-bg);
  border: 1px solid var(--od-card-border);
  border-radius: 8px;
  color: var(--od-text);
  font-size: 1rem;
  margin-bottom: 1.5rem;
  font-family: var(--od-font-body);
}

.od-modal-input:focus {
  outline: none;
  border-color: var(--od-accent-gold);
  box-shadow: 0 0 0 3px rgba(242, 162, 59, 0.1);
}

.od-modal-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.od-modal-actions .od-btn {
  flex: 1;
  padding: 0.75rem 1.5rem;
}

@keyframes od-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes od-slide-up {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Image Preview Modal */
.od-image-preview-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 6, 10, 0.95);
  backdrop-filter: none;
  animation: od-fade-in 0.2s ease;
  cursor: pointer;
}

.od-image-preview-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.od-preview-content {
  position: relative;
  max-width: 90%;
  max-height: 90vh;
  animation: od-slide-up 0.3s ease;
}

.od-preview-image {
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.9);
}

.od-preview-close {
  position: absolute;
  top: -15px;
  right: -15px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #dc3545;
  color: #fff;
  border: 2px solid rgba(0, 0, 0, 0.3);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  font-weight: 300;
}

.od-preview-close:hover {
  background: #c82333;
  transform: scale(1.1);
}

.od-card-body {
  padding: 0.75rem 1.25rem 1.25rem;
  text-align: center;
}

.od-card-title-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.od-card-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}

.od-card-description {
  margin: 0 0 0.85rem;
  min-height: 1rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.45;
}

.od-edit-title-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--od-accent-gold);
  color: #261307;
  border: 1px solid rgba(0, 0, 0, 0.3);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  font-weight: 300;
  padding: 0;
  flex-shrink: 0;
}

.od-edit-title-btn:hover {
  background: var(--od-accent-gold-dark);
  transform: scale(1.1);
}

.od-edit-title-btn:active {
  transform: scale(0.95);
}

.od-card-actions {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: center;
}

.od-card-category-editor {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-top: 0.35rem;
  gap: 0.2rem;
  font-size: 0.8rem;
  color: var(--od-muted);
}

.od-card-category-editor label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.7);
}

.od-category-select {
  width: 100%;
  border-radius: 6px;
  border: 1px solid var(--od-card-border);
  background: rgba(5, 6, 10, 0.85);
  color: var(--od-text);
  padding: 0.45rem 0.65rem;
  font-size: 0.85rem;
  font-family: var(--od-font-body);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.od-category-select:focus {
  outline: none;
  border-color: var(--od-accent-gold);
  box-shadow: 0 0 0 2px rgba(242, 162, 59, 0.25);
}

.od-category-select.od-select-saving {
  opacity: 0.6;
  cursor: progress;
}

.od-category-select.od-select-saved {
  border-color: #3dd598;
  box-shadow: 0 0 0 2px rgba(61, 213, 152, 0.25);
}

.od-card-meta-controls {
  display: none;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 0.5rem;
}

.od-card-source .od-card-meta-controls {
  display: flex;
}

.od-card-meta-controls button {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: var(--od-muted);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.od-card-meta-controls button:hover {
  color: var(--od-accent-gold);
  border-color: var(--od-accent-gold);
}

.od-card-download {
  width: 100%;
  justify-content: center;
}

.od-book-label-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.od-book-label {
  font-size: 0.85rem;
  color: var(--od-muted);
}

.od-edit-label-btn {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--od-accent-gold);
  color: #261307;
  border: 1px solid rgba(0, 0, 0, 0.3);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  font-weight: 300;
  padding: 0;
  flex-shrink: 0;
}

.od-edit-label-btn:hover {
  background: var(--od-accent-gold-dark);
  transform: scale(1.1);
}

.od-edit-label-btn:active {
  transform: scale(0.95);
}

/* Expansions coming soon */
.od-expansions {
  padding: 1.5rem 0 3rem;
  text-align: center;
}

.od-expansions h2 {
  font-family: var(--od-font-heading);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 1.5rem;
  margin: 0;
  font-weight: normal;
  color: inherit;
}

/* Page and Post Content */
.od-main-content {
  padding: 3rem 0;
  min-height: 60vh;
}

.od-page-section {
  max-width: 900px;
  margin: 0 auto;
}

.od-page {
  background: var(--od-card-bg);
  border: 1px solid var(--od-card-border);
  border-radius: 8px;
  padding: 3rem;
}

.od-page-title {
  font-family: var(--od-font-heading);
  font-size: clamp(1.5rem, 3vw, 1.75rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--od-accent-gold);
  margin: 0 0 2rem;
  text-align: center;
}

.od-page-content {
  color: var(--od-text);
  line-height: 1.7;
}

.od-page-content p {
  margin: 0 0 1.5rem;
}

.od-page-content h1,
.od-page-content h2,
.od-page-content h3,
.od-page-content h4 {
  font-family: var(--od-font-heading);
  color: var(--od-accent-gold);
  margin: 2rem 0 1rem;
  letter-spacing: 0.05em;
}

.od-page-content h1 { font-size: 2rem; }
.od-page-content h2 { font-size: 1.75rem; }
.od-page-content h3 { font-size: 1.5rem; }
.od-page-content h4 { font-size: 1.25rem; }

.od-page-content a {
  color: var(--od-accent-gold);
  /* text-decoration: underline; */
  transition: color 0.3s;
}

.od-page-content a:hover {
  color: var(--od-accent-gold-dark);
}

.od-page-content ul,
.od-page-content ol {
  margin: 0 0 1.5rem 2rem;
  padding: 0;
}

.od-page-content li {
  margin-bottom: 0.5rem;
}

.od-page-content img {
  margin: 2rem auto;
  border-radius: 4px;
}

.od-page-content blockquote {
  border-left: 4px solid var(--od-accent-gold);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--od-muted);
}

/* Form Styling */
.od-page-content input[type="text"],
.od-page-content input[type="email"],
.od-page-content input[type="url"],
.od-page-content textarea,
.od-page-content select {
  width: 100%;
  background: rgba(5, 6, 10, 0.8);
  border: 1px solid var(--od-card-border);
  color: var(--od-text);
  padding: 0.75rem;
  border-radius: 4px;
  font-family: var(--od-font-body);
  font-size: 1rem;
  transition: border-color 0.3s;
}

.od-page-content input[type="text"]:focus,
.od-page-content input[type="email"]:focus,
.od-page-content input[type="url"]:focus,
.od-page-content textarea:focus,
.od-page-content select:focus {
  outline: none;
  border-color: var(--od-accent-gold);
}

.od-page-content textarea {
  min-height: 150px;
  resize: vertical;
}

.od-page-content label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--od-text);
}

.od-page-content button,
.od-page-content input[type="submit"] {
  background: var(--od-accent-gold);
  color: var(--od-bg);
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 4px;
  font-family: var(--od-font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.od-page-content button:hover,
.od-page-content input[type="submit"]:hover {
  background: var(--od-accent-gold-dark);
  transform: translateY(-2px);
}
a.od-btn.od-btn-primary, a.od-btn.od-btn-secondary, a.od-btn.od-btn-patreon {
    border-radius: 20px;
}
/* Responsive */
@media (max-width: 960px) {
  .od-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  
  .od-hero-title {
    font-size: clamp(2rem, 5vw, 2.5rem);
  }
  
  .od-hero-features {
    gap: 1.5rem;
  }
  
  .od-page {
    padding: 2rem;
  }
  
  .od-nav-menu {
    gap: 1.5rem;
  }
  
  .od-nav-menu a {
    font-size: 0.85rem;
  }
}

@media (max-width: 640px) {
  .od-container {
    width: min(100%, 100% - 2rem);
  }
  
  .od-hero {
    padding: 2rem 0 1.5rem;
  }
  
  .od-hero-title {
    font-size: clamp(1.75rem, 6vw, 2.25rem);
    margin: 0 0 1rem;
  }
  
  .od-hero-kicker {
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
  }

  .od-hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }
  
  /* Mobile Navigation */
  .od-header-inner {
    flex-direction: column;
    gap: 1rem;
  }
  
  .od-main-nav {
    width: 100%;
    justify-content: center;
  }
  
  .od-nav-menu {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
  
  .od-logo-text {
    font-size: 1.25rem;
  }
  
  /* Mobile Page Content */
  .od-page {
    padding: 1.5rem;
  }
  
  .od-page-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
    margin-bottom: 1.5rem;
  }
  
  .od-main-content {
    padding: 2rem 0;
  }
  
  .od-footer-content {
    flex-direction: column;
    text-align: center;
  }
  
  .od-footer-nav {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .od-hero-btn-wrapper {
    width: 100%;
  }
  
  .od-hero-btn-wrapper .od-btn {
    width: 100%;
  }
  
  .od-hero-btn-add {
    width: 100%;
    border-radius: 999px;
    height: 48px;
  }
  
  .od-hero-features {
    gap: 1rem;
    font-size: 0.75rem;
    flex-direction: column;
  }

  .od-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .od-card-image {
    padding: 1rem;
  }
  
  /* Make admin buttons smaller on mobile */
  .od-upload-btn,
  .od-upload-pdf-btn,
  .od-delete-pdf-btn,
  .od-delete-image-btn,
  .od-remove-card-btn {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }
  
  .od-delete-image-btn {
    right: 4.5rem;
  }
  
  .od-section-subtitle {
    font-size: 0.9rem;
    padding: 0 1rem;
  }
  
  .od-expansions {
    font-size: 1.2rem;
    padding: 1rem 0 2rem;
  }
  
  /* Modal adjustments for mobile */
  .od-modal-content {
    width: 95%;
    padding: 1.5rem;
  }
  
  .od-preview-content {
    max-width: 95%;
  }
  
  .od-image-preview-modal.active {
    padding: 1rem;
  }
  
  /* Corner box mobile adjustments */
  .od-corner-ribbon {
    padding: 0.5rem 0.75rem !important;
    font-size: 0.65rem !important;
    letter-spacing: 0.08em !important;
    top: 0.75rem !important;
    right: 0.75rem !important;
  }
}

@media (max-width: 700px) {
  .od-corner-ribbon {
    display: none;
  }
}

/* Pulsing animation for first card download button */
@keyframes od-pulse-green {
  0%, 100% {
    background: var(--od-accent-gold);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.45);
  }
  50% {
    background: #00ff88;
    box-shadow: 0 8px 32px rgba(0, 255, 136, 0.8), 0 0 30px rgba(0, 255, 136, 0.6);
  }
}

.od-card-download.od-pulse-highlight {
  animation: od-pulse-green 1.5s ease-in-out infinite;
}

/* =========================================
   Theme Switcher - Day Mode Overrides
   ========================================= */

[data-theme="day"] {
  --od-bg: #ffffff;
  --od-text: #1a1a1a;
  --od-muted: #555555;
  /* We keep accent colors as is, or adjust if needed for contrast */
}

/* Body Background and Text */
[data-theme="day"] body {
  background: var(--od-bg);
  color: var(--od-text);
}

/* Links in Day Mode (darker for readability) */
[data-theme="day"] a {
  color: #0056b3; /* Standard link blue or similar dark color */
}

[data-theme="day"] a:hover {
  color: #003d82;
}

/* 
   PROTECTED AREAS (Keep Original Dark Theme) 
*/

/* Header - Force Dark Theme Colors */
[data-theme="day"] .od-site-header {
  background: rgba(17, 20, 27, 0.95); /* Original dark header bg */
  color: #f3e8d0; /* Original text color */
}

[data-theme="day"] .od-site-header a {
  color: #f3e8d0;
}

[data-theme="day"] .od-site-header a:hover {
  color: #ffffff;
}

/* Buttons - Force Dark Theme Colors (assuming buttons use specific classes) */
/* We target common button elements to reset them to dark mode styles if they inherit from body */
[data-theme="day"] button,
[data-theme="day"] .button,
[data-theme="day"] .btn,
[data-theme="day"] input[type="submit"],
[data-theme="day"] input[type="button"] {
  color: #f3e8d0; /* Original text */
  /* Backgrounds usually defined by class, so we might not need to force bg unless it's transparent */
}

/* Ensure specific button classes keep their look */
[data-theme="day"] .od-footer-button {
  /* These have inline styles usually, but just in case */
  color: #fff !important; 
}

/* Footer - Allow to change to Light Mode */
[data-theme="day"] .od-site-footer {
  background: #e0e0e0;
  color: #1a1a1a;
  border-top: 1px solid #ccc;
}

[data-theme="day"] .od-site-footer a {
  color: #333;
}

[data-theme="day"] .od-site-footer a:hover {
  color: #000;
}

/* Theme Toggle Button Specifics */
.od-theme-toggle-btn {
  transition: transform 0.3s ease;
}
.od-theme-toggle-btn:hover {
  transform: rotate(15deg);
}

/* Hero Section - Day Mode */
[data-theme="day"] .od-hero {
  background:
    linear-gradient(to bottom, #ffffff 0%, transparent 20%, transparent 80%, #ffffff 100%),
    radial-gradient(circle at center, rgba(60, 120, 255, 0.1), transparent 60%),
    #ffffff;
}

[data-theme="day"] .od-top-buttons {
  background: #ffffff;
}

/* Day Mode - Fix Button Text Colors */
[data-theme="day"] .od-btn-top {
  color: #e0f0ff; /* Restore original light blue/white text */
}

[data-theme="day"] .od-hero-actions .od-btn {
  color: #261307; /* Default dark text for hero buttons (usually gold/orange bg) */
}

/* Specific override for red/danger buttons if they exist in hero actions */
[data-theme="day"] .od-hero-actions .od-btn-danger,
[data-theme="day"] .od-hero-actions .od-btn-red {
  color: #ffffff;
}

/* Fix for the specific buttons mentioned */
/* "Latest News" & "Print Editions" are .od-btn-top -> Fixed above */

/* "Character Generator" & "Patreon" are likely .od-btn inside .od-hero-actions */
/* We need to ensure they don't inherit the blue link color */
[data-theme="day"] .od-hero-actions a {
  color: inherit; /* Inherit from the button class, not the global link style */
}

/* Day Mode - Fix Filter Buttons */
[data-theme="day"] .od-filter-btn {
  color: #1a1a1a; /* Dark text for inactive buttons */
  border-color: rgba(0, 0, 0, 0.2); /* Dark border */
}

[data-theme="day"] .od-filter-btn:hover {
  color: #cc7622; /* Darker gold/orange on hover */
  border-color: #cc7622;
  background: rgba(0, 0, 0, 0.05); /* Slight background on hover */
}

/* Day Mode - Fix Cards */
[data-theme="day"] .od-card {
  background: none;
  border: none;
  /* Box shadow remains as requested */
}

/* Day Mode - Fix Page Background */
[data-theme="day"] .od-page {
  background: none;
  border: none;
}

/* Day Mode - Fix Notice Modal Text */
[data-theme="day"] .od-notice-modal-content,
[data-theme="day"] .od-notice-modal-content p {
  color: #ffffff;
}

/* Day Mode - Fix Breadcrumb Current Item */
[data-theme="day"] .mdm-breadcrumb-current {
  color: #000000 !important;
}

/* Day Mode - Fix Q&A Plugin Styles */
[data-theme="day"] .od-qa-search-container {
  background: transparent; /* Was var(--od-bg) */
}

[data-theme="day"] .od-qa-search {
  background: #ffffff; /* Was var(--od-card-bg) */
  border-color: rgba(0, 0, 0, 0.2);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

[data-theme="day"] .od-qa-search input[type="search"] {
  background: #f4f4f4; /* Was var(--od-bg) */
  color: #1a1a1a; /* Was var(--od-text) */
  border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="day"] .od-qa-search input[type="search"]::placeholder {
  color: #666;
}

/* Fix Question Items */
[data-theme="day"] .od-qa-item,
[data-theme="day"] .od-qa-question-header {
  background: #ffffff; /* Assuming these use card-bg */
  border-color: rgba(0, 0, 0, 0.1);
  color: #1a1a1a;
}

/* Fix Question Title Links */
[data-theme="day"] .od-qa-question-title a {
  color: #0056b3;
}

[data-theme="day"] .od-qa-question-title a:hover {
  color: #003d82;
}

/* Fix Answer/Content Text */
[data-theme="day"] .od-qa-answer,
[data-theme="day"] .od-qa-content {
  color: #333333;
}

/* Fix Supporter Box (Orange box in screenshot) */
/* Assuming it uses a specific class like .od-qa-supporter-cta or similar */
[data-theme="day"] .od-qa-supporter-cta {
  /* Keep orange background but ensure text is readable */
  color: #261307; 
}

[data-theme="day"] .od-qa-supporter-cta a {
  color: #261307;
  text-decoration: underline;
}

/* Day Mode - Fix Missed Q&A Elements */
[data-theme="day"] .od-qa-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.1);
  color: #1a1a1a;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

[data-theme="day"] .od-qa-search-hint {
  color: #555555; /* Darker grey for readability */
}

/* Fix the orange submission callout text */
[data-theme="day"] .od-qa-submission-callout {
  color: #261307;
}

/* Fix the button inside the callout (Red button) */
[data-theme="day"] .od-qa-submission-callout a,
[data-theme="day"] .od-qa-submission-callout .od-btn {
  color: #ffffff !important; /* Force white text on the red button */
}

/* Day Mode - Fix Single Q&A Page & Comments */

/* Single Question Card */
[data-theme="day"] .single-od_qa .od-qa-single {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.1);
  color: #1a1a1a;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Back Button in Single Q&A */
[data-theme="day"] .single-od_qa .od-btn {
  color: #ffffff !important;
}

/* Comments Section Container */
[data-theme="day"] .od-qa-comments-section {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.1);
  color: #1a1a1a;
}

/* Comments Title */
[data-theme="day"] .od-qa-comments-section .comments-title,
[data-theme="day"] .od-qa-comments-section .comment-reply-title {
  color: #cc7622;
  border-bottom-color: rgba(0, 0, 0, 0.1);
}

/* Individual Comments */
[data-theme="day"] .od-qa-comments-section .comment {
  background: #f9f9f9;
  color: #333;
  border-left-color: #cc7622;
}

[data-theme="day"] .od-qa-comments-section .comment .comment {
  background: #f0f0f0;
  border-left-color: rgba(0, 0, 0, 0.1);
}

[data-theme="day"] .od-qa-comments-section .comment-author {
  color: #000;
}

[data-theme="day"] .od-qa-comments-section .comment-content {
  color: #333;
}

[data-theme="day"] .od-qa-comments-section .comment-meta {
  color: #666;
}

/* Locked Comments / Join Discussion Box */
[data-theme="day"] .od-qa-comment-locked__content {
  background: #fff8e1; /* Light yellow/orange background */
  border-color: rgba(242, 162, 59, 0.3);
}

[data-theme="day"] .od-qa-comment-locked__title {
  color: #b35a00; /* Darker orange for better contrast */
}

[data-theme="day"] .od-qa-comment-locked__message {
  color: #444; /* Dark grey for readability */
}

[data-theme="day"] .od-qa-comment-locked__button {
  color: #ffffff !important; /* Force white text */
}

/* Day Mode - Fix AJAX Search Suggestions */
[data-theme="day"] #od-qa-search-suggestions {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.15);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

[data-theme="day"] .od-qa-search-suggestion {
  color: #333333;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

[data-theme="day"] .od-qa-search-suggestion:hover,
[data-theme="day"] .od-qa-search-suggestion.selected {
  background: #f4f4f4;
  color: #000000;
}

[data-theme="day"] .od-qa-search-suggestion strong {
  color: #000000; /* Highlighted text matches */
}

/* Day Mode - Fix Admin Category Editor Dropdown */
[data-theme="day"] .od-card-category-editor label {
  color: #333333; /* Dark text for the label */
  font-weight: 600;
}

[data-theme="day"] .od-category-select {
  background-color: #ffffff;
  color: #1a1a1a;
  border: 1px solid rgba(0, 0, 0, 0.2);
}

[data-theme="day"] .od-category-select option {
  background-color: #ffffff;
  color: #1a1a1a;
}

/* Day Mode - Fix Q&A Comment Form Inputs */
[data-theme="day"] .od-qa-comments-section .comment-form textarea,
[data-theme="day"] .od-qa-comments-section .comment-form input[type="text"],
[data-theme="day"] .od-qa-comments-section .comment-form input[type="email"],
[data-theme="day"] .od-qa-comments-section .comment-form input[type="url"] {
  background: #ffffff;
  color: #1a1a1a;
  border: 1px solid rgba(0, 0, 0, 0.2);
}

[data-theme="day"] .od-qa-comments-section .comment-form textarea::placeholder {
  color: #666666;
}

/* Fix "Logged in as" text */
[data-theme="day"] .od-qa-comments-section .logged-in-as {
  color: #333333;
  background: #fff8e1; /* Match the other yellow/orange boxes */
  border-color: rgba(242, 162, 59, 0.2);
}

[data-theme="day"] .od-qa-comments-section .logged-in-as a {
  color: #cc7622;
}

/* Fix Post Comment Button Text */
[data-theme="day"] .od-qa-comments-section .form-submit .submit {
  color: #ffffff !important;
}

/* Day Mode - Mega Dungeon Menus Plugin Overrides */
[data-theme="day"] {
  --mdm-bg: #ffffff;
  --mdm-text: #1a1a1a;
  --mdm-muted: #666666;
  --mdm-accent-gold: #cc7622;
  --mdm-accent-gold-dark: #b35a00;
  --mdm-accent-purple: #5e4b8a;
  --mdm-card-bg: #f4f4f4;
  --mdm-card-border: rgba(0, 0, 0, 0.1);
  --mdm-supporter-color: #5e4b8a;
  --mdm-locked-color: #999999;
}

/* Fix TOC Dropdown */
[data-theme="day"] #mdm-post-toc-select,
[data-theme="day"] .mdm-post-toc-dropdown {
  background-color: #ffffff;
  color: #1a1a1a;
  border: 1px solid rgba(0, 0, 0, 0.2);
}

/* Fix TOC Grid Buttons */
[data-theme="day"] .mdm-post-toc a,
[data-theme="day"] .mdm-post-toc .mdm-toc-item {
  background-color: #f4f4f4;
  color: #1a1a1a;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="day"] .mdm-post-toc a:hover,
[data-theme="day"] .mdm-post-toc .mdm-toc-item:hover {
  background-color: #e0e0e0;
  color: #000000;
  border-color: #cc7622;
}

/* Day Mode - Refine TOC Grid Buttons (User Request) */
[data-theme="day"] .mdm-post-toc-item,
[data-theme="day"] .mdm-post-toc-link {
  background-color: #f9f9f9 !important; /* Very light grey */
  color: #000000 !important; /* Black text */
  border: none !important; /* No border */
}

[data-theme="day"] .mdm-post-toc-item:hover,
[data-theme="day"] .mdm-post-toc-link:hover {
  background-color: #eaeaea !important; /* Slightly darker on hover */
  color: #000000 !important;
}

/* Day Mode - Exclude Popup Content (Keep Dark) */
[data-theme="day"] .mdm-popup-container,
[data-theme="day"] .mdm-popup-content {
  background-color: #11141b !important;
  color: #f3e8d0 !important;
  border-color: #2a3140 !important;
}

/* Fix Grid Items inside Popup for Day Mode */
[data-theme="day"] .mdm-grid-item {
  background-color: #11141b !important;
  border: 1px solid #000000 !important;
  color: #f3e8d0 !important;
}

[data-theme="day"] .mdm-grid-item-image {
  background-color: #000000 !important;
}

[data-theme="day"] .mdm-popup-content a {
  color: #f2a23b !important;
}


[data-theme="day"] .mdm-coming-soon-message {
  color: #ffffff !important;
}


/* Day Mode - Mobile Menu Fixes */
@media (max-width: 1310px) {
  [data-theme="day"] .mdm-mega-menu {
    background-color: #ffffff !important;
    color: #1a1a1a !important;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1) !important;
  }

  [data-theme="day"] .mdm-mega-menu .mdm-menu-link {
    color: #1a1a1a !important;
    border-bottom-color: rgba(0, 0, 0, 0.1) !important;
  }

  /* Fix Featured Item (Support OD) for Day Mode */
  [data-theme="day"] .mdm-menu-item.mdm-featured-item > .mdm-menu-link {
    color: #cc7622 !important; /* Darker gold/orange */
  }
  
  /* Fix Theme Toggle Button in Mobile Menu */
  [data-theme="day"] .od-theme-toggle-btn {
    color: #1a1a1a !important;
  }
}


/* Day Mode - Encounter Calculator Plugin Overrides */
[data-theme="day"] .od-encounter-calculator {
    --od-calc-bg: #ffffff;
    --od-calc-border: rgba(0, 0, 0, 0.15);
    --od-calc-text: #1a1a1a;
    --od-calc-text-secondary: #555555;
    --od-calc-section-bg: #f9f9f9;
    --od-calc-input-bg: #ffffff;
    --od-calc-notes-bg: #fff9e6;
    --od-calc-notes-border: #ffb300;
}

[data-theme="day"] .od-calc-container {
    background-color: transparent !important;
    border-color: var(--od-calc-border) !important;
    color: var(--od-calc-text) !important;
    box-shadow: none !important;
}

[data-theme="day"] .od-calc-title,
[data-theme="day"] .od-calc-subtitle {
    color: var(--od-calc-text) !important;
}

[data-theme="day"] .od-calc-field label {
    color: #000000 !important;
}

[data-theme="day"] .od-calc-section {
    background: #ffffff !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
}

[data-theme="day"] .od-calc-section-content {
    background: transparent !important;
}

[data-theme="day"] .od-calc-field input[type="number"],
[data-theme="day"] .od-calc-field select {
    background-color: #ffffff !important;
    color: #1a1a1a !important;
    border-color: rgba(0, 0, 0, 0.2);
}

[data-theme="day"] .od-calc-field input[type="number"]::placeholder {
    color: #888888 !important;
}

[data-theme="day"] .od-calc-result-main,
[data-theme="day"] .od-calc-breakdown {
    background-color: #f4f4f4 !important;
    color: #1a1a1a !important;
}

[data-theme="day"] .od-calc-result-main h3,
[data-theme="day"] .od-calc-breakdown h4,
[data-theme="day"] .od-calc-step-header strong,
[data-theme="day"] .od-step-result {
    color: #1a1a1a !important;
}

[data-theme="day"] .od-calc-notes {
    background-color: #fff9e6 !important;
    border-left-color: #ffb300 !important;
    color: #1a1a1a !important;
}

[data-theme="day"] .od-calc-notes h4,
[data-theme="day"] .od-calc-notes li,
[data-theme="day"] .od-calc-notes strong {
    color: #1a1a1a !important;
}

/* Modal */
[data-theme="day"] .od-calc-modal-content {
    background-color: #ffffff !important;
    color: #1a1a1a !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
}

[data-theme="day"] .od-calc-modal-close {
    color: #1a1a1a !important;
}


/* Day Mode - Fix Calculator Button & Missing Text */
[data-theme="day"] .od-calc-button {
    color: #000000 !important;
    font-weight: 700 !important;
}

/* Fix Radio Options (Step 3) */
[data-theme="day"] .od-calc-radio-option {
    background-color: #f9f9f9 !important;
    border-color: rgba(0, 0, 0, 0.2) !important;
    color: #1a1a1a !important;
}

[data-theme="day"] .od-calc-radio-option:hover {
    background-color: #f0f0f0 !important;
    border-color: #cc7622 !important;
}

[data-theme="day"] .od-radio-label strong {
    color: #000000 !important;
}

[data-theme="day"] .od-radio-help {
    color: #555555 !important;
}

/* Fix Action List (Step 2) */
[data-theme="day"] .od-action-list li,
[data-theme="day"] .od-action-status {
    color: #1a1a1a !important;
}

[data-theme="day"] .od-spice-description {
    color: #333333 !important;
}


[data-theme="day"] .od-calc-note-box p {
    color: #000000 !important;
}


/* Day Mode - Monster Save Roll Plugin Overrides */
[data-theme="day"] .od-tool.od-monster-save-roll .od-tool__container {
    background-color: transparent !important;
    color: #1a1a1a !important;
    box-shadow: none !important;
}

[data-theme="day"] .od-tool.od-monster-save-roll .od-tool__subtitle {
    color: #1a1a1a !important;
}

[data-theme="day"] .od-tool.od-monster-save-roll .od-tool__field label {
    color: #000000 !important;
}

[data-theme="day"] .od-tool.od-monster-save-roll .od-tool__field input[type="number"] {
    background-color: #ffffff !important;
    color: #1a1a1a !important;
    border-color: rgba(0, 0, 0, 0.2);
}

[data-theme="day"] .od-tool.od-monster-save-roll .od-tool__field input[type="number"]::placeholder {
    color: #888888 !important;
}

[data-theme="day"] .od-tool.od-monster-save-roll .od-tool__button {
    color: #000000 !important;
    font-weight: 700 !important;
}

[data-theme="day"] .od-tool.od-monster-save-roll .od-tool__results {
    background-color: transparent !important;
    color: #1a1a1a !important;
}

[data-theme="day"] .od-tool.od-monster-save-roll .od-tool__result-main h3,
[data-theme="day"] .od-tool.od-monster-save-roll .od-tool__formula {
    color: #1a1a1a !important;
}

[data-theme="day"] .od-tool.od-monster-save-roll .od-tool__examples {
    color: #1a1a1a !important;
}

[data-theme="day"] .od-tool.od-monster-save-roll .od-tool__example {
    background-color: #f9f9f9 !important;
    border: 1px solid rgba(0,0,0,0.1) !important;
    color: #1a1a1a !important;
}

[data-theme="day"] .od-tool.od-monster-save-roll .od-tool__example h5,
[data-theme="day"] .od-tool.od-monster-save-roll .od-tool__example p {
    color: #1a1a1a !important;
}

[data-theme="day"] .od-tool.od-monster-save-roll .od-modal-content {
    background-color: #ffffff !important;
    color: #1a1a1a !important;
}

[data-theme="day"] .od-tool.od-monster-save-roll .od-modal-close {
    color: #1a1a1a !important;
}


/* Day Mode - OD Tables Plugin Overrides */
[data-theme="day"] .od-table-wrapper {
    background-color: #ffffff !important;
    color: #000000 !important;
}

[data-theme="day"] .od-table {
    background-color: #ffffff !important;
    color: #000000 !important;
    border-color: #e0e0e0 !important;
}

[data-theme="day"] .od-table th,
[data-theme="day"] .od-table td {
    color: #000000 !important;
    border-color: #e0e0e0 !important;
    background-color: #ffffff !important; /* Default cell background */
}

[data-theme="day"] .od-table th {
    background-color: #f2f2f2 !important; /* Header background */
    font-weight: 700 !important;
    border-bottom: 2px solid #d0d0d0 !important;
}

/* Force striped rows in Day Mode for better readability */
[data-theme="day"] .od-table tbody tr:nth-child(odd) td {
    background-color: #f9f9f9 !important;
}

[data-theme="day"] .od-table tbody tr:hover td {
    background-color: #f0f0f0 !important;
}

/* Search Input */
[data-theme="day"] .od-table-search {
    background-color: #ffffff !important;
    color: #000000 !important;
    border: 1px solid #cccccc !important;
}

[data-theme="day"] .od-table-search::placeholder {
    color: #666666 !important;
}

/* Caption */
[data-theme="day"] .od-table caption {
    color: #000000 !important;
}

/* Sort Icons */
[data-theme="day"] th[data-od-sortable="true"]::after {
    color: #000000 !important;
    opacity: 0.5 !important;
}

[data-theme="day"] th.od-sort-asc::after,
[data-theme="day"] th.od-sort-desc::after {
    color: #000000 !important;
    opacity: 1 !important;
}


/* Day Mode - Character Generator Plugin Overrides */
[data-theme="day"] .od-summary-row strong {
    color: #000000 !important;
}

[data-theme="day"] .od-summary-row span {
    color: #333333 !important;
}

[data-theme="day"] .od-generator-header {
    background: linear-gradient(to bottom, #ffffff 0%, transparent 20%, transparent 80%, #ffffff 100%), radial-gradient(circle at center, rgba(60, 120, 255, 0.25), transparent 60%), #ffffff !important;
    color: #000000 !important;
    border: none !important;
    box-shadow: none !important;
}

[data-theme="day"] .od-generator-header h1,
[data-theme="day"] .od-generator-header .od-subtitle {
    color: #000000 !important;
}

[data-theme="day"] .od-save-load-controls {
    background-color: transparent !important;
    border: none !important;
    color: #000000 !important;
    padding: 15px !important;
    border-radius: 4px !important;
}

[data-theme="day"] .od-wizard-tabs {
    background: #f5f5f5 !important;
    border: none !important;
    box-shadow: none !important;
}

[data-theme="day"] .od-wizard-tab {
    color: #555555 !important;
    border-right: 1px solid #e0e0e0 !important;
}

[data-theme="day"] .od-wizard-tab.active {
    background-color: #e0e0e0 !important;
    color: #000000 !important;
}

[data-theme="day"] .od-wizard-tab:hover {
    background-color: #eaeaea !important;
    color: #000000 !important;
}


/* Day Mode - Fix Character Generator Buttons & Tabs */
[data-theme="day"] .od-save-load-controls .od-btn {
    background-color: #ffffff !important;
    color: #000000 !important;
    border: 1px solid #cccccc !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
}

[data-theme="day"] .od-save-load-controls .od-btn:hover {
    background-color: #f0f0f0 !important;
    border-color: #999999 !important;
}

[data-theme="day"] .od-wizard-tab {
    background-color: #f5f5f5 !important; /* Light grey for inactive tabs */
    color: #000000 !important;
    border-right: 1px solid #e0e0e0 !important;
}

[data-theme="day"] .od-wizard-tab.active {
    background-color: #e0e0e0 !important; /* Slightly darker for active */
    color: #000000 !important;
    font-weight: 700 !important;
}

[data-theme="day"] .od-wizard-tab:hover {
    background-color: #eaeaea !important;
    color: #000000 !important;
}

/* Fix the Generate button inside the form */
[data-theme="day"] .od-btn-primary {
    background-color: #4a90e2 !important; /* Keep it blue-ish but lighter/cleaner */
    color: #ffffff !important;
    border: none !important;
}

[data-theme="day"] .od-btn-primary:hover {
    background-color: #357abd !important;
}


/* Remove background image from form section in Day Mode */
[data-theme="day"] .od-form-section {
    background-image: none !important;
    background-color: #ffffff !important;
    border: 1px solid #e0e0e0 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05) !important;
}

[data-theme="day"] .od-form-row {
    background-image: none !important;
    background-color: transparent !important;
}

