/* ==========================================================================
   GaxID Status Page - Ana Site & Ranking Tasarım Sistemiyle %100 Birebir
   Arka Plan: .landing-root & .landing-bg
   Navbar: .landing-nav & .public-nav-account
   Footer: .home-footer & alt sütunlar
   Kartlar: .service-group (overflow: visible - tooltipler arkada kalmaz)
   Barlar: Sabit genişlikli, daralmayan, mobilde soldan kesilen esnek yapı
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --accent: #fbbf24;
  --accent2: #fbbf24;
  --dashboard-accent: #fbbf24;
  --dashboard-accent-soft: rgba(251, 191, 36, 0.12);
  --glow: rgba(251, 191, 36, 0.5);
  --glass: hsla(0, 0%, 100%, 0.05);
  --glass-border: hsla(0, 0%, 100%, 0.1);
  --text-primary: #fff;
  --text-secondary: hsla(0, 0%, 100%, 0.6);
  --dark: #090909;
  --card-bg: rgba(15, 15, 20, 0.75);

  /* Status renkleri - Ana site paletiyle uyumlu */
  --st-up: #22c55e;
  --st-up-bg: rgba(34, 197, 94, 0.14);
  --st-degraded: #fbbf24;
  --st-degraded-bg: rgba(251, 191, 36, 0.14);
  --st-down: #ef4444;
  --st-down-bg: rgba(239, 68, 68, 0.16);
  --st-nodata: rgba(255, 255, 255, 0.08);
}

html {
  width: 100%;
  min-height: 100vh;
  font-family: Montserrat, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text-primary);
  background: #090909;
  overflow-x: clip;
}

body {
  min-height: 100vh;
  background: #090909;
}

/* ── Ana Layout (.landing-root & .ranking-page) ────────────────────────── */
.landing-root {
  min-height: 100dvh;
  background: linear-gradient(135deg, #090909, #0b0a08 50%, #090909);
  color: #fff;
  position: relative;
  overflow-x: clip;
  font-family: Montserrat, sans-serif;
  display: flex;
  flex-direction: column;
}

.landing-bg {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 13% 40%, rgba(251, 191, 36, 0.12), transparent 36%),
    radial-gradient(circle at 85% 67%, rgba(251, 191, 36, 0.09), transparent 36%),
    radial-gradient(circle at 50% 10%, rgba(251, 191, 36, 0.05), transparent 45%);
  z-index: 0;
  pointer-events: none;
  animation: pulse-bg 8s ease-in-out infinite;
}

@keyframes pulse-bg {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.72; }
}

/* ── Navbar (.landing-nav) ────────────────────────────────────────────── */
.status-nav-wrap {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(9, 9, 9, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--glass-border);
}

.landing-nav {
  position: relative;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: 1400px;
  margin: 0 auto;
  gap: 24px;
  width: 100%;
}

.landing-logo {
  font-size: 1.3rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  color: #eab308;
  letter-spacing: -0.02em;
  text-decoration: none;
  flex-shrink: 0;
}

.landing-logo img {
  display: block;
  object-fit: contain;
}

.landing-logo span {
  color: #fff;
}

.landing-links {
  flex: 1;
  display: flex;
  justify-content: center;
  gap: 32px;
}

.landing-links a {
  color: hsla(0, 0%, 100%, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s;
  position: relative;
}

.landing-links a.active,
.landing-links a:hover {
  color: #fff;
}

.landing-links a:after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #fbbf24;
  transition: width 0.2s;
}

.landing-links a.active:after,
.landing-links a:hover:after {
  width: 100%;
}

.landing-auth {
  display: flex;
  align-items: center;
  gap: 10px;
}

.landing-panel-btn {
  background: hsla(0, 0%, 100%, 0.05);
  border: 1px solid hsla(0, 0%, 100%, 0.1);
  color: #fff;
  padding: 10px 20px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.landing-panel-btn:hover {
  background: hsla(0, 0%, 100%, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.public-nav-account {
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid hsla(0, 0%, 100%, 0.16);
  color: #17120a;
  background: var(--accent);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  box-shadow: 0 8px 22px rgba(251, 191, 36, 0.16);
  transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

.public-nav-account:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 10px 26px rgba(251, 191, 36, 0.28);
}

.mobile-menu-toggle {
  display: none !important;
  padding: 5px 7px;
  border: 1px solid hsla(0, 0%, 100%, 0.14);
  border-radius: 6px;
  color: hsla(0, 0%, 100%, 0.88);
  background: hsla(0, 0%, 100%, 0.06);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}

/* ── Sayfa İçeriği (.ranking-shell standardı) ────────────────────────── */
.status-container {
  position: relative;
  z-index: 1;
  width: min(900px, 100%);
  margin: 0 auto;
  padding: 40px 24px 70px;
  flex: 1;
}

/* ── Durum Bannerı ────────────────────────────────────────────────────── */
.status-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 26px;
  border-radius: 18px;
  border: 1px solid var(--glass-border);
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  margin-bottom: 34px;
  border-left: 5px solid var(--st-up);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  transition: all 0.3s ease;
}

.status-banner.is-operational {
  border-left-color: var(--st-up);
  background: linear-gradient(90deg, var(--st-up-bg) 0%, var(--card-bg) 65%);
}

.status-banner.is-degraded {
  border-left-color: var(--st-degraded);
  background: linear-gradient(90deg, var(--st-degraded-bg) 0%, var(--card-bg) 65%);
}

.status-banner.is-down {
  border-left-color: var(--st-down);
  background: linear-gradient(90deg, var(--st-down-bg) 0%, var(--card-bg) 65%);
}

.banner-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--st-up);
  flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
  animation: pulse-ring-up 2.2s infinite;
}

