/* =========================================================
   Legal Quest - Normal Web App / Dashboard UI
   Path: /assets/styles.css
   Version: No BG, No Hero Card, No Floating Container
   ========================================================= */

/* ------------------------------
   Global Reset
------------------------------ */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --page-bg: #ffffff;
    --topbar-bg: #ffffff;

    --text-main: #111827;
    --text-muted: #6b7280;
    --text-soft: #4b5563;

    --border-light: #e5e7eb;
    --border-medium: #d1d5db;

    --accent: #f59e0b;
    --accent-soft: rgba(245, 158, 11, 0.16);
    --accent-light: #fff7ed;

    --button-dark: #111827;
    --surface-soft: #f9fafb;
    --surface-muted: #f3f4f6;
}

/* ------------------------------
   Base Page
------------------------------ */
html,
body {
    width: 100%;
    min-height: 100%;
    background: var(--page-bg);
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
}

/* ------------------------------
   Main Layout
------------------------------ */
.page-shell {
    width: 100%;
    min-height: 100vh;
    background: #ffffff;
}

/* This is no longer a visual card.
   It is now only a normal content-width wrapper. */
.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 34px 24px 42px;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

/* ------------------------------
   Header
------------------------------ */
.site-header {
    padding-bottom: 26px;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 28px;
}

.brand-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #111827;
    color: #ffffff;
    padding: 7px 13px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.brand-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    display: inline-block;
}

h1 {
    font-family: 'Libre Baskerville', Georgia, serif;
    color: var(--text-main);
    font-size: clamp(2.25rem, 4.5vw, 4rem);
    line-height: 1.08;
    font-weight: 700;
    letter-spacing: -0.055em;
    margin-bottom: 14px;
}

.site-subtitle {
    max-width: 780px;
    color: var(--text-muted);
    font-size: 1.02rem;
    line-height: 1.8;
}

/* ------------------------------
   Search Area
------------------------------ */
.search-panel {
    margin: 0 0 24px;
}

#searchForm {
    display: flex;
    gap: 12px;
    align-items: stretch;
}

.input-wrap {
    flex: 1;
    position: relative;
}

input,
button {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 1rem;
    border-radius: 12px;
    transition: all 0.22s ease;
}

input {
    width: 100%;
    min-height: 54px;
    padding: 14px 16px;
    border: 1px solid var(--border-medium);
    background: #ffffff;
    color: var(--text-main);
}

input::placeholder {
    color: #9ca3af;
}

input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-soft);
}

button {
    cursor: pointer;
    min-height: 54px;
    padding: 14px 24px;
    border: 1px solid var(--button-dark);
    background: var(--button-dark);
    color: #ffffff;
    font-weight: 800;
    letter-spacing: 0.04em;
    min-width: 125px;
}

button:hover {
    background: var(--accent);
    color: var(--text-main);
    border-color: var(--accent);
}

button:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(17, 24, 39, 0.14);
}

button:active {
    transform: translateY(1px);
}

/* ------------------------------
   Suggested Questions
------------------------------ */
.quick-questions {
    margin-bottom: 34px;
}

.suggestions-title {
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    margin-bottom: 14px;
}

#suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.question {
    display: inline-flex;
    align-items: center;
    padding: 9px 15px;
    background: #ffffff;
    color: var(--text-main);
    border: 1px solid var(--border-light);
    border-radius: 999px;
    cursor: pointer;
    font-size: 0.91rem;
    font-weight: 700;
    transition: all 0.22s ease;
}

.question:hover {
    background: var(--surface-muted);
    border-color: var(--border-medium);
}

/* ------------------------------
   Result Area
------------------------------ */
#summary {
    font-size: 1rem;
    line-height: 1.85;
    margin-top: 24px;
    margin-bottom: 24px;
    color: #1f2937;
}

#summary h2 {
    font-family: 'Libre Baskerville', Georgia, serif;
    font-size: clamp(1.55rem, 3vw, 2.2rem);
    line-height: 1.35;
    color: var(--text-main);
    margin: 28px 0 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-light);
}

#summary p {
    margin-bottom: 16px;
}

.processing-box {
    padding: 15px 16px;
    border-radius: 12px;
    background: var(--accent-light);
    border: 1px solid #fed7aa;
    color: #9a3412;
    font-weight: 700;
}

/* ------------------------------
   Metadata
------------------------------ */
#metadata {
    margin-top: 28px;
    padding: 16px;
    border-radius: 12px;
    background: var(--surface-soft);
    border: 1px solid var(--border-light);
    font-size: 0.92rem;
    color: var(--text-soft);
}

#metadata:empty {
    display: none;
}

#metadata h2 {
    font-size: 1rem;
    margin-bottom: 8px;
    color: var(--text-main);
}

/* ------------------------------
   Footer
------------------------------ */
footer {
    margin-top: 42px;
    padding-top: 22px;
    border-top: 1px solid var(--border-light);
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ------------------------------
   Mobile Responsive
------------------------------ */
@media (max-width: 768px) {
    .container {
        padding: 24px 16px 34px;
    }

    .site-header {
        padding-bottom: 22px;
        margin-bottom: 24px;
    }

    h1 {
        font-size: clamp(2.15rem, 12vw, 3.1rem);
    }

    .site-subtitle {
        font-size: 0.98rem;
    }

    #searchForm {
        flex-direction: column;
    }

    button {
        width: 100%;
    }

    #suggestions {
        gap: 9px;
    }

    .question {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 420px) {
    .container {
        padding: 20px 14px 30px;
    }

    .brand-kicker {
        font-size: 0.68rem;
        padding: 6px 11px;
    }

    input,
    button {
        font-size: 0.95rem;
    }
}