/* EL-KADI OPS — Palantir blue + orange */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --p-void: #02060c;
  --p-deep: #051018;
  --p-surface: #0a1424;
  --p-elevated: rgba(10, 22, 40, 0.92);
  --p-border: rgba(56, 132, 220, 0.18);
  --p-border-hot: rgba(251, 146, 60, 0.45);
  --p-blue: #3b82f6;
  --p-cyan: #22d3ee;
  --p-orange: #fb923c;
  --p-amber: #fbbf24;
  --p-teal: #2dd4bf;
  --p-text: #e8eef7;
  --p-muted: #64748b;
  --p-mono: 'JetBrains Mono', ui-monospace, monospace;
  --p-sans: 'DM Sans', system-ui, sans-serif;
}

html { color-scheme: dark; }

body {
  font-family: var(--p-sans) !important;
  background: var(--p-void) !important;
  color: var(--p-text) !important;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 100% 70% at 8% -15%, rgba(59, 130, 246, 0.22), transparent 52%),
    radial-gradient(ellipse 80% 55% at 95% 5%, rgba(34, 211, 238, 0.12), transparent 48%),
    radial-gradient(ellipse 60% 50% at 88% 75%, rgba(251, 146, 60, 0.14), transparent 45%),
    radial-gradient(ellipse 50% 40% at 12% 85%, rgba(251, 146, 60, 0.08), transparent 40%),
    linear-gradient(165deg, #061018 0%, #02060c 45%, #030810 100%);
  pointer-events: none;
  z-index: 0;
  animation: bg-breathe 14s ease-in-out infinite alternate;
}

@keyframes bg-breathe {
  0% { opacity: 1; }
  100% { opacity: 0.9; }
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 30%, black 10%, transparent 72%);
  pointer-events: none;
  z-index: 0;
  animation: grid-drift 40s linear infinite;
}

@keyframes grid-drift {
  from { transform: translate(0, 0); }
  to { transform: translate(-56px, -56px); }
}

.palantir-scanline {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(0,0,0,0.04) 3px, rgba(0,0,0,0.04) 6px);
  opacity: 0.35;
}

.palantir-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

#page_wrapper { position: relative; z-index: 2; }

#information-widget-greeting, .information-widget-greeting {
  font-weight: 600 !important;
  letter-spacing: 0.22em !important;
  text-transform: uppercase !important;
  font-size: 0.7rem !important;
  color: var(--p-orange) !important;
  font-family: var(--p-mono) !important;
}

.information-widget {
  border: 1px solid var(--p-border) !important;
  border-radius: 10px !important;
  background: var(--p-elevated) !important;
  backdrop-filter: blur(14px);
  box-shadow: 0 4px 24px rgba(0,0,0,0.35), inset 0 1px 0 rgba(59,130,246,0.08);
}

button[role="tab"] {
  font-family: var(--p-mono) !important;
  font-size: 0.68rem !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  border: 1px solid var(--p-border) !important;
  border-radius: 6px !important;
  transition: all 0.25s ease;
}

button[role="tab"][aria-selected="true"] {
  background: linear-gradient(135deg, rgba(59,130,246,0.2), rgba(251,146,60,0.12)) !important;
  border-color: var(--p-border-hot) !important;
  color: var(--p-cyan) !important;
  box-shadow: 0 0 20px rgba(251,146,60,0.15);
}

.service-block, #services .service-group .service {
  border: 1px solid var(--p-border) !important;
  border-radius: 10px !important;
  background: var(--p-elevated) !important;
  backdrop-filter: blur(12px);
  transition: border-color 0.2s, box-shadow 0.25s, transform 0.2s;
}

.service-block:hover, #services .service-group .service:hover {
  border-color: rgba(251,146,60,0.5) !important;
  box-shadow: 0 0 28px rgba(59,130,246,0.12), 0 0 12px rgba(251,146,60,0.1);
  transform: translateY(-1px);
}

#services h2.service-group-name, .service-group-title {
  font-family: var(--p-mono) !important;
  font-size: 0.62rem !important;
  letter-spacing: 0.2em !important;
  text-transform: uppercase !important;
  color: var(--p-cyan) !important;
}

