/* Bidolumedya status sayfası – dark mode, çubuklar, geniş layout */

:root {
  --bg: #0f1117;
  --card-bg: #161b22;
  --text: #e6edf3;
  --text-muted: #8b949e;
  --border: #30363d;
  --operational: #3fb950;
  --degraded: #d29922;
  --outage: #f85149;
  --na: #6e7681;
  --header-bg: #161b22;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  --bar-bg: #21262d;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
}

.page {
  max-width: 1100px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.header {
  background: var(--header-bg);
  padding: 1.5rem 1.5rem;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
  text-align: center;
}

.logo {
  margin: 0;
}

.logo-img {
  display: inline-block;
  max-height: 40px;
  width: auto;
  vertical-align: middle;
}

/* Main */
.main {
  flex: 1;
  padding: 1.5rem 1.5rem;
}

.info {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin: 0 0 1.75rem;
  line-height: 1.6;
}

.loading,
.error {
  padding: 1rem 1.25rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.loading {
  background: var(--card-bg);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.error {
  background: rgba(248, 81, 73, 0.12);
  border: 1px solid rgba(248, 81, 73, 0.4);
  color: #f85149;
}

.global-status {
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  margin-bottom: 1.25rem;
  font-weight: 500;
  font-size: 0.9375rem;
}

.global-status-ok {
  background: rgba(63, 185, 80, 0.15);
  border: 1px solid rgba(63, 185, 80, 0.4);
  color: #3fb950;
}

/* Status section */
.status-section {
  background: var(--card-bg);
  border-radius: 10px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.section-title {
  margin: 0;
  padding: 1rem 1.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--text);
}

.status-list {
  display: flex;
  flex-direction: column;
}

.status-item {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

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

.status-dot {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 0.4rem;
}

.status-dot.status-operational { background: var(--operational); }
.status-dot.status-degraded   { background: var(--degraded); }
.status-dot.status-outage      { background: var(--outage); }
.status-dot.status-na          { background: var(--na); }

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

.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.status-label {
  font-size: 0.9375rem;
  color: var(--text);
}

.status-value {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Progress bar */
.status-bar-track {
  height: 6px;
  background: var(--bar-bg);
  border-radius: 3px;
  overflow: hidden;
}

.status-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.4s ease;
}

.status-bar-fill.bar-ok       { background: var(--operational); }
.status-bar-fill.bar-degraded { background: var(--degraded); }
.status-bar-fill.bar-outage   { background: var(--outage); }
.status-bar-fill.bar-low      { background: var(--outage); }
.status-bar-fill:not([class*="bar-"]) { background: var(--na); }

.status-last-updated {
  padding: 0.75rem 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Footer */
.footer {
  padding: 1rem 1.5rem 1.5rem;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

@media (max-width: 640px) {
  .page { max-width: 100%; }
  .status-row {
    flex-direction: column;
    align-items: flex-start;
  }
}
