/* ============================================================
   OPENTTD TRACKER — mockup panelu
   ============================================================ */

:root {
    --opttd-bg: #07111f;
    --opttd-panel: rgba(255, 255, 255, 0.05);
    --opttd-panel-strong: rgba(255, 255, 255, 0.08);
    --opttd-border: rgba(255, 255, 255, 0.12);
    --opttd-text: #f5f7ff;
    --opttd-muted: #8ea0bf;
    --opttd-cyan: #37d7ff;
    --opttd-violet: #8b5cf6;
    --opttd-green: #2ed573;
    --opttd-orange: #ffb347;
}

.opttd-shell {
    max-width: 1080px;
    margin: 0 auto;
    padding: 110px 18px 56px;
    color: var(--opttd-text);
}

.opttd-hero {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 16px;
    align-items: center;
    padding: 20px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(55, 215, 255, 0.15), rgba(139, 92, 246, 0.15));
    border: 1px solid var(--opttd-border);
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.24);
}

.opttd-eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.76rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    background: rgba(255,255,255,0.09);
    color: var(--opttd-cyan);
}

.opttd-hero h1 {
    margin: 0 0 8px;
    font-size: clamp(1.45rem, 2.7vw, 2rem);
    line-height: 1.15;
}

.opttd-hero p {
    margin: 0 0 14px;
    color: var(--opttd-muted);
    max-width: 620px;
    line-height: 1.6;
    font-size: 0.95rem;
}

.opttd-hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.opttd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 16px;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease;
    border: 1px solid transparent;
}

.opttd-btn:hover {
    transform: translateY(-2px);
}

.opttd-btn-primary {
    background: linear-gradient(135deg, var(--opttd-cyan), var(--opttd-violet));
    color: white;
}

.opttd-btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--opttd-text);
    border-color: var(--opttd-border);
}

.opttd-hero-card {
    padding: 16px;
    border-radius: 18px;
    background: rgba(7, 17, 31, 0.72);
    border: 1px solid var(--opttd-border);
}

.opttd-card-top {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--opttd-muted);
    margin-bottom: 16px;
}

.opttd-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--opttd-green);
    box-shadow: 0 0 10px var(--opttd-green);
}

.opttd-card-body {
    display: grid;
    gap: 12px;
}

.opttd-card-body > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.opttd-card-body strong {
    font-size: 1.15rem;
}

.opttd-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 18px 0 20px;
}

.opttd-stat-card {
    padding: 12px 14px;
    border-radius: 16px;
    background: var(--opttd-panel);
    border: 1px solid var(--opttd-border);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.opttd-stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--opttd-muted);
}

.opttd-stat-card strong {
    font-size: 1.2rem;
}

.opttd-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.opttd-tabs a {
    padding: 10px 14px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--opttd-border);
    border-radius: 999px;
    color: var(--opttd-text);
    text-decoration: none;
    font-size: 0.95rem;
}

.opttd-tabs a:hover {
    border-color: var(--opttd-cyan);
    color: var(--opttd-cyan);
}

.opttd-panel {
    padding: 16px;
    border-radius: 18px;
    background: var(--opttd-panel);
    border: 1px solid var(--opttd-border);
    margin-bottom: 14px;
}

.opttd-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 16px;
    margin-bottom: 20px;
}

.opttd-panel-head h2 {
    margin: 4px 0 0;
    font-size: 1.3rem;
}

.opttd-panel-kicker {
    color: var(--opttd-cyan);
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.opttd-panel-head p {
    margin: 0;
    color: var(--opttd-muted);
    max-width: 500px;
    line-height: 1.6;
}

.opttd-server-panel {
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255,255,255,0.03);
}

#server-info {
    scroll-margin-top: 96px;
}

.opttd-page-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px;
    background: rgba(255,255,255,0.04);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.opttd-page-btn {
    border: 1px solid rgba(255,255,255,0.1);
    background: transparent;
    color: var(--opttd-muted);
    padding: 7px 10px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    min-width: 36px;
}

.opttd-page-btn.active {
    background: rgba(55, 215, 255, 0.15);
    color: var(--opttd-text);
    border-color: rgba(55, 215, 255, 0.25);
}

.opttd-server-list {
    display: grid;
    gap: 0;
}

