/* ======================================================
   DEVDECK STYLES
====================================================== */

/* ===== ROOT ===== */

:root {
    --bg: #0f172a;
    --surface: #020617;

    --border: #1e293b;
    --border-hover: #334155;

    --text: #e2e8f0;
    --text-muted: #94a3b8;

    --radius: 12px;
    --transition: 0.2s ease;
}

/* ===== RESET ===== */

* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;

    display: flex;
    justify-content: center;

    background: var(--bg);
    color: var(--text);

    font-family: system-ui, sans-serif;
}

/* ===== LAYOUT ===== */

.container {
    width: 100%;
    max-width: 1000px;

    padding: 20px;
}

.section {
    margin-top: 40px;
}

/* ===== HEADER ===== */

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 25px;
}

.logo {
    font-size: 20px;
    font-weight: 700;
}

.logo a {
    color: inherit;
    text-decoration: none;
}

.nav a {
    color: var(--text-muted);

    text-decoration: none;
    font-size: 14px;

    transition: color var(--transition);
}

.nav a:hover {
    color: var(--text);
}

/* ===== TYPOGRAPHY ===== */

h1 {
    margin-bottom: 6px;
}

h2 {
    margin-bottom: 14px;
}

.page-description,
.text-muted {
    color: var(--text-muted);
}

/* ===== GRID ===== */

.grid {
    display: grid;
    gap: 20px;
}

@media (min-width: 768px) {
    .grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ===== CARD ===== */

.card {
    display: block;

    padding: 20px;

    background: var(--surface);

    border: 1px solid var(--border);
    border-radius: 14px;

    color: inherit;
    text-decoration: none;

    transition:
        transform var(--transition),
        border-color var(--transition),
        background var(--transition);
}

.card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.card-title {
    font-weight: 600;
    margin-bottom: 8px;
}

.card-description {
    color: var(--text-muted);
    font-size: 14px;
}

/* ===== FORM ===== */

.input,
.textarea {
    width: 100%;

    padding: 12px;

    border: 1px solid var(--border);
    border-radius: var(--radius);

    background: var(--surface);
    color: var(--text);

    font-size: 14px;
    font-family: monospace;

    transition:
        border-color var(--transition),
        background var(--transition);
}

.input:focus,
.textarea:focus {
    outline: none;
    border-color: var(--border-hover);
}

.textarea {
    min-height: 80px;
    max-height: 150px;

    resize: vertical;
}

/* ===== BOX ===== */

.box {
    position: relative;

    padding: 15px;

    background: var(--surface);

    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.box h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

/* ===== BUTTONS ===== */

.button-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;

    margin-top: 14px;
}

.button {
    border: none;

    padding: 10px 14px;

    border-radius: 8px;

    background: var(--border);
    color: var(--text);

    cursor: pointer;

    font-size: 14px;
    font-family: inherit;

    transition:
        background var(--transition),
        transform var(--transition);
}

.button:hover {
    background: var(--border-hover);
}

.button:active {
    transform: scale(0.98);
}

.button-small {
    padding: 5px 10px;
    font-size: 12px;
}

/* ===== TOPBAR ===== */

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ===== STATUS ===== */

.status {
    margin-top: 20px;

    padding: 15px;

    border-radius: var(--radius);

    background: var(--surface);

    border: 1px solid var(--border);
}

.status-error {
    border-color: #7f1d1d;
    color: #fecaca;
}

.status-success {
    border-color: #14532d;
    color: #bbf7d0;
}

/* ===== PRE ===== */

.pre {
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-word;
}

/* ===== FOOTER ===== */

.footer {
    margin-top: 40px;

    text-align: center;

    font-size: 13px;
    color: #64748b;
}

/* ===== MOBILE ===== */

@media (max-width: 640px) {

    .container {
        padding: 16px;
    }

    .button-group {
        flex-direction: column;
    }

    .button {
        width: 100%;
    }

}

/* Disclaimer */
.disclaimer {
    padding: 14px 16px;
    border: 1px solid #1e293b;
    border-radius: 12px;
    background: #020617;
    color: #94a3b8;
    font-size: 13px;
    line-height: 1.7;
}

.disclaimer strong {
    color: #e2e8f0;
}

/* Contact */
.contact-box {
    text-align: center;
}

.contact-box p {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.contact-email {
    font-size: 18px;
    font-weight: 600;
    color: #e2e8f0;
    margin: 18px 0;
    word-break: break-word;
}