@import url('https://fonts.googleapis.com/css2?family=Geist:wght@100..900&display=swap');

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

:root {
    /* Base Variables (Light Mode Default) */
    --background: #ffffff;
    --foreground: #09090b;
    --card: #ffffff;
    --card-border: #e4e4e7;
    --muted: #71717a;
    --muted-bg: #f4f4f5;
    --radius: 0.5rem;
    --font-geist: "Geist", sans-serif;
}

@media (prefers-color-scheme: dark) {
    :root {
        --background: #09090b;
        --foreground: #fafafa;
        --card: #09090b;
        --card-border: #27272a;
        --muted: #a1a1aa;
        --muted-bg: #18181b;
    }
}

body {
    background-color: var(--background);
    color: var(--foreground);
    font-family: var(--font-geist);
    -webkit-font-smoothing: antialiased;
    margin: 0;
    line-height: 1.6;
}

/* Layout System */
.container { max-width: 768px; margin: 0 auto; padding: 0 1.25rem; }
.flex-row { display: flex; justify-content: space-between; align-items: center; }
.grid { display: grid; gap: 0.75rem; grid-template-columns: repeat(2, 1fr); }

@media (max-width: 640px) {
    .grid { grid-template-columns: 1fr; }
}

/* Shadcn Component Architecture */
.cn-card {
    background-color: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.2s, border-color 0.2s;
}

.cn-card:hover {
    background-color: var(--muted-bg);
}

.heading {
    font-weight: 700;
    letter-spacing: -0.04em;
    color: var(--foreground);
}

.subtext {
    color: var(--muted);
    font-size: 0.875rem;
}

.badge {
    font-size: 11px;
    font-weight: 600;
    background: var(--muted-bg);
    padding: 2px 8px;
    border-radius: 6px;
    border: 1px solid var(--card-border);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Spacing Utilities */
.space-y-xl { margin-top: 4rem; }
.space-y-md { margin-top: 2rem; }
.pb-lg { padding-bottom: 3rem; }

.truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}
