/**
 * IZI HUB — Live Telemetry & API Hub Stylesheet
 * Cyber-Industrial Dark Theme with Neon Green Accents (#00ff88, #00d2ff, #ff9b01)
 */

.live-page-body {
  background-color: #0d0f13 !important;
  color: #e2e8f0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  margin: 0;
  padding: 0;
}

.live-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* 1. Hero Section */
.live-hero {
  position: relative;
  padding: 50px 0 35px 0;
  background: radial-gradient(ellipse 80% 50% at 50% -10%, rgba(0, 255, 136, 0.12) 0%, rgba(13, 15, 19, 0) 75%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 35px;
}

.live-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid rgba(0, 255, 136, 0.35);
  color: #00ff88;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 999px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.live-hero-title {
  font-size: 2.5rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin: 0 0 12px 0;
}

.live-hero-title span {
  color: #00ff88;
}

.live-hero-desc {
  font-size: 1.05rem;
  color: #94a3b8;
  max-width: 860px;
  line-height: 1.6;
  margin: 0 0 24px 0;
}

.live-sync-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.82rem;
  color: #64748b;
}

.live-sync-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #cbd5e1;
}

/* Live Dot Pulse */
.live-dot-pulse {
  width: 8px;
  height: 8px;
  min-width: 8px;
  border-radius: 50%;
  background: #00ff88;
  box-shadow: 0 0 8px #00ff88;
  animation: livePulseAnim 1.8s infinite ease-in-out;
  display: inline-block;
}

