/* /public/assets/css/fakecheck.css */

:root {
    --fc-brand-primary: var(--brand-blue, #3a6ff8);
    --fc-brand-primary-soft: rgba(58, 111, 248, 0.12);
    --fc-surface: #ffffff;
    --fc-surface-muted: #f5f8ff;
    --fc-border: rgba(58, 111, 248, 0.15);
    --fc-text: #1f2a44;
    --fc-text-muted: #5f6b85;
    --fc-success: #1fce88;
    --fc-warning: #ffb347;
    --fc-danger: #f46666;
}

.fc-container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 2rem 1.25rem 3rem;
    color: var(--fc-text);
}

.fc-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.75rem;
    align-items: center;
}

.fc-header-text h2 {
    margin: 0 0 0.3rem;
    font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 700;
    font-size: clamp(1.6rem, 2.3vw, 2rem);
    color: var(--fc-text);
}

.fc-header-text p {
    margin: 0;
    color: var(--fc-text-muted);
    font-size: 0.95rem;
}

.fc-header-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: var(--fc-brand-primary-soft);
    color: var(--fc-text);
    font-size: 0.75rem;
    border: 1px solid var(--fc-border);
}

.fc-header-badge .dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--fc-success);
}

.fc-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr);
    gap: 1.5rem;
}

@media (max-width: 900px) {
    .fc-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Karten */

.fc-card {
    background: var(--fc-surface);
    border-radius: 24px;
    border: 1px solid var(--fc-border);
    padding: 1.75rem 1.8rem 2rem;
    box-shadow: 0 18px 40px rgba(15, 33, 66, 0.08);
}

.fc-card-title {
    margin: 0 0 0.45rem;
    font-size: 1.05rem;
    font-family: "Montserrat", system-ui, sans-serif;
    font-weight: 600;
    color: var(--fc-text);
}

.fc-card-subtitle {
    margin: 0 0 0.8rem;
    font-size: 0.9rem;
    color: var(--fc-text-muted);
}

/* Buttons */

.fc-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.4rem;
}

.fc-actions-bottom {
    margin-top: 0.9rem;
}

.fc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.6rem 1.25rem;
    border-radius: 999px;
    border: 1px solid transparent;
    background: linear-gradient(135deg, var(--fc-brand-primary), #2a73ff);
    color: #fff;
    font-size: 0.92rem;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.15s ease;
    white-space: nowrap;
    box-shadow: 0 12px 28px rgba(58, 111, 248, 0.35);
}

.fc-btn[disabled] {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.fc-btn:hover:not([disabled]) {
    transform: translateY(-1px);
    box-shadow: 0 16px 32px rgba(58, 111, 248, 0.45);
}

.fc-btn-secondary {
    background: var(--fc-surface-muted);
    border-color: var(--fc-border);
    color: var(--fc-text-muted);
    box-shadow: none;
}

.fc-btn-secondary:hover:not([disabled]) {
    background: #fff;
    color: var(--fc-brand-primary);
}

/* Modus-Kacheln */

.fc-mode-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 0.75rem;
}

@media (max-width: 600px) {
    .fc-mode-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.fc-mode-tile {
    border-radius: 18px;
    padding: 1rem 1.1rem;
    border: 1px solid var(--fc-border);
    background: linear-gradient(140deg, #ffffff 0%, #f3f7ff 100%);
    cursor: pointer;
    transition: border 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

.fc-mode-tile.selected {
    border-color: rgba(58, 111, 248, 0.45);
    box-shadow: 0 15px 35px rgba(58, 111, 248, 0.18);
}

.fc-mode-tile h4 {
    margin: 0 0 0.35rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--fc-text);
}

.fc-mode-tile p {
    margin: 0;
    font-size: 0.84rem;
    color: var(--fc-text-muted);
}

.fc-mode-tile small {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.72rem;
    color: var(--fc-text-muted);
}

.fc-mode-tile .pill {
    display: inline-flex;
    align-items: center;
    padding: 0.12rem 0.55rem;
    border-radius: 999px;
    border: 1px solid var(--fc-border);
    font-size: 0.7rem;
    color: var(--fc-text-muted);
    background: var(--fc-surface);
}

/* Status & Log */

.fc-status-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 1.1rem 0;
    font-size: 0.85rem;
    color: var(--fc-text-muted);
}

.fc-tag {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.15rem 0.75rem;
    border: 1px dashed var(--fc-border);
    font-size: 0.75rem;
    color: var(--fc-text);
    background: var(--fc-surface-muted);
}

.fc-progress {
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: var(--fc-surface-muted);
    overflow: hidden;
}

.fc-progress-inner {
    height: 100%;
    width: 0%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--fc-brand-primary), #7facff);
    transition: width 0.2s ease-out;
}

