/* ═══════════════════════════════════════════════════════
   APIRequest — Stylesheet
   Dark technical workspace aesthetic
   ═══════════════════════════════════════════════════════ */

/* ── Variables ── */
:root {
    --bg-base: #0c0e14;
    --bg-surface: #12151e;
    --bg-panel: #181c28;
    --bg-input: #1e2233;
    --bg-hover: #242840;
    --border: #2a2f42;
    --border-focus: #3d4460;
    --text: #e4e6ef;
    --text-soft: #a0a5be;
    --text-muted: #636988;
    --accent: #22d3ee;
    --accent-dim: rgba(34,211,238,0.12);
    --accent-glow: rgba(34,211,238,0.25);
    --indigo: #6366f1;
    --indigo-dim: rgba(99,102,241,0.12);
    --method-get: #22d3ee;
    --method-post: #34d399;
    --method-put: #fbbf24;
    --method-patch: #fb923c;
    --method-delete: #f87171;
    --method-head: #a78bfa;
    --method-options: #94a3b8;
    --status-ok: #34d399;
    --status-redirect: #fbbf24;
    --status-client-err: #fb923c;
    --status-server-err: #f87171;
    --font-ui: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', ui-monospace, monospace;
    --radius: 8px;
    --radius-sm: 5px;
    --radius-lg: 12px;
    --transition: 0.18s ease;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 15px; -webkit-text-size-adjust: 100%; }

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

a { color: var(--accent); text-decoration: none; transition: opacity var(--transition); }
a:hover { opacity: 0.8; }

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-focus); }

/* ══════════════════════════════════════
   SITE HEADER
   ══════════════════════════════════════ */
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-surface);
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
    text-decoration: none;
}

.site-header__brand img {
    width: 26px;
    height: 26px;
}

.site-header__brand span {
    background: linear-gradient(135deg, var(--accent), var(--indigo));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.site-header__nav { display: flex; gap: 20px; align-items: center; }

.site-header__link {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    transition: color var(--transition);
}

button.site-header__link {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.site-header__link:hover { color: var(--text); opacity: 1; }

/* ══════════════════════════════════════
   LAYOUT — WORKSPACE
   ══════════════════════════════════════ */
.workspace {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    min-height: calc(100vh - 53px);
}

.workspace__pane {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.workspace__pane--request {
    border-right: 1px solid var(--border);
}

/* ── Pane header ── */
.pane-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-surface);
    min-height: 48px;
}

.pane-header__title {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.pane-header__actions { display: flex; gap: 8px; }

/* ── Pane body ── */
.pane-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

/* ══════════════════════════════════════
   URL BAR
   ══════════════════════════════════════ */
.url-bar {
    display: flex;
    gap: 0;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--bg-input);
    overflow: hidden;
    transition: border-color var(--transition);
}

.url-bar:focus-within { border-color: var(--accent); }

.method-select {
    padding: 10px 12px;
    background: var(--bg-panel);
    border: none;
    border-right: 1px solid var(--border);
    color: var(--method-get);
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    min-width: 100px;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23636988'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 28px;
}

.method-select:focus { outline: none; background-color: var(--bg-hover); }

.method-select option { background: var(--bg-panel); color: var(--text); }

.url-input {
    flex: 1;
    padding: 10px 14px;
    background: transparent;
    border: none;
    color: var(--text);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    min-width: 0;
}

.url-input::placeholder { color: var(--text-muted); }
.url-input:focus { outline: none; }

.send-btn {
    padding: 10px 22px;
    background: linear-gradient(135deg, var(--accent), var(--indigo));
    border: none;
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    letter-spacing: 0.04em;
    transition: opacity var(--transition), filter var(--transition);
    white-space: nowrap;
}

.send-btn:hover { filter: brightness(1.1); }
.send-btn:active { filter: brightness(0.95); }

.send-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    filter: none;
}

.send-btn--loading {
    position: relative;
    color: transparent;
}

