/* ==========================================================
   GATEWAY THEME v3 — Unified Portal + Wormhole + Grid System
   ========================================================== */

/* ----------------------------------------------------------
   GLOBAL BACKGROUND — wormhole + binary grid
   ---------------------------------------------------------- */

body {
  background-color: #0f172a;
  background-image:
    linear-gradient(#1e293b66 1px, transparent 1px),
    linear-gradient(90deg, #1e293b66 1px, transparent 1px);
  background-size: 24px 24px;
  background-attachment: fixed;
}

/* Wormhole halo */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    circle at center,
    #3b82f622 0%,
    #0f172a 60%
  );
  opacity: 0.35;
}

/* Binary shimmer */
body::before {
  content: "01001101 01001111 01000100 01010101 01001100 01000101";
  position: fixed;
  inset: 0;
  font: 6px/1 monospace;
  color: #1e293b55;
  white-space: nowrap;
  background-repeat: repeat;
  background-size: 24px 24px;
  mix-blend-mode: multiply;
  opacity: 0.18;
  pointer-events: none;
}

/* ----------------------------------------------------------
   PORTAL WIDGET — container skin neutralization + portal rim
   ---------------------------------------------------------- */

body .gt-feed-widget.portal {
  max-width: 520px;
  margin: 1.25rem auto !important;
  padding: 0.75rem 1rem !important;
  position: relative;
  text-align: center;

  /* Doppler gradient panel */
  background: linear-gradient(
    to bottom,
    rgba(15,23,42,0.92),
    rgba(15,23,42,0.85)
  ) !important;

  border: 2px solid #FF7F27 !important;
  border-radius: 14px !important;

  /* Portal rim glow */
  /* css-ignore-start */
  box-shadow:
    0 0 22px #FF7F27aa !important,
    inset 0 0 14px #FF7F2766 !important,
    inset 0 0 4px #ffffff33 !important;
}
/* css-ignore-end */

/* Neutralize Harbor‑Delta skins */
body .gt-feed-widget,
body .article-container {
  background: none !important;
  box-shadow: none !important;
  border: none !important;
}

/* Binary overlay inside widget */
body .gt-feed-widget.portal::before {
  content: "01010100 01100101 01100011 01101000 00100000 01000110 01100101 01100101 01100100 01110011";
  position: absolute;
  inset: 0;
  font: 6px/1 monospace;
  color: #1e293b33;
  white-space: nowrap;
  background-repeat: repeat;
  background-size: 22px 22px;
  mix-blend-mode: overlay;
  opacity: 0.18;
  pointer-events: none;
}

/* ----------------------------------------------------------
   FEED BUTTONS — slim pill geometry + LED glow
   ---------------------------------------------------------- */

body .gt-feed-widget.portal .gt-feed-list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0.25rem 0.75rem;     /* slimmer */
  min-height: 26px;             /* console height */
  border-radius: 999px;

  background: rgba(30,41,59,0.55);
  color: #cbd5e1;
  font-weight: 500;

  box-shadow:
    inset 0 0 3px #ffffff22,    /* bevel */
    0 0 6px #3b82f633,          /* blue LED */
    0 0 4px #FF7F2733;          /* orange shimmer */

  transition: background 0.25s, box-shadow 0.25s, color 0.25s;
}

body .gt-feed-widget.portal .gt-feed-list li {
  flex: 0 0 33.33% !important; /* 3 columns locked */
}

body .gt-feed-widget.portal .gt-feed-list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0.35rem 0.9rem;
  border-radius: 999px;

  background: linear-gradient(
    to bottom,
    #1e293b88,
    #1e293b55
  );

  color: #cbd5e1;
  font-weight: 500;
  text-decoration: none;

  /* LED glow + bevel */
  box-shadow:
    inset 0 0 3px #ffffff22,
    0 0 8px #3b82f633,
    0 0 5px #FF7F2733;

  transition: background 0.25s, box-shadow 0.25s, color 0.25s;
}

body .gt-feed-widget.portal .gt-feed-list a:hover {
  background: #3b82f6aa;
  color: #fff;
  box-shadow:
    0 0 12px #3b82f6aa,
    0 0 18px #FF7F27aa;
}

/* ----------------------------------------------------------
   TABLE VARIANT — unified tint + glow + cleanup
   ---------------------------------------------------------- */

