/* GeoLibre v3.0.0 Release & Downloads Hub Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&family=Outfit:wght@500;600;700;800&display=swap');

:root {
  --gl-primary: #14b8a6;
  --gl-primary-dark: #0f766e;
  --gl-primary-glow: rgba(20, 184, 166, 0.35);
  --gl-accent: #38bdf8;
  --gl-bg-base: #090d16;
  --gl-bg-surface: rgba(15, 23, 42, 0.82);
  --gl-bg-surface-elevated: rgba(30, 41, 59, 0.85);
  --gl-border: rgba(148, 163, 184, 0.15);
  --gl-border-hover: rgba(20, 184, 166, 0.45);
  --gl-text: #f1f5f9;
  --gl-text-muted: #94a3b8;
  --gl-font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --gl-font-display: 'Outfit', 'Inter', sans-serif;
  --gl-font-mono: 'JetBrains Mono', monospace;
  --gl-success: #10b981;
  --gl-warning: #f59e0b;
}

/* Floating Release Hub Button */
#gl-release-floating-pill {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99999;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(13, 92, 77, 0.95));
  border: 1px solid var(--gl-primary-glow);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px var(--gl-primary-glow);
  backdrop-filter: blur(14px);
  border-radius: 9999px;
  color: var(--gl-text);
  font-family: var(--gl-font-sans);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

#gl-release-floating-pill:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6), 0 0 28px rgba(20, 184, 166, 0.55);
  border-color: var(--gl-primary);
}

.gl-pulse-dot {
  width: 9px;
  height: 9px;
  background: var(--gl-primary);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--gl-primary);
  animation: gl-pulse 1.8s infinite;
}

@keyframes gl-pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(20, 184, 166, 0.7); }
  70% { transform: scale(1.15); box-shadow: 0 0 0 8px rgba(20, 184, 166, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(20, 184, 166, 0); }
}

.gl-tag-badge {
  background: rgba(20, 184, 166, 0.2);
  color: var(--gl-primary);
  border: 1px solid rgba(20, 184, 166, 0.4);
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
}

/* Modal Overlay */
#gl-release-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(4, 8, 16, 0.78);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  font-family: var(--gl-font-sans);
}

#gl-release-modal.gl-open {
  opacity: 1;
  pointer-events: auto;
}

.gl-modal-container {
  width: 100%;
  max-width: 1120px;
  max-height: 90vh;
  background: linear-gradient(170deg, #0e1626, #070c14);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 20px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(13, 92, 77, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(20px) scale(0.98);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

#gl-release-modal.gl-open .gl-modal-container {
  transform: translateY(0) scale(1);
}

/* Modal Header */
.gl-modal-header {
  padding: 20px 28px;
  background: linear-gradient(90deg, rgba(13, 92, 77, 0.25), rgba(15, 23, 42, 0.5));
  border-bottom: 1px solid var(--gl-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.gl-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.gl-logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(20, 184, 166, 0.3);
}

.gl-header-title h2 {
  margin: 0;
  font-family: var(--gl-font-display);
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.gl-header-title p {
  margin: 2px 0 0;
  font-size: 12.5px;
  color: var(--gl-text-muted);
}

.gl-modal-close-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--gl-border);
  color: var(--gl-text-muted);
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.gl-modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

/* Sub-nav / Quick stats bar */
.gl-stats-bar {
  padding: 12px 28px;
  background: rgba(15, 23, 42, 0.45);
  border-bottom: 1px solid var(--gl-border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 13px;
}

.gl-stat-chips {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.gl-stat-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--gl-text-muted);
}

.gl-stat-chip strong {
  color: var(--gl-text);
  font-weight: 600;
}

.gl-quick-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.gl-link-chip {
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--gl-border);
  border-radius: 6px;
  color: var(--gl-text-muted);
  text-decoration: none;
  font-size: 11.5px;
  font-family: var(--gl-font-mono);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 5px;
}

.gl-link-chip:hover {
  background: rgba(20, 184, 166, 0.12);
  border-color: var(--gl-primary);
  color: var(--gl-primary);
}

/* Recommended for You Spotlight */
.gl-recommend-spotlight {
  margin: 16px 28px 0;
  padding: 14px 18px;
  background: linear-gradient(90deg, rgba(20, 184, 166, 0.12), rgba(56, 189, 248, 0.08));
  border: 1px solid rgba(20, 184, 166, 0.3);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.gl-recommend-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.gl-recommend-badge {
  background: var(--gl-primary);
  color: #042f2e;
  font-weight: 700;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.gl-recommend-text {
  font-size: 13.5px;
  color: var(--gl-text);
}

.gl-recommend-text strong {
  color: #fff;
}

.gl-recommend-btn {
  background: linear-gradient(135deg, var(--gl-primary), var(--gl-primary-dark));
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(20, 184, 166, 0.4);
  transition: all 0.2s;
  white-space: nowrap;
}

.gl-recommend-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(20, 184, 166, 0.6);
}

/* Filter and Controls Toolbar */
.gl-controls-bar {
  padding: 14px 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.gl-platform-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(15, 23, 42, 0.6);
  padding: 4px;
  border-radius: 10px;
  border: 1px solid var(--gl-border);
  overflow-x: auto;
}

.gl-tab-btn {
  background: transparent;
  border: none;
  color: var(--gl-text-muted);
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 13px;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.18s;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.gl-tab-btn:hover {
  color: var(--gl-text);
  background: rgba(255, 255, 255, 0.04);
}

.gl-tab-btn.gl-active {
  background: var(--gl-primary-dark);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.gl-tab-count {
  font-size: 11px;
  opacity: 0.75;
  background: rgba(0, 0, 0, 0.3);
  padding: 1px 5px;
  border-radius: 4px;
}

.gl-search-box {
  position: relative;
  min-width: 260px;
  flex-grow: 1;
  max-width: 380px;
}

.gl-search-box input {
  width: 100%;
  padding: 8px 12px 8px 34px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--gl-border);
  border-radius: 8px;
  color: #fff;
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s;
  font-family: var(--gl-font-sans);
}

.gl-search-box input:focus {
  border-color: var(--gl-primary);
  box-shadow: 0 0 0 2px rgba(20, 184, 166, 0.2);
}

.gl-search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gl-text-muted);
  width: 16px;
  height: 16px;
  pointer-events: none;
}

/* Modal Content / Artifact Cards List */
.gl-modal-body {
  padding: 0 28px 24px;
  overflow-y: auto;
  flex: 1;
}

.gl-artifacts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
}