@keyframes livePulseAnim {
  0%, 100% { transform: scale(1); opacity: 1; box-shadow: 0 0 6px #00ff88; }
  50% { transform: scale(1.4); opacity: 0.55; box-shadow: 0 0 14px #00ff88; }
}

/* 2. Filter Tabs */
.live-nav-tabs-wrapper {
  position: sticky;
  top: 64px;
  z-index: 100;
  background: rgba(13, 15, 19, 0.95);
  backdrop-filter: blur(12px);
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 35px;
}

.live-filter-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.live-filter-tabs::-webkit-scrollbar {
  display: none;
}

.live-filter-tab {
  background: #171a21;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.live-filter-tab:hover {
  background: #20242e;
  border-color: rgba(0, 255, 136, 0.4);
  color: #fff;
}

.live-filter-tab.active {
  background: rgba(0, 255, 136, 0.15);
  border-color: #00ff88;
  color: #00ff88;
  box-shadow: 0 0 12px rgba(0, 255, 136, 0.2);
}

/* 3. Section Titles */
.live-hub-section {
  margin-bottom: 50px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 12px;
}

.section-head-title {
  font-size: 1.45rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-badge-api {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
}

/* 4. Servers Grid */
.live-servers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.live-telemetry-card {
  background: #14171d;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.live-telemetry-card:hover {
  background: #181d24;
  border-color: rgba(0, 255, 136, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 15px rgba(0, 255, 136, 0.12);
}

.telemetry-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.telemetry-game-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.telemetry-game-info img {
  border-radius: 4px;
}

.telemetry-game-name {
  color: #fff;
  font-size: 0.98rem;
  font-weight: 800;
  margin: 0 0 2px 0;
  line-height: 1.2;
}

.telemetry-sub {
  color: #64748b;
  font-size: 0.75rem;
}

.telemetry-badge-online {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(0, 255, 136, 0.1);
  color: #00ff88;
  border: 1px solid rgba(0, 255, 136, 0.25);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 4px;
}

.telemetry-count-wrap {
  margin: 10px 0 18px 0;
}

.telemetry-count {
  display: block;
  font-size: 2.1rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.5px;
  line-height: 1;
}

.telemetry-label {
  display: block;
  color: #94a3b8;
  font-size: 0.78rem;
  margin-top: 6px;
}

.telemetry-card-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
}

.telemetry-stat-item {
  display: flex;
  flex-direction: column;
}

.telemetry-stat-lbl {
  color: #64748b;
  font-size: 0.72rem;
  margin-bottom: 2px;
}

.telemetry-stat-val {
  color: #cbd5e1;
  font-weight: 700;
}

/* 5. Shield Status Card */
.shield-status-card {
  background: linear-gradient(135deg, #13171f 0%, #0d1016 100%);
  border: 1px solid rgba(0, 255, 136, 0.35);
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(0, 255, 136, 0.08);
}

.shield-top-banner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 20px;
}

.shield-badge-safe {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 255, 136, 0.15);
  color: #00ff88;
  border: 1px solid rgba(0, 255, 136, 0.4);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.shield-heading {
  font-size: 1.6rem;
  font-weight: 900;
  color: #fff;
  margin: 0 0 6px 0;
}

.shield-desc {
  color: #94a3b8;
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
  max-width: 800px;
}

.shield-version-pill {
  background: #171b23;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 16px;
  border-radius: 8px;
  text-align: right;
}

.version-label {
  display: block;
  font-size: 0.7rem;
  color: #64748b;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.version-num {
  font-size: 1.15rem;
  color: #00ff88;
  font-weight: 900;
}

.shield-grid-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.shield-metric-box {
  background: #181d26;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
}

.metric-label {
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.metric-value {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.metric-sub {
  color: #94a3b8;
  font-size: 0.75rem;
}

/* 6. Dota 2 Meta Grid */
.dota-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.dota-hero-card {
  background: #14171d;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
}

.dota-hero-card:hover {
  background: #191e26;
  border-color: rgba(0, 210, 255, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 210, 255, 0.1);
}

.dota-hero-img-wrap {
  position: relative;
  width: 100%;
  height: 110px;
  overflow: hidden;
  background: #0b0e14;
}

.dota-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.dota-hero-card:hover .dota-hero-img {
  transform: scale(1.05);
}

.dota-rank-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.8);
  color: #00d2ff;
  border: 1px solid rgba(0, 210, 255, 0.4);
  font-size: 0.75rem;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 4px;
}

.dota-hero-info {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

.dota-hero-name {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0 0 8px 0;
}

.dota-hero-tags {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.dota-attr-tag {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 3px;
  text-transform: uppercase;
}

.dota-attr-tag.str { background: rgba(239, 68, 68, 0.15); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); }
.dota-attr-tag.agi { background: rgba(34, 197, 94, 0.15); color: #4ade80; border: 1px solid rgba(34, 197, 94, 0.3); }
.dota-attr-tag.int { background: rgba(59, 130, 246, 0.15); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.3); }
.dota-attr-tag.all { background: rgba(168, 85, 247, 0.15); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.3); }

.dota-role-tag {
  font-size: 0.72rem;
  color: #8b929a;
}

.dota-stats-row {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 10px;
}

.dota-stat-box {
  display: flex;
  flex-direction: column;
}

.dota-stat-lbl {
  font-size: 0.7rem;
  color: #64748b;
  margin-bottom: 2px;
}

.dota-stat-val {
  color: #cbd5e1;
  font-size: 0.85rem;
  font-weight: 700;
}

.dota-stat-val.winrate {
  color: #00ff88;
  font-size: 1.05rem;
  font-weight: 900;
}

/* 7. Giveaways Grid */
.giveaways-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.giveaway-card {
  background: #14171d;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
}

.giveaway-card:hover {
  background: #181d24;
  border-color: rgba(255, 155, 1, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 15px rgba(255, 155, 1, 0.12);
}

.giveaway-thumb-wrap {
  position: relative;
  width: 100%;
  height: 140px;
  background: #0b0e14;
}

.giveaway-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.giveaway-platform-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
}

.giveaway-free-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #00ff88;
  color: #0b0e14;
  font-size: 0.72rem;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 4px;
}

.giveaway-content {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

.giveaway-title {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
  margin: 0 0 8px 0;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.giveaway-meta-row {
  margin-bottom: 12px;
}

.giveaway-worth {
  font-size: 0.82rem;
  color: #94a3b8;
}

.giveaway-worth del {
  color: #ef4444;
}

.giveaway-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 10px;
}

.giveaway-end-date {
  font-size: 0.75rem;
  color: #64748b;
}

.giveaway-claim-btn {
  background: rgba(255, 155, 1, 0.15);
  border: 1px solid rgba(255, 155, 1, 0.4);
  color: #ff9b01;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 5px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.giveaway-claim-btn:hover {
  background: #ff9b01;
  color: #111;
  box-shadow: 0 0 12px rgba(255, 155, 1, 0.4);
}

/* 8. CS2 Cases Grid */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.cs2-case-card {
  background: #14171d;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s ease;
}

.cs2-case-card:hover {
  background: #181d24;
  border-color: rgba(0, 255, 136, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.case-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.case-name {
  color: #fff;
  font-size: 0.92rem;
  font-weight: 800;
  margin: 0 0 2px 0;
}

.case-items-sub {
  color: #64748b;
  font-size: 0.72rem;
}

.case-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
}

.case-price {
  font-size: 1.35rem;
  font-weight: 900;
  color: #fff;
}

.case-trend {
  font-size: 0.8rem;
  font-weight: 800;
}

.case-trend.trend-up { color: #00ff88; }
.case-trend.trend-down { color: #ef4444; }

.case-card-actions {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 10px;
}

.case-market-link {
  color: #00d2ff;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
}

.case-market-link:hover {
  text-decoration: underline;
}

/* Responsive Rules */
@media (max-width: 1200px) {
  .live-servers-grid,
  .dota-grid,
  .giveaways-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cases-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .shield-grid-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .live-hero-title {
    font-size: 1.85rem;
  }
  .live-servers-grid,
  .dota-grid,
  .giveaways-grid,
  .cases-grid,
  .shield-grid-metrics {
    grid-template-columns: 1fr;
  }
  .shield-top-banner {
    flex-direction: column;
  }
  .shield-version-pill {
    text-align: left;
    width: 100%;
  }
}