.send-btn--loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    top: 50%;
    left: 50%;
    margin: -8px 0 0 -8px;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ══════════════════════════════════════
   TABS
   ══════════════════════════════════════ */
.tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--border);
    margin-top: 16px;
    overflow-x: auto;
}

.tab-btn {
    padding: 9px 16px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: color var(--transition), border-color var(--transition);
}

.tab-btn:hover { color: var(--text-soft); }

.tab-btn.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.tab-panel { display: none; padding: 14px 0 0; }
.tab-panel.active { display: block; }

/* ══════════════════════════════════════
   KEY-VALUE EDITOR
   ══════════════════════════════════════ */
.kv-table { width: 100%; }

.kv-row {
    display: flex;
    gap: 6px;
    margin-bottom: 6px;
    align-items: center;
}

.kv-row__input {
    flex: 1;
    padding: 7px 10px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: var(--font-mono);
    font-size: 0.82rem;
    transition: border-color var(--transition);
}

.kv-row__input:focus { outline: none; border-color: var(--accent); }

.kv-row__input::placeholder { color: var(--text-muted); }

.kv-row__remove {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    cursor: pointer;
    flex-shrink: 0;
    transition: all var(--transition);
    font-size: 1rem;
}

.kv-row__remove:hover { color: var(--method-delete); border-color: var(--method-delete); }

.kv-add-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    background: none;
    border: 1px dashed var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 0.8rem;
    cursor: pointer;
    margin-top: 4px;
    transition: all var(--transition);
}

.kv-add-btn:hover { border-color: var(--accent); color: var(--accent); }

/* ══════════════════════════════════════
   AUTH SECTION
   ══════════════════════════════════════ */
.auth-select {
    padding: 8px 12px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 0.85rem;
    width: 100%;
    margin-bottom: 10px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23636988'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 28px;
}

.auth-select:focus { outline: none; border-color: var(--accent); }

.auth-fields { display: flex; flex-direction: column; gap: 8px; }

.auth-input {
    padding: 8px 12px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: var(--font-mono);
    font-size: 0.82rem;
    width: 100%;
    transition: border-color var(--transition);
}

.auth-input:focus { outline: none; border-color: var(--accent); }
.auth-input::placeholder { color: var(--text-muted); }

.auth-warning {
    font-size: 0.75rem;
    color: var(--method-put);
    margin-top: 6px;
    display: flex;
    align-items: flex-start;
    gap: 5px;
    line-height: 1.4;
}

/* ══════════════════════════════════════
   BODY EDITOR
   ══════════════════════════════════════ */
.body-mode-bar {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.body-mode-btn {
    padding: 5px 12px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 0.78rem;
    cursor: pointer;
    transition: all var(--transition);
}

.body-mode-btn.active {
    background: var(--accent-dim);
    border-color: var(--accent);
    color: var(--accent);
}

.body-mode-btn:hover:not(.active) { border-color: var(--border-focus); color: var(--text-soft); }

.body-textarea {
    width: 100%;
    min-height: 160px;
    padding: 12px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: var(--font-mono);
    font-size: 0.82rem;
    line-height: 1.5;
    resize: vertical;
    transition: border-color var(--transition);
}

.body-textarea:focus { outline: none; border-color: var(--accent); }
.body-textarea::placeholder { color: var(--text-muted); }

.body-error {
    font-size: 0.78rem;
    color: var(--method-delete);
    margin-top: 6px;
}

.body-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

/* ══════════════════════════════════════
   RESPONSE
   ══════════════════════════════════════ */
.response-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 300px;
    color: var(--text-muted);
    text-align: center;
    gap: 12px;
}

.response-empty__icon { font-size: 2.5rem; opacity: 0.3; }
.response-empty__text { font-size: 0.9rem; }

.response-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 16px;
}

.response-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    font-family: var(--font-mono);
}

.response-badge--status {
    color: #fff;
}

