/* ==========================================================================
   VioraBOT Status Portal CSS
   C:\xampp\htdocs (2. Fotoğraf) ile Birebir Renk & Grid Tasarım Uyumu
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --bg-main: #424242;
    --bg-card: #262626;
    --bg-card-sub: #1e1e1e;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.2);
    
    --text-white: #ffffff;
    --text-silver: #cbd5e1;
    --text-muted: #94a3b8;
    
    --green-live: #22c55e;
    --green-bg: rgba(34, 197, 94, 0.14);
    --green-border: rgba(34, 197, 94, 0.32);

    --red-live: #ef4444;
    --red-bg: rgba(239, 68, 68, 0.14);
    --red-border: rgba(239, 68, 68, 0.35);

    --amber-live: #f59e0b;
    --amber-bg: rgba(245, 158, 11, 0.14);
    --amber-border: rgba(245, 158, 11, 0.35);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background-color: #424242 !important;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px) !important;
    background-size: 26px 26px !important;
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ==========================================================================
   Üst Menü / Floating Kapsül Navbar (2. Fotoğraftaki Gibi)
   ========================================================================== */
.status-navbar-wrap {
    width: 100%;
    padding: 16px 24px 0 24px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.status-navbar {
    max-width: 1020px;
    margin: 0 auto;
    background: #262626 !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 12px;
    padding: 12px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35), 0 1px 3px rgba(0, 0, 0, 0.2);
}

.status-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.status-brand img {
    height: 32px;
    width: auto;
    object-fit: contain;
}

/* Orta Tab Menüsü (Pill Bar) */
.status-pill-menu {
    display: flex;
    align-items: center;
    background: #1e1e1e !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 9999px;
    padding: 4px;
    gap: 3px;
}

.status-pill-item {
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #cbd5e1;
    border-radius: 9999px;
    transition: all 0.18s ease;
    cursor: pointer;
    white-space: nowrap;
}

.status-pill-item:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.status-pill-item.active {
    background: #333333 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Sağ Buton */
.status-right-btn {
    background: #1e1e1e !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 700;
    color: #ffffff !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.status-right-btn:hover {
    background: #2b2b2b !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    transform: translateY(-1px);
}

/* ==========================================================================
   Hero Durum Rozeti (Büyük Başlık)
   ========================================================================== */
.status-hero-section {
    max-width: 820px;
    margin: 0 auto;
    padding: 46px 20px 32px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.status-hero-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    transition: all 0.3s ease;
}

.status-hero-icon-wrap.is-operational {
    background: #22c55e !important;
    color: #ffffff;
    box-shadow: 0 0 28px rgba(34, 197, 94, 0.45);
}

.status-hero-icon-wrap.is-degraded {
    background: #f59e0b !important;
    color: #ffffff;
    box-shadow: 0 0 28px rgba(245, 158, 11, 0.45);
}

.status-hero-icon-wrap.is-outage {
    background: #ef4444 !important;
    color: #ffffff;
    box-shadow: 0 0 32px rgba(239, 68, 68, 0.55);
    animation: outagePulse 2s infinite ease-in-out;
}

@keyframes outagePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); box-shadow: 0 0 44px rgba(239, 68, 68, 0.7); }
}

.status-hero-icon-wrap svg {
    width: 30px;
    height: 30px;
    stroke-width: 3;
}

.status-hero-title {
    font-size: 30px;
    font-weight: 800;
    color: #ffffff !important;
    letter-spacing: -0.6px;
    margin-bottom: 8px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.status-hero-sub {
    font-size: 13.5px;
    color: #cbd5e1 !important;
    font-weight: 500;
}

/* ==========================================================================
   Servis Kartı (2. Fotoğraftaki #262626 Kart Teması)
   ========================================================================== */
.status-card-container {
    max-width: 820px;
    width: 100%;
    margin: 0 auto 50px auto;
    padding: 0 20px;
}

.status-card {
    background: #262626 !important;
    border: 1.5px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), 0 2px 6px rgba(0, 0, 0, 0.2) !important;
}

/* Kart Grup Başlığı */
.status-card-header {
    padding: 16px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #202020 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

h2.status-card-title,
.status-card-title {
    font-size: 15px;
    font-weight: 800;
    color: #ffffff !important;
    letter-spacing: -0.2px;
    margin: 0;
    line-height: 1.2;
}

.status-group-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 9999px;
    background: var(--green-bg);
    border: 1px solid var(--green-border);
    color: var(--green-live) !important;
}

.status-group-badge.is-outage {
    background: var(--red-bg);
    border-color: var(--red-border);
    color: var(--red-live) !important;
}

.status-group-badge.is-degraded {
    background: var(--amber-bg);
    border-color: var(--amber-border);
    color: var(--amber-live) !important;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    display: inline-block;
}

/* 90 Günlük Uptime Çubukları Bölümü */
.status-bars-service-box {
    background: #1e1e1e !important;
    padding: 20px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

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

.status-service-name-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14.5px;
    font-weight: 700;
    color: #ffffff !important;
}

.status-service-name-wrap h3,
.status-service-name {
    font-size: 14.5px;
    font-weight: 700;
    color: #ffffff !important;
    margin: 0;
    display: inline;
    line-height: 1.2;
}

