/* status/status.css — Status page styles, matching the main site */

@font-face {
    font-family: 'Helvetica-BlackItalic';
    src: url('../fonts/Helvetica-BlackItalic Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Consolas';
    src: url('../fonts/consolas.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Tahoma';
    src: url('../fonts/tahoma.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* ---- Reset / base ---- */

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    padding: 16px;
    min-height: 100vh;
    font-family: Tahoma, Arial, sans-serif;
    background-color: #f0f0f0;
    background-image: url('../bliss.webp');
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: #111;
}

/* ---- Header ---- */

#status-header {
    width: 100%;
    max-width: 1200px;
    margin-bottom: 14px;
    text-align: center;
}

#status-header h1 {
    font-family: 'Helvetica-BlackItalic', Arial, sans-serif;
    font-weight: bolder;
    font-style: italic;
    font-size: 2rem;
    margin: 8px 0 4px;
}

#status-meta {
    font-family: 'Consolas', monospace;
    font-size: 13px;
    color: #333;
    margin-bottom: 4px;
}

#refresh-btn {
    font-family: 'Consolas', monospace;
    font-size: 13px;
    background: rgba(255,255,255,0.55);
    border: 1px solid #888;
    padding: 3px 12px;
    cursor: pointer;
    border-radius: 2px;
    margin-left: 8px;
    vertical-align: middle;
}

#refresh-btn:hover {
    background: rgba(255,255,255,0.85);
}

/* ---- Three-column layout ---- */

#status-grid {
    display: flex;
    flex-direction: row;
    gap: 8px;
    width: 100%;
    max-width: 1200px;
    align-items: flex-start;
}

.status-panel {
    flex: 1 1 0;
    min-width: 0;
    border: 1px solid #000;
    background-color: rgba(255, 255, 255, 0.61);
    backdrop-filter: blur(15px);
    padding: 14px 16px;
}

.panel-title {
    font-family: 'Helvetica-BlackItalic', Arial, sans-serif;
    font-weight: bolder;
    font-style: italic;
    font-size: 1.15rem;
    margin: 0 0 10px 0;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(0,0,0,0.2);
}

/* ---- Status list ---- */

.status-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 3px 0;
    font-family: 'Tahoma', Arial, sans-serif;
    font-size: 14px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.status-item:last-child {
    border-bottom: none;
}

/* Status dot */

.dot {
    flex-shrink: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.dot-checking { background: #f59e0b; box-shadow: 0 0 4px #f59e0b; }
.dot-online   { background: #22c55e; box-shadow: 0 0 4px #22c55e; }
.dot-offline  { background: #ef4444; box-shadow: 0 0 4px #ef4444; }
.dot-unknown  { background: #9ca3af; }

.item-name {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.item-msg {
    font-size: 11px;
    color: #555;
    font-family: 'Consolas', monospace;
    flex-shrink: 0;
    max-width: 90px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: right;
}

/* ---- Footer ---- */

#status-footer {
    margin-top: 14px;
    font-family: 'Consolas', Arial, sans-serif;
    font-weight: bold;
    font-size: 14px;
    text-align: center;
    color: #222;
}

#status-footer a {
    color: inherit;
    text-decoration: underline;
}

/* ---- Mobile: stack columns ---- */

@media (orientation: portrait), (max-width: 700px) {
    #status-grid {
        flex-direction: column;
    }
    .status-panel {
        width: 100%;
    }
    body {
        padding: 10px;
    }
}

/* ---- Desktop ---- */

@media (orientation: landscape) and (min-width: 701px) {
    #status-grid {
        flex-direction: row;
    }
}
