/* ===================================================
   I INFO VISION — THEMES SHOWCASE & SHARED CONTROLS
   Universal Theme Switcher Bar & Specs Inspector Drawer
   =================================================== */

/* ── TOP THEME SWITCHER BAR / NAVIGATION BAR ── */
.theme-universal-bar {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 99999;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: 10px 20px;
  color: #ffffff;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.theme-bar-container {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.theme-bar-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Prominent Back to Theme Selection Button */
.theme-bar-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.theme-bar-back-btn i {
  font-size: 15px;
  transition: transform 0.2s ease;
}

.theme-bar-back-btn:hover {
  background: #2563eb;
  border-color: #3b82f6;
  color: #ffffff;
  transform: translateX(-3px);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.5);
}

.theme-bar-back-btn:hover i {
  transform: translateX(-3px);
}

.theme-bar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  font-size: 13.5px;
  transition: color 0.2s;
}

.theme-bar-brand:hover {
  color: #ffffff;
}

.theme-bar-brand-badge {
  background: linear-gradient(135deg, #2563eb, #38bdf8);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 999px;
  letter-spacing: 0.5px;
  color: #ffffff;
}

.theme-bar-divider {
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, 0.2);
}

.theme-bar-center {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Badge showing which theme is active */
.theme-current-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.85);
}

.theme-current-badge strong {
  color: #ffffff;
  letter-spacing: 0.2px;
}

.theme-pill-btn.pill-brutal.active {
  background: #111111;
  border-color: #cc4e2a;
  box-shadow: 0 0 16px rgba(204, 78, 42, 0.6);
}

.theme-pill-btn.pill-y2k.active {
  background: #ffe600;
  color: #000000 !important;
  border-color: #000000;
  box-shadow: 0 0 16px rgba(255, 230, 0, 0.7);
}

.theme-bar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-inspect-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.theme-inspect-btn:hover {
  background: rgba(56, 189, 248, 0.22);
  color: #ffffff;
  transform: translateY(-1px);
}

/* ── THEME SPECS SLIDE-OUT DRAWER ── */
.theme-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  z-index: 100000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.theme-drawer-overlay.open {
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
}

.theme-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 440px;
  background: #0f172a;
  color: #f8fafc;
  z-index: 100001;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), right 0.35s ease;
  font-family: 'Inter', sans-serif;
  overflow: hidden;
  box-sizing: border-box;
}

.theme-drawer *,
.theme-drawer *::before,
.theme-drawer *::after {
  box-sizing: border-box;
}

.theme-drawer.open,
.theme-drawer[style*="right: 0px"],
.theme-drawer[style*="right:0px"] {
  transform: translateX(0) !important;
  right: 0 !important;
}

.theme-drawer[style*="right: -480px"],
.theme-drawer[style*="right:-480px"] {
  transform: translateX(100%) !important;
}

@media (max-width: 1024px) {
  .theme-drawer {
    max-width: min(440px, 92vw);
  }
}

@media (max-width: 640px) {
  .theme-drawer {
    max-width: 100vw;
    width: 100vw;
  }
}

.theme-drawer-header {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.theme-drawer-title-wrap {
  display: flex;
  flex-direction: column;
}

.theme-drawer-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #38bdf8;
  margin-bottom: 2px;
}

.theme-drawer-title {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.theme-drawer-close {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.theme-drawer-close:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: rotate(90deg);
}

.theme-drawer-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.theme-spec-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px;
}

.theme-spec-heading {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.theme-swatches {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(75px, 1fr));
  gap: 10px;
}

.theme-swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
  transition: transform 0.2s;
}

.theme-swatch:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.08);
}

.theme-swatch-color {
  width: 100%;
  height: 38px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 6px;
}

.theme-swatch-name {
  font-size: 10px;
  font-weight: 600;
  color: #e2e8f0;
  text-align: center;
  white-space: nowrap;
}

.theme-swatch-hex {
  font-size: 9.5px;
  color: #94a3b8;
  font-family: monospace;
}

.theme-drawer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.theme-drawer-list li {
  font-size: 13px;
  color: #cbd5e1;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.45;
}

.theme-drawer-list li i {
  color: #38bdf8;
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 2px;
}

.theme-drawer-footer {
  padding: 16px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  gap: 12px;
}

.theme-drawer-btn {
  flex: 1;
  padding: 10px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s;
}

.theme-drawer-btn-primary {
  background: #2563eb;
  color: #ffffff;
}

.theme-drawer-btn-primary:hover {
  background: #1d4ed8;
}

.theme-drawer-btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.theme-drawer-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

/* Toast Notification for Clipboard Copy */
.theme-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(50px);
  background: #0f172a;
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  z-index: 100005;
}

