/* NORTHGROUND Tools — CI nach northground.eu (dunkel/warm, Creme-Akzent) */

@font-face {
    font-family: "Lexend";
    src: url("/assets/fonts/lexend-var.woff2") format("woff2");
    font-weight: 100 900;
    font-display: swap;
}
@font-face {
    font-family: "JetBrains Mono";
    src: url("/assets/fonts/jetbrains-mono-var.woff2") format("woff2");
    font-weight: 100 800;
    font-display: swap;
}

:root {
    --bg: #191817;
    --bg-soft: #1e1d1b;
    --surface: #1c1b1a;
    --text: #efe7e0;
    --muted: #96928e;
    --dim: #59554f;
    --accent: #ffe9d2;
    --accent-glow: rgba(255, 233, 210, 0.2);
    --glass-bg: rgba(255, 233, 210, 0.03);
    --glass-border: rgba(255, 233, 210, 0.08);
    --border: #222222;
    --btn-bg: #efe7e0;
    --btn-text: #191817;
    --btn-hover: #cfbdae;
    --radius: 0.75rem;
    --font-body: "Lexend", sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { height: 100%; }

body {
    min-height: 100vh;
    font-family: var(--font-body);
    color: var(--text);
    background:
        radial-gradient(1000px 480px at 50% -12%, rgba(255, 233, 210, 0.06), transparent 65%),
        var(--bg);
    -webkit-font-smoothing: antialiased;
}

.kicker {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--muted);
}

.wordmark {
    font-weight: 600;
    font-size: 2.4rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    line-height: 1.05;
    color: var(--text);
}
.wordmark span { color: var(--dim); }
.wordmark.small { font-size: 0.95rem; letter-spacing: 0.18em; }
.wordmark.small span { color: var(--muted); margin-left: 0.5em; font-weight: 400; }

/* ---------- Login ---------- */

.login-stage {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 1.5rem;
}

.login-card {
    width: min(24rem, 100%);
    background: linear-gradient(170deg, var(--glass-bg), transparent 60%), var(--surface);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 2.75rem 2.5rem 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.1rem;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
    animation: rise 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.login-logo {
    width: 4.5rem;
    height: auto;
    margin-bottom: 0.25rem;
    filter: drop-shadow(0 0 24px var(--accent-glow));
}

.login-hint { color: var(--muted); font-size: 0.9rem; line-height: 1.5; }

.login-error {
    align-self: stretch;
    font-size: 0.88rem;
    line-height: 1.45;
    color: #ff9d87;
    border: 1px solid rgba(255, 122, 89, 0.35);
    background: rgba(255, 122, 89, 0.08);
    border-radius: calc(var(--radius) / 2);
    padding: 0.65rem 0.8rem;
}

.btn-google {
    align-self: stretch;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 0.5rem;
    padding: 0.85rem 1rem;
    background: var(--btn-bg);
    color: var(--btn-text);
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
    border-radius: calc(var(--radius) / 1.5);
    transition: background 0.15s ease, transform 0.15s ease;
}
.btn-google:hover { background: var(--btn-hover); transform: translateY(-1px); }

.plain-link { color: var(--accent); text-decoration: none; }
.plain-link:hover { text-decoration: underline; }

/* ---------- Dashboard ---------- */

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--border);
    background: rgba(25, 24, 23, 0.8);
}

.topbar-brand { display: flex; align-items: center; gap: 0.75rem; }

.topbar-logo { width: 1.9rem; height: auto; }

.topbar-user { display: flex; align-items: center; gap: 1rem; }

.user-email {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--muted);
}

.btn-logout {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    background: none;
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) / 1.5);
    padding: 0.45rem 0.9rem;
    cursor: pointer;
    transition: color 0.15s ease, border-color 0.15s ease;
}
.btn-logout:hover { color: var(--accent); border-color: var(--dim); }

.dash {
    max-width: 72rem;
    margin: 0 auto;
    padding: 2.5rem 2rem 4rem;
}

.tile-grid {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
    gap: 1rem;
}

.tile {
    animation: rise 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) both;
    animation-delay: calc(var(--i) * 60ms);
}

.tile a {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    height: 100%;
    padding: 1.4rem 1.3rem 1.1rem;
    background: linear-gradient(170deg, var(--glass-bg), transparent 65%), var(--surface);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text);
    transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.tile a:hover {
    border-color: var(--dim);
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4), 0 0 24px var(--accent-dim, rgba(255, 233, 210, 0.06));
}

.tile-icon { font-size: 1.6rem; line-height: 1; }

.tile-title { font-weight: 600; font-size: 1.05rem; letter-spacing: 0.01em; }

.tile-desc { color: var(--muted); font-size: 0.85rem; line-height: 1.5; flex: 1; }

.tile-path {
    font-family: var(--font-mono);
    font-size: 0.66rem;
    letter-spacing: 0.08em;
    color: var(--dim);
    margin-top: 0.4rem;
}

.empty {
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    background: var(--bg-soft);
    padding: 3rem 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.empty-title { font-weight: 600; font-size: 1.05rem; }
.empty-hint { color: var(--muted); font-size: 0.88rem; }
.empty-hint code {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--accent);
}

@keyframes rise {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 40rem) {
    .topbar { padding: 1rem 1.25rem; flex-wrap: wrap; }
    .dash { padding: 1.75rem 1.25rem 3rem; }
    .user-email { display: none; }
    .wordmark { font-size: 1.9rem; }
}
