/* ===========================================================
   QTOS LIBRARY — GLOBAL STYLING
   =========================================================== */

body {
  font-family: system-ui, sans-serif;
}

/* Smooth fade for sections */
.qtos-category {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.qtos-category:not(.hidden) {
  opacity: 1;
  transform: translateY(0);
}


/* ===========================================================
   QUANTUM GATE TABS
   =========================================================== */

.qtos-tab {
  padding: 10px 14px;
  font-weight: 600;
  cursor: pointer;
  color: #7b7b7b;
  border-bottom: 2px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.qtos-tab:hover {
  color: cyan;
  border-color: rgba(0, 255, 255, 0.4);
}

.qtos-tab-active {
  color: cyan;
  border-color: cyan;
  text-shadow: 0 0 6px cyan;
}


/* ===========================================================
   OS MODULE CARD
   =========================================================== */

.qtos-card {
  background: rgba(20, 20, 20, 0.7);
  border: 1px solid rgba(80, 80, 80, 0.5);
  border-radius: 14px;
  padding: 20px;
  position: relative;
  backdrop-filter: blur(4px);
  box-shadow: 0 0 0 rgba(0, 255, 255, 0);
  transform-style: preserve-3d;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

/* Light Mode */
html.light .qtos-card {
  background: #ffffff;
  border: 1px solid #d0d0d0;
}

/* Hologram Mode */
html.hologram .qtos-card {
  background: rgba(0, 0, 0, 0.75);
  border-color: rgba(0, 255, 255, 0.5);
  box-shadow: 0 0 12px rgba(0, 255, 255, 0.2);
}

/* Card Active (panel open) */
.active-card {
  border-color: cyan;
  box-shadow: 0 0 18px rgba(0, 255, 255, 0.6);
}


/* ===========================================================
   CARD HEADER
   =========================================================== */

.qtos-card-header {
  cursor: pointer;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(100, 100, 100, 0.3);
}

html.light .qtos-card-header {
  border-bottom-color: #e0e0e0;
}

.qtos-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: cyan;
}


/* ===========================================================
   PUBLISHED / COMING SOON BADGES
   =========================================================== */

.published-badge {
  background: rgba(0, 255, 0, 0.2);
  color: #00ff00;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  border: 1px solid rgba(0, 255, 0, 0.6);
}

.coming-soon-badge {
  background: rgba(255, 255, 0, 0.15);
  color: #f3f39a;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 0, 0.5);
}


/* Light mode badges */
html.light .published-badge {
  background: #e7ffe7;
  color: #009900;
  border-color: #00aa00;
}

html.light .coming-soon-badge {
  background: #fffacc;
  color: #998800;
  border-color: #ccbb00;
}


/* ===========================================================
   SLIDE-OUT PANEL
   =========================================================== */

.qtos-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s ease, opacity 0.4s ease;
  opacity: 0;
  margin-top: 14px;
}

.qtos-panel.open {
  max-height: 600px;
  opacity: 1;
}


/* ===========================================================
   TEXT BEAUTIFICATION
   =========================================================== */

.qtos-panel p {
  color: #d4d4d4;
  font-size: 0.95rem;
}

html.light .qtos-panel p {
  color: #333;
}


/* ===========================================================
   HOVER / HOLOGRAM GLOW
   =========================================================== */

.qtos-card:hover {
  border-color: cyan;
  box-shadow: 0 0 12px rgba(0, 255, 255, 0.3);
}

html.hologram .qtos-card:hover {
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.6);
}


/* ===========================================================
   TITLES & HEADINGS
   =========================================================== */

h2 {
  margin-bottom: 10px;
}

h2,
h3 {
  color: cyan;
}

html.light h2,
html.light h3 {
  color: #005577;
}

/* Category Heads */
.qtos-category h2 {
  border-bottom: 1px solid rgba(0, 255, 255, 0.2);
  padding-bottom: 6px;
  margin-bottom: 20px;
}

html.light .qtos-category h2 {
  border-bottom-color: #88ddee;
}


/* ===========================================================
   RESPONSIVE BEHAVIOUR
   =========================================================== */

@media (max-width: 768px) {
  .qtos-card {
    padding: 16px;
  }

  .qtos-card-title {
    font-size: 1.1rem;
  }
}