.response-badge--time,
.response-badge--size {
    background: var(--bg-input);
    border: 1px solid var(--border);
    color: var(--text-soft);
    font-weight: 500;
}

/* Response tabs */
.resp-tabs { margin-top: 0; }

.resp-body-pre {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    line-height: 1.55;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 60vh;
    overflow-y: auto;
    color: var(--text);
}

.resp-headers-table {
    width: 100%;
    border-collapse: collapse;
}

.resp-headers-table th,
.resp-headers-table td {
    padding: 6px 10px;
    text-align: left;
    font-size: 0.82rem;
    border-bottom: 1px solid var(--border);
    font-family: var(--font-mono);
}

.resp-headers-table th {
    color: var(--text-muted);
    font-weight: 500;
    width: 35%;
}

.resp-headers-table td { color: var(--text); word-break: break-all; }

/* ── Response error ── */
.response-error {
    background: rgba(248,113,113,0.08);
    border: 1px solid rgba(248,113,113,0.25);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
}

.response-error__title {
    color: var(--method-delete);
    font-weight: 600;
    margin-bottom: 8px;
}

.response-error__text {
    color: var(--text-soft);
    font-size: 0.88rem;
    line-height: 1.6;
}

/* ══════════════════════════════════════
   SMALL BUTTONS / ICON BUTTONS
   ══════════════════════════════════════ */
.icon-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 0.78rem;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.icon-btn:hover { border-color: var(--accent); color: var(--accent); }

.icon-btn--danger:hover { border-color: var(--method-delete); color: var(--method-delete); }

.icon-btn svg { width: 14px; height: 14px; }

/* ══════════════════════════════════════
   HISTORY SIDEBAR / DRAWER
   ══════════════════════════════════════ */
.history-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 360px;
    max-width: 90vw;
    height: 100vh;
    background: var(--bg-surface);
    border-left: 1px solid var(--border);
    z-index: 200;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    display: flex;
    flex-direction: column;
}

.history-drawer.open { transform: translateX(0); }

.history-drawer__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
}

.history-drawer__title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
}

.history-drawer__close {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.15rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.history-drawer__close:hover { background: var(--bg-hover); color: var(--text); }

.history-drawer__body {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
}

.history-drawer__actions {
    padding: 12px 18px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 8px;
}

.history-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background var(--transition);
    border: 1px solid transparent;
}

.history-item:hover { background: var(--bg-hover); }

.history-item__method {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    min-width: 52px;
    text-align: center;
    padding: 2px 6px;
    border-radius: 3px;
    background: var(--bg-input);
    flex-shrink: 0;
}

.history-item__url {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-soft);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.history-item__status {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    flex-shrink: 0;
}

.history-item__delete {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.85rem;
    border-radius: 3px;
    opacity: 0;
    transition: all var(--transition);
    flex-shrink: 0;
}

.history-item:hover .history-item__delete { opacity: 1; }
.history-item__delete:hover { color: var(--method-delete); background: rgba(248,113,113,0.1); }

.history-empty {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    padding: 40px 20px;
}

/* Backdrop */
.drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 199;
    display: none;
}

.drawer-backdrop.open { display: block; }

/* ══════════════════════════════════════
   PRESETS DROPDOWN
   ══════════════════════════════════════ */
.presets-wrap { position: relative; }

.presets-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 4px;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    min-width: 240px;
    z-index: 50;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    display: none;
}

.presets-menu.open { display: block; }

.preset-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    cursor: pointer;
    transition: background var(--transition);
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    color: var(--text);
    font-size: 0.83rem;
}

.preset-item:hover { background: var(--bg-hover); }
.preset-item:first-child { border-radius: var(--radius) var(--radius) 0 0; }
.preset-item:last-child { border-radius: 0 0 var(--radius) var(--radius); }

.preset-item__method {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    min-width: 42px;
    text-align: center;
}

.preset-item__label { color: var(--text-soft); }