.theme-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  visibility: visible;
}

.back-text-short {
  display: none;
}

@media (max-width: 768px) {
  .theme-universal-bar {
    padding: 10px 16px;
  }

  .theme-bar-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    width: 100%;
    gap: 12px;
  }

  .theme-bar-left {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 12px;
  }

  .theme-bar-back-btn {
    padding: 7px 14px;
    font-size: 13px;
    white-space: nowrap;
  }

  .back-text-full {
    display: none;
  }

  .back-text-short {
    display: inline;
  }

  .theme-bar-brand {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    color: #ffffff;
    transition: all 0.2s ease;
  }

  .theme-bar-brand:hover {
    background: rgba(255, 255, 255, 0.18);
  }

  .theme-bar-divider {
    display: none;
  }

  /* Hide center badge and specs button on mobile to keep a clean, single-row back & main site bar */
  .theme-bar-center,
  .theme-bar-right {
    display: none !important;
  }

  .theme-drawer {
    max-width: 100%;
  }
}


/* ===================================================
   UNIVERSAL MOBILE & SPLIT-SCREEN RESPONSIVENESS SYSTEM (ALL THEMES)
   Enforces fluid single-column stacking, zero overflow,
   and touch-friendly ergonomics on all smartphones, tablets,
   and laptop split-screen viewports (<= 1024px)
   =================================================== */
@media (max-width: 1024px) {
  /* Prevent horizontal scroll globally */
  html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
  }

  /* Universal container mobile padding */
  .container,
  [class*="-container"],
  .soft-container,
  .neu-container,
  .bento-container,
  .minimal-container,
  .neon-container,
  .cyber-container,
  .td-container,
  .luxury-container,
  .swiss-container,
  .aurora-container,
  .ga-container,
  .md-container,
  .fluent-container,
  .bh-container,
  .rf-container {
    padding-left: 16px !important;
    padding-right: 16px !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Force all multi-column layout grids into 1 column */
  [class*="hero-grid"],
  [class*="-hero-grid"],
  [class*="grid-hero"],
  [class*="grid-2"],
  [class*="grid-quad"],
  [class*="trio-grid"],
  [class*="-trio"],
  [class*="feature-grid"],
  [class*="bento-grid"],
  [class*="cards-grid"],
  [class*="calc-grid"],
  [class*="collage-grid"],
  [class*="lookbook-grid"] {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  /* Overwrite any inline grid-template-columns attributes */
  div[style*="grid-template-columns: 1.1fr 1fr"],
  div[style*="grid-template-columns: 1.15fr 1fr"],
  div[style*="grid-template-columns: 1.2fr 0.8fr"],
  div[style*="grid-template-columns: 1.5fr 1fr 1fr"],
  div[style*="grid-template-columns: 1fr 1fr"],
  div[style*="grid-template-columns: 1fr 1fr 1fr"],
  div[style*="grid-template-columns: repeat(12, 1fr)"],
  div[style*="grid-template-columns: repeat(4, 1fr)"]:not(.neu-calc-keypad):not([class*="calc"]),
  div[style*="grid-template-columns: repeat(3, 1fr)"] {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  /* Bento Grid items span full width on mobile */
  .col-span-12, .col-span-8, .col-span-6, .col-span-4, .col-span-3,
  [class*="col-span-"] {
    grid-column: 1 / -1 !important;
    width: 100% !important;
  }

  /* Terminal, Pre, Code, Tables must scroll horizontally inside container, not break page */
  pre, code, .terminal-body, [class*="terminal"] {
    max-width: 100% !important;
    overflow-x: auto !important;
    white-space: pre-wrap !important;
    word-break: break-all !important;
    box-sizing: border-box !important;
  }

  /* Typography fluid sizing on small devices */
  h1, [class*="hero-title"] {
    font-size: clamp(26px, 7vw, 36px) !important;
    line-height: 1.2 !important;
    word-break: break-word !important;
  }

  h2 {
    font-size: clamp(22px, 5.5vw, 28px) !important;
    line-height: 1.25 !important;
  }

  p {
    font-size: 15px !important;
    line-height: 1.6 !important;
  }

  /* Full width touch buttons on mobile */
  .theme-lead-cta div[style*="display: flex"],
  .theme-lead-cta div[style*="display:flex"] {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
  }

  .theme-lead-cta a,
  .theme-lead-cta button {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
    box-sizing: border-box !important;
  }

  /* Card padding reduction for mobile screens */
  .soft-card,
  .neu-card,
  .bento-card,
  .minimal-card,
  .neon-card,
  .cyber-card,
  .td-card,
  .luxury-card,
  .swiss-card,
  .aurora-card,
  .ga-glass-card,
  .md-card,
  .reveal-card,
  .bh-card,
  .rf-card {
    padding: 20px 16px !important;
  }
}


/* ═══════════════════════════════════════════════════
   UNIVERSAL THEME COPYRIGHT FOOTER
   Clean, branded, and responsive across all 31 themes
   ═══════════════════════════════════════════════════ */
.theme-copyright-footer {
  width: 100%;
  background: #0f172a;
  color: #94a3b8;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px 20px;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  font-size: 13.5px;
  box-sizing: border-box;
  margin-top: auto;
  position: relative;
  z-index: 10;
}

.theme-copyright-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.theme-copyright-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.theme-copyright-brand img {
  height: 22px;
  width: auto;
  object-fit: contain;
  display: block;
}

.theme-copyright-text {
  text-align: center;
  line-height: 1.6;
}

.theme-copyright-text strong {
  color: #f1f5f9;
}

.theme-copyright-text a {
  color: #38bdf8;
  text-decoration: none;
  font-weight: 700;
  transition: color 0.2s ease;
}

.theme-copyright-text a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.theme-copyright-links {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12.5px;
}

.theme-copyright-links a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s ease;
}

.theme-copyright-links a:hover {
  color: #ffffff;
}

@media (max-width: 768px) {
  .theme-copyright-footer {
    padding: 20px 16px;
    text-align: center;
  }
  .theme-copyright-inner {
    flex-direction: column;
    justify-content: center;
    gap: 12px;
  }
  .theme-copyright-links {
    gap: 12px;
    justify-content: center;
  }
}

/* ==========================================================================
   THEME TOP BAR (Floating Breadcrumb Bar for All Themes)
   ========================================================================== */
.theme-top-bar {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding: 10px 24px;
  position: relative;
  z-index: 1000;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.theme-top-bar .theme-bar-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.theme-top-bar .theme-bar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
}

.theme-top-bar .theme-bar-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #0f172a !important;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.theme-top-bar .theme-bar-back-btn i {
  font-size: 14px;
  transition: transform 0.2s ease;
}