.opttd-server-head {
    display: grid;
    grid-template-columns: 1.7fr 0.8fr 0.8fr 0.6fr 0.9fr;
    gap: 10px;
    padding: 10px 14px;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--opttd-cyan);
    background: rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.opttd-server-card {
    display: grid;
    grid-template-columns: 1.7fr 0.8fr 0.8fr 0.6fr 0.9fr;
    gap: 10px;
    align-items: center;
    min-width: 0;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    background: transparent;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.opttd-server-card:hover,
.opttd-server-card.is-selected {
    background: rgba(55, 215, 255, 0.08);
    border-color: rgba(55, 215, 255, 0.22);
}

.opttd-server-card:last-child {
    border-bottom: 0;
}

.opttd-server-card strong {
    font-weight: 700;
    color: var(--opttd-text);
}

.opttd-server-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.opttd-server-top h3 {
    margin: 0;
    font-size: 0.96rem;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.35;
}

.opttd-server-cell {
    font-size: 0.9rem;
    color: var(--opttd-muted);
    min-width: 0;
    overflow-wrap: anywhere;
}

.opttd-server-map {
    color: var(--opttd-text);
}

.opttd-empty-state {
    padding: 16px 14px;
    color: var(--opttd-muted);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.is-hidden {
    display: none !important;
}

.opttd-pill {
    display: inline-block;
    padding: 5px 8px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.opttd-pill-live {
    background: rgba(46, 213, 115, 0.16);
    color: var(--opttd-green);
}

.opttd-pill-warn {
    background: rgba(255, 179, 71, 0.16);
    color: var(--opttd-orange);
}

.opttd-pill-idle {
    background: rgba(255,255,255,0.08);
    color: var(--opttd-muted);
}

.opttd-server-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.88rem;
    color: var(--opttd-muted);
}

.opttd-server-card p {
    margin: 0;
    color: var(--opttd-muted);
    font-size: 0.85rem;
}

.opttd-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.opttd-card-stack {
    padding: 16px;
    border-radius: 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
}

.opttd-card-stack h3 {
    margin-top: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.35;
}

.opttd-card-stack ul {
    margin: 0;
    padding-left: 18px;
    color: var(--opttd-muted);
    line-height: 1.8;
}

.opttd-doc-card pre {
    padding: 14px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.28);
    overflow-x: auto;
    color: #dce8ff;
    font-size: 0.9rem;
}

.opttd-doc-note {
    margin-top: 12px;
    color: var(--opttd-muted);
}

.opttd-banner-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 20px;
}

.opttd-form {
    display: grid;
    gap: 14px;
}

.opttd-form label {
    display: grid;
    gap: 8px;
    color: var(--opttd-muted);
}

.opttd-form select,
.opttd-form input[type="text"] {
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--opttd-border);
    background: rgba(255,255,255,0.06);
    color: var(--opttd-text);
}

.opttd-form input[type="checkbox"] {
    width: 16px;
    height: 16px;
}

.opttd-banner-preview {
    padding: 18px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(55, 215, 255, 0.15), rgba(139, 92, 246, 0.15));
    border: 1px solid var(--opttd-border);
    min-height: 240px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.opttd-banner-top {
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--opttd-cyan);
    margin-bottom: 10px;
}

.opttd-banner-body {
    padding: 14px;
    border-radius: 14px;
    background: rgba(7, 17, 31, 0.7);
    border: 1px solid rgba(255,255,255,0.08);
}

.opttd-banner-body h3 {
    margin: 0 0 8px;
}

.opttd-banner-body p {
    margin: 0 0 8px;
    color: var(--opttd-muted);
}

.opttd-banner-body span {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(46, 213, 115, 0.16);
    color: var(--opttd-green);
    font-size: 0.82rem;
}

@media (max-width: 920px) {
    .opttd-hero,
    .opttd-info-grid,
    .opttd-banner-grid {
        grid-template-columns: 1fr;
    }

    .opttd-stats {
        grid-template-columns: 1fr 1fr;
    }

    .opttd-server-card,
    .opttd-server-head {
        grid-template-columns: 1fr;
        gap: 6px;
    }
}

@media (max-width: 640px) {
    .opttd-shell {
        padding: 100px 16px 60px;
    }

    .opttd-hero,
    .opttd-panel {
        padding: 18px;
    }

    .opttd-stats {
        grid-template-columns: 1fr;
    }

    .opttd-panel-head {
        flex-direction: column;
        align-items: flex-start;
    }
}