.status-service-info-icon {
    width: 14px;
    height: 14px;
    stroke: #94a3b8;
    cursor: help;
}

.status-service-metric {
    font-size: 13px;
    font-weight: 700;
    color: #22c55e !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.status-service-metric.is-outage {
    color: #ef4444 !important;
}

.status-service-metric .ping-tag {
    font-size: 11px;
    font-weight: 700;
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2px 7px;
    border-radius: 4px;
}

/* Çubukların Çizgisi */
.status-bars-track {
    display: flex;
    align-items: stretch;
    gap: 3px;
    height: 34px;
    margin: 12px 0 8px 0;
    padding: 2px 0;
    position: relative;
}

.status-bar-seg {
    flex: 1;
    min-width: 3.5px;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.15s ease;
    position: relative;
}

.status-bar-seg.operational {
    background: #22c55e !important;
}

.status-bar-seg.degraded {
    background: #f59e0b !important;
}

.status-bar-seg.outage {
    background: #ef4444 !important;
}

.status-bar-seg:hover {
    transform: scaleY(1.18);
    filter: brightness(1.25);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.35);
    z-index: 10;
}

.status-bars-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #cbd5e1 !important;
    font-weight: 600;
    margin-top: 6px;
}

/* Diğer Servis Satırları */
.status-service-row {
    padding: 16px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: #262626 !important;
    transition: background 0.15s ease;
}

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

.status-service-row:hover {
    background: #2d2d2d !important;
}

h3.status-service-title,
.status-service-title {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff !important;
    margin: 0;
    line-height: 1.2;
}

.status-service-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 9999px;
    background: var(--green-bg);
    border: 1px solid var(--green-border);
    color: var(--green-live) !important;
}

.status-service-badge.is-outage {
    background: var(--red-bg);
    border-color: var(--red-border);
    color: var(--red-live) !important;
}

.status-service-badge.is-degraded {
    background: var(--amber-bg);
    border-color: var(--amber-border);
    color: var(--amber-live) !important;
}

.status-chevron-right {
    stroke: currentColor;
    margin-left: 2px;
}

/* ==========================================================================
   Olay Bildirim Kutusu (Kesinti Anında Çıkan Banner)
   ========================================================================== */
.status-incident-alert {
    background: rgba(239, 68, 68, 0.1) !important;
    border: 1.5px solid rgba(239, 68, 68, 0.4) !important;
    border-radius: 12px;
    padding: 18px 22px;
    margin-bottom: 24px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    box-shadow: 0 4px 18px rgba(239, 68, 68, 0.15);
}

.status-incident-icon {
    width: 24px;
    height: 24px;
    color: #ef4444;
    flex-shrink: 0;
    margin-top: 2px;
}

.status-incident-title,
.status-incident-content h2,
.status-incident-content h4 {
    font-size: 15.5px;
    font-weight: 800;
    color: #ef4444 !important;
    margin: 0 0 6px 0;
    line-height: 1.3;
}

.status-incident-content p {
    font-size: 13.5px;
    color: #cbd5e1 !important;
    line-height: 1.5;
}

.status-incident-time {
    font-size: 12px;
    color: #94a3b8 !important;
    margin-top: 8px;
}

/* ==========================================================================
   Boş Durumlar (Bakım & Olaylar)
   ========================================================================== */
.status-empty-box {
    background: #262626 !important;
    border: 1.5px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 14px;
    padding: 56px 28px;
    text-align: center;
    max-width: 820px;
    margin: 0 auto;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.status-empty-icon {
    width: 52px;
    height: 52px;
    color: #22c55e;
    margin: 0 auto 18px auto;
}

.status-empty-title {
    font-size: 18px;
    font-weight: 800;
    color: #ffffff !important;
    margin-bottom: 8px;
}

.status-empty-desc {
    font-size: 13.5px;
    color: #cbd5e1 !important;
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ==========================================================================
   Altbilgi (Footer)
   ========================================================================== */
.status-footer {
    margin-top: auto;
    padding: 36px 20px 44px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.status-lang-btn {
    background: #262626 !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    color: #ffffff !important;
    font-size: 12.5px;
    font-weight: 600;
    padding: 7px 16px;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.status-lang-btn:hover {
    background: #333333 !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
}

.status-powered {
    font-size: 12px;
    color: #cbd5e1 !important;
    font-weight: 500;
}

.status-powered a {
    color: #ffffff !important;
    font-weight: 700;
}

.status-powered a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Tooltip
   ========================================================================== */
.status-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #18181b !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 9px;
    border-radius: 6px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6) !important;
    z-index: 50;
}

.status-bar-seg:hover .status-tooltip {
    opacity: 1;
}

/* Mobil Uyumluluk */
@media (max-width: 640px) {
    .status-navbar-wrap {
        padding: 12px 14px 0 14px;
    }

    .status-navbar {
        flex-direction: column;
        gap: 12px;
        padding: 12px 16px;
    }
    
    .status-hero-title {
        font-size: 24px;
    }

    .status-bars-track {
        height: 28px;
        gap: 2px;
    }
}