.gl-card {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid var(--gl-border);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.gl-card:hover {
  transform: translateY(-2px);
  border-color: var(--gl-border-hover);
  background: rgba(20, 30, 52, 0.85);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.gl-card-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.gl-card-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.gl-card-icon-wrap.windows { background: rgba(0, 120, 215, 0.15); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.3); }
.gl-card-icon-wrap.macos { background: rgba(255, 255, 255, 0.1); color: #e2e8f0; border: 1px solid rgba(255, 255, 255, 0.2); }
.gl-card-icon-wrap.linux { background: rgba(234, 179, 8, 0.15); color: #facc15; border: 1px solid rgba(250, 204, 21, 0.3); }
.gl-card-icon-wrap.android { background: rgba(34, 197, 94, 0.15); color: #4ade80; border: 1px solid rgba(74, 222, 128, 0.3); }
.gl-card-icon-wrap.browser { background: rgba(249, 115, 22, 0.15); color: #fb923c; border: 1px solid rgba(251, 146, 60, 0.3); }
.gl-card-icon-wrap.other { background: rgba(148, 163, 184, 0.15); color: #cbd5e1; border: 1px solid rgba(203, 213, 225, 0.3); }

.gl-card-meta {
  flex: 1;
  min-width: 0;
}

.gl-card-title {
  margin: 0;
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: var(--gl-font-mono);
}

.gl-card-subtitle {
  margin: 2px 0 0;
  font-size: 11.5px;
  color: var(--gl-text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.gl-card-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}

.gl-badge-pill {
  font-size: 10.5px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}

.gl-badge-mirrored {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.gl-badge-github {
  background: rgba(148, 163, 184, 0.12);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.25);
}

/* Card Hash row */
.gl-card-hash-row {
  background: rgba(0, 0, 0, 0.25);
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-family: var(--gl-font-mono);
  font-size: 11px;
}

.gl-hash-text {
  color: var(--gl-text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gl-hash-copy-btn {
  background: transparent;
  border: none;
  color: var(--gl-primary);
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  font-family: var(--gl-font-sans);
  font-weight: 600;
  transition: all 0.15s;
}

.gl-hash-copy-btn:hover {
  background: rgba(20, 184, 166, 0.15);
}

/* Card Actions */
.gl-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gl-btn-download {
  flex: 1;
  padding: 8px 12px;
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.2), rgba(15, 118, 110, 0.4));
  border: 1px solid rgba(20, 184, 166, 0.45);
  color: #fff;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  transition: all 0.2s;
}

.gl-btn-download:hover {
  background: var(--gl-primary);
  color: #042f2e;
  box-shadow: 0 4px 12px rgba(20, 184, 166, 0.4);
}

.gl-btn-gh {
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--gl-border);
  color: var(--gl-text-muted);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.18s;
}

.gl-btn-gh:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* JSON Inspector Tab View */
.gl-json-view {
  background: #06090e;
  border: 1px solid var(--gl-border);
  border-radius: 12px;
  padding: 16px;
  position: relative;
  margin-top: 10px;
}

.gl-json-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.gl-json-pre {
  margin: 0;
  max-height: 480px;
  overflow: auto;
  font-family: var(--gl-font-mono);
  font-size: 12px;
  color: #38bdf8;
  line-height: 1.5;
}

/* Top Navbar Button Injection */
.gl-topbar-pill-btn {
  margin-left: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.2), rgba(13, 92, 77, 0.35));
  border: 1px solid rgba(20, 184, 166, 0.4);
  border-radius: 6px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.gl-topbar-pill-btn:hover {
  background: var(--gl-primary);
  color: #042f2e;
  border-color: var(--gl-primary);
}