/* ══════════════════════════════════════
   CURL MODAL
   ══════════════════════════════════════ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.modal-overlay[hidden] { display: none; }

.modal {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    max-width: 640px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 24px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.5);
}

.modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.modal__title {
    font-size: 1rem;
    font-weight: 600;
}

.modal__close {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.2rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.modal__close:hover { background: var(--bg-hover); color: var(--text); }

.modal__code {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-all;
    color: var(--text);
    max-height: 50vh;
    overflow-y: auto;
}

/* ══════════════════════════════════════
   TOAST
   ══════════════════════════════════════ */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 10px 20px;
    font-size: 0.85rem;
    color: var(--text);
    z-index: 400;
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    pointer-events: none;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* ══════════════════════════════════════
   SEO / CONTENT SECTIONS (below workspace)
   ══════════════════════════════════════ */
.content-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 24px;
}

.content-section__title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text);
}

.content-section p {
    color: var(--text-soft);
    margin-bottom: 14px;
    line-height: 1.7;
}

/* FAQ */
.faq-section { padding-bottom: 60px; }

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 8px;
    background: var(--bg-surface);
}

.faq-item summary {
    padding: 14px 18px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text);
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: '+';
    font-size: 1.15rem;
    color: var(--text-muted);
    flex-shrink: 0;
    margin-left: 12px;
    transition: transform var(--transition);
}

.faq-item[open] summary::after {
    content: '\2212';
}

.faq-item p {
    padding: 0 18px 14px;
    color: var(--text-soft);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ══════════════════════════════════════
   FOOTER
   ══════════════════════════════════════ */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 24px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.site-footer__links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 10px;
}

.site-footer__links a {
    color: var(--text-muted);
    font-size: 0.8rem;
    transition: color var(--transition);
}

.site-footer__links a:hover { color: var(--text); }

/* ══════════════════════════════════════
   LEGAL PAGES
   ══════════════════════════════════════ */
.legal-page {
    max-width: 720px;
    margin: 0 auto;
    padding: 48px 24px 80px;
}

.legal-page h1 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.legal-page__updated {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.legal-page h2 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 28px;
    margin-bottom: 10px;
    color: var(--accent);
}

.legal-page p, .legal-page li {
    color: var(--text-soft);
    line-height: 1.7;
    margin-bottom: 10px;
    font-size: 0.92rem;
}

.legal-page ul { padding-left: 20px; }
.legal-page li { margin-bottom: 6px; }

/* ── Contact card ── */
.contact-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin: 24px 0;
}

.contact-card h2 { margin-top: 0; }

.contact-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 18px 0;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    border: none;
}

.contact-btn--primary {
    background: linear-gradient(135deg, var(--accent), var(--indigo));
    color: #fff;
}

.contact-btn--primary:hover { filter: brightness(1.1); }

.contact-btn--secondary {
    background: var(--bg-input);
    border: 1px solid var(--border);
    color: var(--text-soft);
}

.contact-btn--secondary:hover { border-color: var(--accent); color: var(--accent); }

.contact-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 8px;
}

/* ── Email link ── */
.email-link {
    color: var(--accent);
    cursor: pointer;
    text-decoration: none;
}

.email-link:hover { text-decoration: underline; }

/* ══════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════ */
@media (max-width: 800px) {
    .workspace {
        grid-template-columns: 1fr;
    }

    .workspace__pane--request {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .pane-body { padding: 16px; }

    .site-header__nav { gap: 12px; }

    .history-drawer { width: 100%; max-width: 100%; }

    .url-bar { flex-wrap: wrap; }

    .method-select {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .send-btn { width: 100%; justify-content: center; padding: 12px; }
}

@media (max-width: 480px) {
    .site-header { padding: 12px 16px; }
    .site-header__link { font-size: 0.78rem; }
    .pane-body { padding: 12px; }
    .response-meta { gap: 8px; }
}

/* ══════════════════════════════════════
   REDUCED MOTION
   ══════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
