/* ==============================================
   IDEAS WEB - STATUS PAGE STYLES
   ============================================== */

:root {
    --status-green: #2ecc71;
    --status-yellow: #f1c40f;
    --status-orange: #e67e22;
    --status-red: #e74c3c;
    --status-blue: #3498db;
    --status-gray: #95a5a6;

    --color-text: #1a1a2e;
    --color-text-muted: #64748b;
    --color-bg: #f8fafc;
    --color-white: #ffffff;
    --color-border: #e2e8f0;

    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.05);

    --primary-gradient: linear-gradient(135deg, #00b5e2, #8a2be2);
}

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

body {
    font-family: var(--font-family);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Header --- */
.status-header {
    background: var(--color-white);
    padding: 20px 0;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 40px;
}

.status-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.status-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.status-logo img {
    height: 32px;
}

.status-logo .logo-text {
    font-size: 22px;
    font-weight: 800;
    color: #111;
}

.status-logo .logo-text span {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.status-header__links a {
    text-decoration: none;
    color: var(--color-text-muted);
    font-weight: 500;
    font-size: 14px;
    padding: 8px 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: all 0.2s;
}

.status-header__links a:hover {
    background: var(--color-bg);
    border-color: #cbd5e1;
}

/* --- Overall Banner --- */
.overall-banner {
    padding: 24px;
    border-radius: var(--radius-md);
    color: #fff;
    font-weight: 700;
    font-size: 20px;
    text-align: center;
    margin-bottom: 40px;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

.overall-banner.status-none { background-color: var(--status-green); }
.overall-banner.status-minor { background-color: var(--status-yellow); color: #856404; }
.overall-banner.status-major { background-color: var(--status-orange); }
.overall-banner.status-critical { background-color: var(--status-red); }

/* --- Sections --- */
.status-section {
    margin-bottom: 40px;
}

.status-section__title {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    margin-bottom: 16px;
    font-weight: 700;
}

/* --- Components --- */
.status-components-grid {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.component-item {
    padding: 16px 24px;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
}

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

.component-item:hover {
    background: #fcfcfd;
}

.component-name {
    font-weight: 600;
    font-size: 16px;
}

.component-status {
    font-size: 14px;
    font-weight: 600;
}

.status-operational { color: var(--status-green); }
.status-degraded { color: var(--status-yellow); }
.status-partial { color: var(--status-orange); }
.status-major { color: var(--status-red); }
.status-maintenance { color: var(--status-blue); }

/* --- Multi-Column Layout for Desktop --- */
.status-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

@media (max-width: 768px) {
    .status-columns {
        grid-template-columns: 1fr;
    }
}

.status-list-container {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    min-height: 100px;
    padding: 20px;
}

.incident-item {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f1f5f9;
}

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

.incident-name {
    font-weight: 700;
    font-size: 15px;
    display: block;
    margin-bottom: 4px;
}

.incident-date {
    font-size: 12px;
    color: var(--color-text-muted);
    display: block;
}

.status-empty {
    font-size: 14px;
    color: var(--color-text-muted);
    text-align: center;
    padding: 20px 0;
}

/* --- Footer --- */
.status-footer {
    border-top: 1px solid var(--color-border);
    padding: 40px 0;
    margin-top: 60px;
    color: var(--color-text-muted);
    font-size: 13px;
}

.status-footer__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.status-footer a {
    color: var(--color-text-muted);
    text-decoration: none;
}

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

/* --- Loading --- */
.status-loading {
    padding: 40px;
    text-align: center;
    color: var(--color-text-muted);
    font-style: italic;
}

/* --- Animations --- */
.fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Add bar simulation if needed later */
.uptime-bars {
    display: flex;
    gap: 2px;
    margin-top: 8px;
}

.uptime-bar {
    height: 14px;
    flex: 1;
    background: var(--status-green);
    opacity: 0.8;
    border-radius: 1px;
}