.fc-log {
    margin-top: 1rem;
    background: var(--fc-surface-muted);
    border-radius: 16px;
    padding: 1rem;
    max-height: 240px;
    overflow-y: auto;
    border: 1px solid rgba(58, 111, 248, 0.08);
    font-size: 0.8rem;
    color: var(--fc-text);
}

.fc-log-line {
    display: flex;
    gap: 0.4rem;
    margin-bottom: 0.35rem;
}

.fc-log-line strong {
    color: var(--fc-text-muted);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Result cards */

.fc-overall-status-wrap {
    margin-bottom: 1rem;
}

.fc-pill-status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid transparent;
}

.fc-pill-status .fc-pill-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: currentColor;
}

.fc-pill-ok {
    background: rgba(31, 206, 136, 0.15);
    color: var(--fc-success);
    border-color: rgba(31, 206, 136, 0.25);
}

.fc-pill-warn {
    background: rgba(255, 179, 71, 0.15);
    color: var(--fc-warning);
    border-color: rgba(255, 179, 71, 0.3);
}

.fc-pill-bad {
    background: rgba(244, 102, 102, 0.15);
    color: var(--fc-danger);
    border-color: rgba(244, 102, 102, 0.3);
}

.fc-kv-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem 0.75rem;
    margin: 1rem 0;
    font-size: 0.85rem;
    color: var(--fc-text);
}

@media (max-width: 500px) {
    .fc-kv-list {
        grid-template-columns: minmax(0, 1fr);
    }
}

.fc-kv-item dt {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--fc-text-muted);
    margin-bottom: 0.1rem;
}

.fc-alert {
    border-radius: 16px;
    padding: 0.8rem 1rem;
    font-size: 0.82rem;
    margin: 0.4rem 0;
}

.fc-alert-warn {
    background: rgba(255, 179, 71, 0.12);
    border: 1px solid rgba(255, 179, 71, 0.4);
    color: #ab680d;
}

.fc-alert-info {
    background: rgba(58, 111, 248, 0.08);
    border: 1px solid rgba(58, 111, 248, 0.3);
    color: var(--fc-text);
}

.fc-alert-error {
    background: rgba(244, 102, 102, 0.12);
    border: 1px solid rgba(244, 102, 102, 0.35);
    color: #b73232;
}

.fc-help {
    font-size: 0.8rem;
    color: var(--fc-text-muted);
    margin: 0.55rem 0;
}

.fc-log code,
.fc-log kbd {
    font-family: "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, monospace;
}

/* Serial check widget */

#serialcheck-root {
    margin-top: 2.5rem;
}

#serialcheck-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

@media (max-width: 640px) {
    #serialcheck-form {
        grid-template-columns: minmax(0, 1fr);
    }
}

#serialcheck-form label {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--fc-text-muted);
    margin-bottom: 0.2rem;
}

#serialcheck-form input {
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--fc-border);
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    color: var(--fc-text);
    background: var(--fc-surface);
}

#serialcheck-result {
    margin-top: 1.2rem;
    border-radius: 20px;
    border: 1px solid var(--fc-border);
    background: var(--fc-surface);
    padding: 1.2rem;
}

#serialcheck-error {
    margin-top: 1rem;
    border-radius: 14px;
    border: 1px solid rgba(244, 102, 102, 0.4);
    background: rgba(244, 102, 102, 0.12);
    color: #b73232;
    padding: 0.8rem 1rem;
    font-size: 0.85rem;
}

.fc-log::-webkit-scrollbar {
    width: 6px;
}

.fc-log::-webkit-scrollbar-thumb {
    background: rgba(58, 111, 248, 0.3);
    border-radius: 999px;
}