.theme-top-bar .theme-bar-back-btn:hover {
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff !important;
  transform: translateX(-3px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.25);
}

.theme-top-bar .theme-bar-divider {
  width: auto;
  height: auto;
  background: transparent;
  color: #94a3b8;
  font-weight: 400;
  font-size: 15px;
  user-select: none;
}

.theme-top-bar .theme-bar-current {
  color: #1e293b;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.theme-top-bar .theme-bar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-top-bar .theme-bar-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #334155 !important;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.theme-top-bar .theme-bar-btn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #0f172a !important;
}

.theme-top-bar .theme-bar-btn-primary {
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff !important;
}

.theme-top-bar .theme-bar-btn-primary:hover {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}

@media (max-width: 640px) {
  .theme-top-bar {
    padding: 8px 14px;
  }
  .theme-top-bar .theme-bar-container {
    gap: 8px;
  }
  .theme-top-bar .theme-bar-current {
    display: none;
  }
  .theme-top-bar .theme-bar-divider {
    display: none;
  }
  .theme-top-bar .theme-bar-btn span {
    display: none;
  }
}

/* ── UNIVERSAL TOP BAR ENHANCED COLOR & CONTRAST OVERRIDES ── */
.theme-universal-bar {
  position: sticky !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 99999 !important;
  background: rgba(15, 23, 42, 0.95) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
  padding: 10px 20px !important;
  color: #ffffff !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25) !important;
}

.theme-universal-bar a,
.theme-universal-bar span,
.theme-universal-bar strong,
.theme-universal-bar button,
.theme-universal-bar i {
  visibility: visible !important;
  opacity: 1 !important;
}

.theme-universal-bar .theme-bar-back-btn {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.12) !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
}

.theme-universal-bar .theme-bar-back-btn:hover {
  background: #2563eb !important;
  border-color: #3b82f6 !important;
  color: #ffffff !important;
}

.theme-universal-bar .theme-bar-brand {
  color: rgba(255, 255, 255, 0.85) !important;
}

.theme-universal-bar .theme-bar-brand:hover {
  color: #ffffff !important;
}

.theme-universal-bar .theme-current-badge {
  color: rgba(255, 255, 255, 0.9) !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
}

.theme-universal-bar .theme-current-badge strong {
  color: #ffffff !important;
}

.theme-universal-bar .theme-inspect-btn {
  color: #38bdf8 !important;
  background: rgba(56, 189, 248, 0.12) !important;
  border: 1px solid rgba(56, 189, 248, 0.3) !important;
}

.theme-universal-bar .theme-inspect-btn:hover {
  background: rgba(56, 189, 248, 0.25) !important;
  color: #ffffff !important;
}
