/* Intelmann Cockpit — Glass-Dashboard in Intelmann-Farben, zurückhaltende Radien */

:root {
    --text: #192b47;
    --muted: #5c6d8c;
    --steel: #283f6a;
    --accent: #3e619a;
    --glass: rgba(255, 255, 255, 0.75);
    --glass-strong: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(180, 197, 222, 0.55);
    --shadow: 0 8px 26px rgba(25, 43, 71, 0.09);
    --radius: 0.5rem;
    --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
}

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

html { height: 100%; }

body {
    min-height: 100vh;
    font-family: var(--font);
    color: var(--text);
    background: #f7f9fc;
    -webkit-font-smoothing: antialiased;
}

/* Fast weißer Grund mit einem Hauch Marine */
.sky {
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(60rem 42rem at 15% -10%, rgba(197, 211, 232, 0.35) 0%, transparent 60%),
        radial-gradient(55rem 40rem at 90% 8%, rgba(197, 211, 232, 0.28) 0%, transparent 62%),
        linear-gradient(175deg, #fbfcfe 0%, #f7f9fc 50%, #f2f5fa 100%);
}

.glass {
    background: var(--glass);
    -webkit-backdrop-filter: blur(20px) saturate(1.3);
    backdrop-filter: blur(20px) saturate(1.3);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

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

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

.login-card {
    width: min(24rem, 100%);
    padding: 2.75rem 2.5rem 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.1rem;
    border-top: 3px solid var(--accent);
    animation: rise 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.login-logo {
    width: min(14rem, 85%);
    height: auto;
}

.wordmark {
    font-weight: 700;
    font-size: 2rem;
    letter-spacing: -0.02em;
    color: var(--steel);
}

.login-hint { color: var(--muted); font-size: 0.92rem; }

.login-error {
    align-self: stretch;
    font-size: 0.88rem;
    line-height: 1.45;
    color: #9c3a24;
    background: rgba(255, 137, 104, 0.14);
    border: 1px solid rgba(214, 106, 77, 0.35);
    border-radius: var(--radius);
    padding: 0.7rem 0.9rem;
}

.btn-google {
    align-self: stretch;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 0.4rem;
    padding: 0.85rem 1.4rem;
    background: var(--steel);
    color: #ffffff;
    font-family: var(--font);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border-radius: var(--radius);
    transition: background 0.15s ease, transform 0.15s ease;
}
.btn-google:hover { background: var(--accent); transform: translateY(-1px); }
.btn-google svg { background: #ffffff; border-radius: 50%; padding: 2px; }

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

/* ---------- Topbar ---------- */

.topbar {
    position: sticky;
    top: 0.75rem;
    z-index: 10;
    margin: 0.75rem auto 0;
    max-width: 72rem;
    width: calc(100% - 2rem);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 1.4rem;
}

.topbar-logo { height: 2.4rem; width: auto; justify-self: center; }

.topbar-title {
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.14em;
    color: var(--steel);
    justify-self: start;
}

.topbar-user { display: flex; align-items: center; gap: 0.9rem; justify-self: end; }

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

.btn-logout {
    font-family: var(--font);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--steel);
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(40, 63, 106, 0.3);
    border-radius: var(--radius);
    padding: 0.45rem 1rem;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}
.btn-logout:hover { background: #ffffff; }

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

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

/* Mood-Kacheln */

.mood-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.mood-card {
    padding: 1.4rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    animation: rise 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both;
    animation-delay: calc(var(--i) * 70ms);
}

.mood-greet {
    border-top: 3px solid var(--accent);
}

.mood-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--muted);
}

.mood-title {
    font-size: 1.65rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--steel);
}

.mood-big {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
    color: var(--steel);
}

.mood-sub { color: var(--muted); font-size: 0.85rem; }

.dot {
    display: inline-block;
    width: 0.55em;
    height: 0.55em;
    border-radius: 50%;
    background: #2fbf71;
    box-shadow: 0 0 0 3px rgba(47, 191, 113, 0.2);
    vertical-align: 0.05em;
}

/* Tool-Kacheln */

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

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

.tile a {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    height: 100%;
    padding: 1.4rem 1.4rem 1.25rem;
    text-decoration: none;
    color: var(--text);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.tile a:hover {
    background: var(--glass-strong);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(25, 43, 71, 0.18);
}

.tile-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    font-size: 1.5rem;
    line-height: 1;
    border-radius: var(--radius);
    background: linear-gradient(150deg, #4a7bc0, var(--steel));
    box-shadow: 0 5px 14px rgba(40, 63, 106, 0.3);
}

.tile-title { font-weight: 700; font-size: 1.02rem; letter-spacing: -0.01em; color: var(--steel); }

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

/* Leerer Zustand */

.empty {
    padding: 3rem 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.empty-title { font-weight: 700; font-size: 1.05rem; color: var(--steel); }
.empty-hint { color: var(--muted); font-size: 0.88rem; }
.empty-hint code {
    font-family: ui-monospace, "Cascadia Mono", monospace;
    font-size: 0.8rem;
    color: var(--accent);
}

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

@media (max-width: 52rem) {
    .mood-grid { grid-template-columns: 1fr 1fr; }
    .mood-greet { grid-column: 1 / -1; }
}

@media (max-width: 40rem) {
    .user-email { display: none; }
    .dash { padding: 1.5rem 0.9rem 3rem; }
    .mood-title { font-size: 1.35rem; }
}
