/* Birdiqo — minimal Phase 1 stylesheet.
   Palette inspired by fairway green + sand. */

:root {
    --fairway: #0c2818;
    --fairway-2: #14422a;
    --green: #2e7d4f;
    --sand: #e8dcc4;
    --sand-2: #f4ecd8;
    --ink: #0f1410;
    --ink-2: #3a4640;
    --line: #d5cdb6;
    --danger: #c0392b;
    --accent: #f3a712;
    --radius: 10px;
    --shadow: 0 4px 16px rgba(12, 40, 24, .08);
    --maxw: 1100px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, system-ui, sans-serif;
    color: var(--ink);
    background: var(--sand-2);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-family: "Space Grotesk", "Inter", sans-serif; letter-spacing: -.01em; line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: 1.5rem; margin-top: 1.5em; }
h3 { font-size: 1.1rem; margin-top: 1.25em; }
p { margin: 0 0 1em; }
.lead { font-size: 1.2rem; color: var(--ink-2); }
.muted { color: var(--ink-2); font-size: .95rem; }
code { background: var(--sand); padding: 2px 6px; border-radius: 4px; font-size: .9em; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Topbar */
.topbar { background: var(--fairway); color: #fff; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; }
.topbar .brand { color: #fff; font-weight: 700; font-size: 1.2rem; letter-spacing: .02em; }
.topbar nav a { color: rgba(255,255,255,.85); margin-left: 16px; }
.topbar nav a:hover { color: #fff; }

/* Hero (Phase 1 landing) */
.hero { padding: 48px 0; }
.status { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-top: 32px; box-shadow: var(--shadow); }
.status dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0 0 1em; }
.status dt { font-weight: 600; color: var(--ink-2); }
.status dd { margin: 0; }

/* Buttons */
.btn {
    display: inline-block;
    background: var(--green);
    color: #fff;
    padding: 10px 18px;
    border-radius: var(--radius);
    font-weight: 600;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}
.btn:hover { background: var(--fairway-2); text-decoration: none; }
.btn.ghost { background: transparent; color: var(--green); border: 1px solid var(--green); }
.btn.danger { background: var(--danger); }

/* Footer */
.site-footer { padding: 32px 0; color: var(--ink-2); font-size: .9rem; text-align: center; margin-top: 64px; border-top: 1px solid var(--line); }

/* Forms */
form.stack { display: flex; flex-direction: column; gap: 12px; max-width: 380px; }
label { font-weight: 600; font-size: .9rem; color: var(--ink-2); }
input[type="text"], input[type="email"], input[type="password"], input[type="number"], textarea, select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    background: #fff;
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--green); outline-offset: 1px; }
.alert { padding: 12px 14px; border-radius: var(--radius); margin-bottom: 16px; }
.alert.error { background: #fdecea; color: var(--danger); border: 1px solid #f5c2bd; }
.alert.success { background: #e8f5e9; color: var(--fairway); border: 1px solid #b8d7c2; }

/* ---------- Admin shell ---------- */
.admin-layout { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.admin-side { background: var(--fairway); color: #fff; padding: 24px 0; }
.admin-side .brand { display: block; color: #fff; font-weight: 700; font-size: 1.2rem; padding: 0 24px 16px; border-bottom: 1px solid rgba(255,255,255,.08); margin-bottom: 12px; }
.admin-side nav a { display: block; color: rgba(255,255,255,.78); padding: 10px 24px; border-left: 3px solid transparent; }
.admin-side nav a:hover { background: rgba(255,255,255,.05); color: #fff; text-decoration: none; }
.admin-side nav a.active { background: rgba(255,255,255,.08); color: #fff; border-left-color: var(--accent); }
.admin-side .logout { padding: 24px; font-size: .85rem; color: rgba(255,255,255,.5); margin-top: auto; }
.admin-side .logout a { color: rgba(255,255,255,.7); }

.admin-main { padding: 32px 40px; background: var(--sand-2); }
.admin-main h1 { margin-top: 0; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; margin: 24px 0; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.tile .n { font-size: 2rem; font-weight: 700; color: var(--fairway); display: block; }
.tile .l { color: var(--ink-2); font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; }

.table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.table th, .table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.table th { background: var(--sand); font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); }
.table tr:last-child td { border-bottom: none; }

/* Login screen (centered card) */
.login-screen { min-height: 100vh; display: grid; place-items: center; background: var(--fairway); }
.login-card { background: #fff; padding: 32px; border-radius: var(--radius); box-shadow: 0 12px 40px rgba(0,0,0,.2); width: 100%; max-width: 400px; }
.login-card h1 { font-size: 1.5rem; margin-bottom: 4px; }
.login-card .sub { color: var(--ink-2); margin-bottom: 24px; }

/* Mobile */
@media (max-width: 720px) {
    .admin-layout { grid-template-columns: 1fr; }
    .admin-side { padding: 16px; }
    .admin-side nav { display: flex; flex-wrap: wrap; gap: 4px; }
    .admin-side nav a { padding: 6px 12px; border-left: none; border-radius: 6px; }
    .admin-main { padding: 16px; }
}