#bookmarks .bookmark-group h2, .bookmark-group-name {
  font-family: var(--p-mono) !important;
  font-size: 0.62rem !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
  color: var(--p-orange) !important;
}

#bookmarks a {
  border: 1px solid var(--p-border) !important;
  transition: border-color 0.2s, box-shadow 0.2s;
}

#bookmarks a:hover {
  border-color: rgba(251,146,60,0.4) !important;
  box-shadow: 0 0 16px rgba(59,130,246,0.1);
}

.rss-hub {
  margin: 1rem 1.5rem 1.5rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--p-border);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(10,22,40,0.95), rgba(6,12,22,0.98));
  box-shadow: 0 8px 40px rgba(0,0,0,0.45), inset 0 1px 0 rgba(59,130,246,0.12);
  backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
}

.rss-hub::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--p-blue), var(--p-orange), var(--p-cyan), transparent);
  animation: rss-scan 4s ease-in-out infinite;
}

@keyframes rss-scan {
  0%, 100% { opacity: 0.5; transform: scaleX(0.6); }
  50% { opacity: 1; transform: scaleX(1); }
}

.rss-hub-title {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-bottom: 1.25rem;
  font-family: var(--p-mono);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--p-cyan);
}

.rss-hub-accent {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--p-orange);
  box-shadow: 0 0 12px var(--p-orange);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

.rss-hub-sub {
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  color: var(--p-muted);
  text-transform: none;
}

.rss-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

@media (max-width: 1280px) { .rss-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .rss-grid { grid-template-columns: 1fr; } }

.rss-column {
  border: 1px solid rgba(59,130,246,0.12);
  border-radius: 10px;
  padding: 0.75rem;
  background: rgba(5,12,24,0.6);
  min-height: 160px;
}

.rss-column-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--p-mono);
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--p-orange);
  margin-bottom: 0.65rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--p-border);
}

.rss-pulse {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--p-cyan);
  animation: pulse-dot 1.8s ease-in-out infinite;
}

.rss-feed-block { list-style: none; margin-bottom: 0.85rem; }

.rss-feed-name {
  display: block;
  font-family: var(--p-mono);
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--p-muted);
  margin-bottom: 0.35rem;
}

.rss-items { list-style: none; padding: 0; margin: 0; }

.rss-items li {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.28rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 0.72rem;
  line-height: 1.35;
  animation: rss-fade-in 0.4s ease forwards;
  opacity: 0;
}

.rss-items li:nth-child(1) { animation-delay: 0.05s; }
.rss-items li:nth-child(2) { animation-delay: 0.1s; }
.rss-items li:nth-child(3) { animation-delay: 0.15s; }
.rss-items li:nth-child(4) { animation-delay: 0.2s; }
.rss-items li:nth-child(5) { animation-delay: 0.25s; }

@keyframes rss-fade-in { to { opacity: 1; } }

.rss-items a {
  color: var(--p-text) !important;
  text-decoration: none;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rss-items a:hover { color: var(--p-orange) !important; }

.rss-items time {
  font-family: var(--p-mono);
  font-size: 0.58rem;
  color: var(--p-muted);
  flex-shrink: 0;
}

.rss-loading { color: var(--p-muted); font-style: italic; }
.rss-error a { color: var(--p-orange) !important; }

.status-dot-status-green, .text-green-500 {
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.55);
}

footer, #footer {
  opacity: 0.35;
  font-family: var(--p-mono);
  font-size: 0.62rem;
}



/* ─── Logo gradients + profile photo ─── */
:root {
  --color-logo-start: 59, 130, 246;
  --color-logo-stop: 251, 146, 60;
}

.information-widget-logo img,
.information-widget-logo a img,
#information-widgets .information-widget-logo img {
  width: 52px !important;
  height: 52px !important;
  min-width: 52px !important;
  min-height: 52px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  border: 2px solid rgba(251, 146, 60, 0.55) !important;
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.35), 0 4px 16px rgba(0, 0, 0, 0.4) !important;
  filter: none !important;
  animation: none !important;
}