body .gt-feed-widget.portal .gt-feed-table {
  margin: 1.25rem auto 0;
  border-collapse: separate;
  border-spacing: 0;
  background: rgba(15,23,42,0.92);
  backdrop-filter: blur(3px);
  border-radius: 14px;
  overflow: hidden;
  width: max-content;
}

body .gt-feed-widget.portal .gt-feed-table th,
body .gt-feed-widget.portal .gt-feed-table td {
  width: 33.33%;
  text-align: center;
  color: #cbd5e1;
}

body .gt-feed-widget.portal .gt-feed-table th {
  padding: 1rem;
  font-size: 1.1rem;
  background: #1e293b88;
  color: #FF7F27;
}

body .gt-feed-widget.portal .gt-feed-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #1e293b55;
  border-right: 1px solid #1e293b33;
}

body .gt-feed-widget.portal .gt-feed-table td:last-child {
  border-right: none;
}

body .gt-feed-widget.portal .gt-feed-table tr:last-child td {
  border-bottom: none;
}

body .gt-feed-widget.portal .gt-feed-table a {
  color: #cbd5e1;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

body .gt-feed-widget.portal .gt-feed-table a:hover {
  background: #1e293b66;
  color: #fff;
}

/* ----------------------------------------------------------
   TIGHT GEOMETRY — heading + image spacing
   ---------------------------------------------------------- */

body .gt-feed-widget.portal img {
  margin-top: 0.25rem;
  margin-bottom: 0.25rem;
}

body .gt-feed-widget.portal h3 {
  margin-top: 0.25rem;
  margin-bottom: 0.75rem;
  color: #FF7F27;
}

body .gt-feed-widget.portal .gt-feed-list {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
}

body .gt-feed-widget.portal .gt-feed-list li {
  flex: 0 0 33.33% !important;
}

body .gt-feed-widget.portal .gt-feed-list {
  list-style: none;
  padding-left: 0;
  margin-left: 0;
}

body .gt-feed-widget.portal .gt-feed-table tbody tr:nth-child(even) {
  background-color: rgba(30, 41, 59, 0.55); /* slate console */
}

body .gt-feed-widget.portal .gt-feed-table td {
  border-bottom: 1px solid #0f172a;
  border-right: 1px solid #1e293b;
}

body .gt-feed-widget.portal .gt-feed-table {
  box-shadow:
    inset 0 0 6px #000000aa,
    0 0 12px #3b82f633,
    0 0 8px #FF7F2733;
}

body .gt-feed-widget.portal .gt-feed-table a:hover {
  background: #3b82f666;
  color: #fff;
  box-shadow:
    0 0 10px #3b82f6aa,
    0 0 14px #FF7F27aa;
}

body .gt-feed-widget.portal .gt-feed-table td {
  padding: 0.6rem 0.75rem;
}

body .gt-feed-widget.portal .gt-feed-table {
  background-image:
    linear-gradient(#1e293b33 1px, transparent 1px),
    linear-gradient(90deg, #1e293b33 1px, transparent 1px);
  background-size: 18px 18px;
}

/* ================================
   Feeds Article Wrapper (alphabetical)
   ================================ */

.feeds-article {
  margin: 0 auto;
  max-width: 860px;
  padding: 2rem 1.5rem;
}

.feeds-footer {
  border-top: 1px solid #ddd;
  margin-top: 2.5rem;
  padding-top: 1rem;
  text-align: center;
}

.feeds-footer-note {
  color: #666;
  font-size: 0.85rem;
  letter-spacing: 0.3px;
}

.feeds-header {
  background: rgba(0, 0, 0, 0.04);
  border-bottom: 1px solid #ccc;
  margin-bottom: 2rem;
  padding: 1.5rem 1rem;
}

.feeds-subheader {
  color: #555;
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.5px;
  margin: 0.4rem 0 0;
}

.feeds-title {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin: 0;
}

.feeds-widget {
  margin-top: 1rem;
}

.feeds-widget {
  margin-top: 1rem;
  margin-bottom: 0.75rem; /* tightened bottom spacing */
}

.feeds-footer {
  margin-top: -0.25rem; /* subtle snap */
}

.feeds-widget {
  margin-bottom: 0.5rem; /* tighter, but still breathing */
}

.feed-panel:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.22);
}

.feed-panel:hover {
  filter: drop-shadow(0 0 6px rgba(0, 180, 255, 0.25));
}