.status-banner.is-degraded .banner-dot {
  background: var(--st-degraded);
  box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.5);
  animation: pulse-ring-deg 2.2s infinite;
}

.status-banner.is-down .banner-dot {
  background: var(--st-down);
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5);
  animation: pulse-ring-down 2.2s infinite;
}

@keyframes pulse-ring-up {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6); }
  70% { box-shadow: 0 0 0 10px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

@keyframes pulse-ring-deg {
  0% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.6); }
  70% { box-shadow: 0 0 0 10px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

@keyframes pulse-ring-down {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6); }
  70% { box-shadow: 0 0 0 10px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.banner-text h1 {
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}

.banner-text p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-top: 3px;
}

/* ── Bölüm Başlığı ────────────────────────────────────────────────────── */
.section-headline {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: hsla(0, 0%, 100%, 0.5);
  margin-bottom: 12px;
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── Servis Kartı (.service-group) ────────────────────────────────────── */
/* ÖNEMLİ: overflow: visible sayesinde tooltipler ASLA arkada/içeride kesilmez! */
.service-group {
  position: relative;
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow: visible;
  margin-bottom: 16px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

.service-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  border-bottom: 1px solid var(--glass-border);
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
}

.service-group-title {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #fff;
}

.group-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--st-up-bg);
  color: var(--st-up);
  border: 1px solid rgba(34, 197, 94, 0.24);
}

.group-badge.is-degraded {
  background: var(--st-degraded-bg);
  color: var(--st-degraded);
  border-color: rgba(251, 191, 36, 0.24);
}

.group-badge.is-down {
  background: var(--st-down-bg);
  color: var(--st-down);
  border-color: rgba(239, 68, 68, 0.24);
}

.group-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

/* ── Servis Satırı (.service-row) ─────────────────────────────────────── */
.service-row {
  position: relative;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  overflow: visible;
}

.service-row:last-child {
  border-bottom: none;
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 18px;
}

.service-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.service-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.service-icon {
  width: 22px;
  height: 22px;
  color: var(--accent);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.service-icon svg {
  width: 20px;
  height: 20px;
  display: block;
  overflow: visible;
}

.service-name {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
}

/* Rozet (Fast / Average / Down) */
.svc-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.svc-badge.is-operational {
  background: var(--st-up-bg);
  color: var(--st-up);
  border: 1px solid rgba(34, 197, 94, 0.24);
}

.svc-badge.is-degraded {
  background: var(--st-degraded-bg);
  color: var(--st-degraded);
  border: 1px solid rgba(251, 191, 36, 0.24);
}

.svc-badge.is-down {
  background: var(--st-down-bg);
  color: var(--st-down);
  border: 1px solid rgba(239, 68, 68, 0.24);
}

.svc-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

/* ── Uptime Barları (2. Görseldeki Çözüm: Sabit Boyut, Daralmaz, Soldan Kesilir) */
.uptime-bars-wrap {
  width: 100%;
  position: relative;
  padding: 4px 0;
}

.uptime-bars {
  display: flex;
  gap: 3px;
  width: 100%;
  height: 32px;
  align-items: stretch;
}

.ubar {
  flex: 1;
  min-width: 4px;
  height: 32px;
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  transition: opacity 0.15s ease, transform 0.12s ease;
}

.ubar:hover {
  opacity: 0.85;
  transform: scaleY(1.08);
}

.status-floating-tooltip {
  padding: 6px 11px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(15, 15, 20, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
  animation: tooltipFadeIn 0.15s ease;
}

@keyframes tooltipFadeIn {
  from { opacity: 0; transform: translate(-50%, -95%); }
  to { opacity: 1; transform: translate(-50%, -100%); }
}

.ubar.is-operational { background: var(--st-up); }
.ubar.is-degraded    { background: var(--st-degraded); }
.ubar.is-down        { background: var(--st-down); }
.ubar.is-nodata      { background: var(--st-nodata); }

/* ── Profil Sayfalarıyla Birebir Tooltip Sistemi ([data-tooltip]) ──────── */
[data-tooltip] {
  position: relative;
}

[data-tooltip]:hover {
  z-index: 99999 !important;
}

[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 9px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2147483647 !important;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(15, 15, 20, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.16s ease, transform 0.16s ease;
}

[data-tooltip]:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-2px);
}

/* Uptime Meta (Alt bilgi: 30 gün önce, % uptime, Bugün) */
.uptime-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
}

