@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap");

:root {
    color-scheme: dark;
    font-family: "Inter", system-ui, sans-serif;
    --bg: radial-gradient(circle at top, #20051f, #040009 70%);
    --panel: rgba(13, 1, 22, 0.92);
    --accent: #ff7fd1;
    --border: rgba(255, 127, 209, 0.3);
    --text: #fbeaff;
    --muted: rgba(251, 234, 255, 0.7);
    --error: #ff6d8b;
    --shadow: 0 28px 60px rgba(6, 0, 14, 0.45);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg) fixed;
    color: var(--text);
    padding: clamp(1.5rem, 4vw, 3rem);
}

.layout {
    display: grid;
    gap: clamp(1.5rem, 3vw, 2.7rem);
    max-width: 960px;
    margin: 0 auto;
}

.header {
    background: var(--panel);
    border-radius: 26px;
    padding: clamp(2rem, 4vw, 3rem);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    text-align: center;
}

.header h1 { margin: 0; font-size: clamp(2rem, 4vw, 3rem); }
.header p { margin-top: 1rem; color: var(--muted); }

.panel {
    background: var(--panel);
    border-radius: 24px;
    border: 1px solid rgba(255, 127, 209, 0.2);
    padding: clamp(1.6rem, 3vw, 2.4rem);
    box-shadow: var(--shadow);
}

.panel h2 { margin-top: 0; }

form {
    display: grid;
    gap: 1.1rem;
}

label { font-weight: 600; letter-spacing: 0.05em; }

input[type="url"] {
    padding: 0.9rem 1rem;
    border-radius: 18px;
    border: 1px solid rgba(255, 127, 209, 0.24);
    background: rgba(10, 0, 19, 0.85);
    color: var(--text);
}

input:focus {
    outline: none;
    border-color: rgba(255, 127, 209, 0.6);
    box-shadow: 0 0 0 3px rgba(255, 127, 209, 0.2);
}

button {
    border: none;
    border-radius: 18px;
    padding: 0.9rem 1.4rem;
    background: linear-gradient(135deg, var(--accent), #ffb7ff);
    color: #27022f;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

button:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 32px rgba(255, 127, 209, 0.35);
}

.response-box {
    min-height: 220px;
    border-radius: 18px;
    border: 1px dashed rgba(255, 127, 209, 0.25);
    padding: 1.4rem;
    background: rgba(7, 0, 13, 0.7);
}

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

.loading { color: var(--muted); font-style: italic; }

.error { color: var(--error); font-weight: 600; }

.resp details {
    margin-top: 1rem;
    background: rgba(12, 0, 24, 0.8);
    border-radius: 14px;
    border: 1px solid rgba(255, 127, 209, 0.22);
    padding: 0.75rem 1.1rem;
}

.resp pre {
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 320px;
    overflow-y: auto;
    margin: 0.8rem 0 0;
}

.footer {
    text-align: center;
    color: var(--muted);
}

code {
    font-family: "Fira Code", ui-monospace, SFMono-Regular, Menlo, monospace;
    background: rgba(255, 127, 209, 0.14);
    padding: 0.2rem 0.35rem;
    border-radius: 10px;
}

@media (max-width: 720px) {
    body { padding: 1.6rem; }
}