.information-widget-logo:hover img {
  border-color: rgba(34, 211, 238, 0.7) !important;
}

.service-icon {
  position: relative !important;
  border-radius: 8px !important;
  margin: 2px 4px 2px 2px !important;
  background: rgba(12, 22, 38, 0.85) !important;
  border: 1px solid rgba(59, 130, 246, 0.12) !important;
  box-shadow: none !important;
  animation: none !important;
  overflow: hidden;
}

.service-icon::before,
.service-icon::after {
  display: none !important;
  content: none !important;
}

.service-icon > div { filter: none !important; transition: transform 0.2s ease; }
.service-icon img { filter: saturate(1.12) contrast(1.02) !important; transition: transform 0.2s ease; }

.service-card:hover .service-icon {
  border-color: rgba(251, 146, 60, 0.35) !important;
  box-shadow: 0 0 0 1px rgba(251, 146, 60, 0.15) !important;
}

.service-card:hover .service-icon > div,
.service-card:hover .service-icon img { transform: scale(1.06); }

.services-list .service:nth-child(6n+1) .service-icon { border-left: 2px solid #3b82f6 !important; }
.services-list .service:nth-child(6n+2) .service-icon { border-left: 2px solid #a855f7 !important; }
.services-list .service:nth-child(6n+3) .service-icon { border-left: 2px solid #22c55e !important; }
.services-list .service:nth-child(6n+4) .service-icon { border-left: 2px solid #06b6d4 !important; }
.services-list .service:nth-child(6n+5) .service-icon { border-left: 2px solid #f59e0b !important; }
.services-list .service:nth-child(6n+6) .service-icon { border-left: 2px solid #ec4899 !important; }

.bookmark-icon { font-weight: 600 !important; color: #fff !important; animation: none !important; box-shadow: none !important; }
.bookmark:nth-child(4n+1) .bookmark-icon { background: linear-gradient(135deg, #2563eb, #3b82f6) !important; }
.bookmark:nth-child(4n+2) .bookmark-icon { background: linear-gradient(135deg, #ea580c, #fb923c) !important; }
.bookmark:nth-child(4n+3) .bookmark-icon { background: linear-gradient(135deg, #7c3aed, #a855f7) !important; }
.bookmark:nth-child(4n+4) .bookmark-icon { background: linear-gradient(135deg, #059669, #22c55e) !important; }

.information-widget-resource .resource-icon { animation: none !important; filter: none !important; }
.information-widget-resource:nth-child(1) .resource-icon { color: #60a5fa !important; }
.information-widget-resource:nth-child(2) .resource-icon { color: #fb923c !important; }
.information-widget-resource:nth-child(3) .resource-icon { color: #4ade80 !important; }

.resource-usage > div {
  background: linear-gradient(90deg, #3b82f6, #fb923c) !important;
  animation: none !important;
  background-size: 100% 100% !important;
}

.status-dot-status-green, .text-green-500 {
  background-color: #4ade80 !important;
  animation: status-pulse-green 3s ease-out infinite;
}
.status-dot-status-red, .text-red-500 {
  background-color: #f87171 !important;
  animation: status-pulse-red 3s ease-out infinite;
}
@keyframes status-pulse-green {
  0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.5); }
  70% { box-shadow: 0 0 0 6px rgba(74, 222, 128, 0); }
}
@keyframes status-pulse-red {
  0% { box-shadow: 0 0 0 0 rgba(248, 113, 113, 0.5); }
  70% { box-shadow: 0 0 0 6px rgba(248, 113, 113, 0); }
}

button[role="tab"][aria-selected="true"] { animation: none !important; }
.service-card { animation: none !important; }
.rss-hub { animation: none !important; }

@media (prefers-reduced-motion: reduce) {
  body::before, body::after, .rss-hub::before, .rss-pulse, .rss-hub-accent,
  .service-icon, .service-icon::before, .service-icon::after, .service-card,
  .bookmark-icon, .information-widget-resource .resource-icon, button[role="tab"][aria-selected="true"],
  .rss-hub, #information-widgets img { animation: none !important; }
}