.uptime-label {
  font-size: 0.72rem;
  color: hsla(0, 0%, 100%, 0.45);
  font-weight: 600;
}

.uptime-pct {
  font-size: 0.72rem;
  color: hsla(0, 0%, 100%, 0.6);
  font-weight: 700;
}

/* ── Incident History (.incidents-section) ────────────────────────────── */
.incidents-section {
  margin-top: 10px;
}

.incidents-empty {
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 26px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  background: rgba(15, 15, 20, 0.35);
}

.incident-item {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--glass-border);
}

.incident-item:last-child {
  border-bottom: none;
}

.incident-line {
  width: 3px;
  border-radius: 3px;
  background: var(--st-down);
  flex-shrink: 0;
}

.incident-item.is-resolved .incident-line {
  background: var(--st-up);
}

.incident-content {
  flex: 1;
  min-width: 0;
}

.incident-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.incident-time {
  font-size: 0.74rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.incident-badge {
  font-size: 0.66rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.incident-badge.is-resolved {
  background: var(--st-up-bg);
  color: var(--st-up);
}

.incident-badge.is-investigating {
  background: var(--st-degraded-bg);
  color: var(--st-degraded);
}

.incident-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.incident-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ── Ana Sitenin Tam Footer Sistemi (.home-footer) ─────────────────────── */
.home-footer {
  position: relative;
  z-index: 1;
  width: min(1160px, calc(100% - 48px));
  margin: 50px auto 0;
  padding-top: 40px;
  border-top: 1px solid var(--glass-border);
}

.home-footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(170px, 0.7fr));
  column-gap: clamp(56px, 8vw, 108px);
  row-gap: 42px;
  padding-bottom: 40px;
}

.home-footer-brand {
  max-width: 420px;
}

.home-footer-logo {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 800;
  text-decoration: none;
}

.home-footer-logo img {
  object-fit: contain;
}

.home-footer-logo strong {
  color: #fbbf24;
}

.home-footer-brand p {
  margin: 8px 0 12px;
  color: hsla(0, 0%, 100%, 0.48);
  font-size: 0.74rem;
  line-height: 1.5;
}

.home-footer-domain {
  overflow: hidden;
  color: hsla(0, 0%, 100%, 0.43);
  font-size: 0.78rem;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-footer-socials {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.home-footer-socials a {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: hsla(0, 0%, 100%, 0.68);
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none;
  transition: background-color 0.22s ease, transform 0.22s ease;
}

.home-footer-socials a:hover {
  transform: translateY(-2px);
  background: rgba(251, 191, 36, 0.14);
}

.home-footer-socials img {
  display: block;
  width: 19px;
  height: 19px;
  object-fit: contain;
  opacity: 0.82;
  transition: opacity 0.22s ease;
}

.home-footer-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.home-footer-column h3 {
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.home-footer-column a {
  color: hsla(0, 0%, 100%, 0.58);
  font-size: 0.82rem;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
  width: fit-content;
}

.home-footer-column a:hover {
  color: #fff;
  transform: translateX(2px);
}

.home-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: hsla(0, 0%, 100%, 0.42);
  font-size: 0.74rem;
}

/* ── Responsive Uyumluluk (Mobil ve Tablet) ───────────────────────────── */
@media (max-width: 768px) {
  .landing-nav {
    padding: 12px 16px;
    gap: 16px;
    flex-wrap: nowrap;
  }

  .landing-logo {
    flex-shrink: 0;
    order: 1;
  }

  .landing-auth {
    order: 3;
  }

  .landing-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: hsla(0, 0%, 4%, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 16px;
    gap: 4px;
    border-bottom: 1px solid var(--glass-border);
    z-index: 999;
  }

  .landing-links.mobile-open {
    display: flex;
  }

  .landing-links a {
    font-size: 0.95rem;
    padding: 12px 14px;
    border-radius: 8px;
    background: hsla(0, 0%, 100%, 0.03);
    text-align: center;
    display: block;
    width: 100%;
  }

  .landing-links a::after {
    display: none;
  }

  .landing-links a:hover {
    background: hsla(0, 0%, 100%, 0.08);
  }

  .mobile-menu-toggle {
    display: block !important;
    order: 3;
  }

  .status-container {
    padding: 24px 16px 50px;
  }

  .service-row {
    padding: 14px 16px;
  }

  .service-group-header {
    padding: 14px 16px;
  }

  .home-footer-main {
    grid-template-columns: 1fr;
    row-gap: 28px;
  }

  .home-footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}
