:root {
    --background: 0 0% 100%;
    --foreground: 0 0% 3.9%;
    --card: 0 0% 100%;
    --card-foreground: 0 0% 3.9%;
    --popover: 0 0% 100%;
    --popover-foreground: 0 0% 3.9%;
    --primary: 0 0% 9%;
    --primary-foreground: 0 0% 98%;
    --secondary: 0 0% 96.1%;
    --secondary-foreground: 0 0% 9%;
    --muted: 0 0% 96.1%;
    --muted-foreground: 0 0% 45.1%;
    --accent: 0 0% 96.1%;
    --accent-foreground: 0 0% 9%;
    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 0 0% 98%;
    --border: 0 0% 89.8%;
    --input: 0 0% 89.8%;
    --ring: 0 0% 3.9%;
    --radius: 0.5rem;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Article inner body width wrapper */
.article-body { max-width: 800px; margin: 0 auto; }

/* Navigation */
.nav {
    position: sticky;
    top: 0;
    background: hsl(var(--background));
    border-bottom: 1px solid hsl(var(--border));
    z-index: 100;
    padding: 1rem 0;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    text-decoration: none;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.live-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    border: none;
    border-radius: var(--radius);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
    white-space: nowrap;
}

.live-button:hover { background: hsl(var(--primary) / 0.9); transform: translateY(-1px); }
.live-button svg { flex-shrink: 0; }


/* Header */
.header { padding: 1rem 0; text-align: center; background: linear-gradient(135deg, hsl(var(--muted)) 0%, hsl(var(--background)) 100%); }
.header h1 { font-size: 2.5rem; font-weight: 700; margin-bottom: 1rem; }
.header p { font-size: 1.125rem; color: hsl(var(--muted-foreground)); max-width: 600px; margin: 0 auto; }

/* Board */
.main-content { padding: 2rem 0; }
.board-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.board-title { font-size: 1.25rem; font-weight: 600; }
.board-count { color: hsl(var(--muted-foreground)); font-size: 0.875rem; }
.board-list { display: grid; grid-template-columns: repeat(1, minmax(0, 1fr)); gap: 1rem; }
@media (min-width: 640px) { .board-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .board-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.board-item { position: relative; background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: var(--radius); padding: 1.5rem; cursor: pointer; transition: all 0.2s; }
.board-item:hover { background: hsl(var(--accent)); border-color: hsl(var(--primary)); }
.board-item .board-item-link { position: absolute; inset: 0; z-index: 5; text-decoration: none; color: transparent; }
.board-item-title { font-size: 1rem; font-weight: 600; margin-bottom: 0.5rem; }
.board-item-meta { display: flex; align-items: center; gap: 0.5rem; color: hsl(var(--muted-foreground)); font-size: 0.875rem; }
.board-item-description { color: hsl(var(--muted-foreground)); margin-top: 0.5rem; }

/* Footer */
.footer { margin-top: 4rem; padding: 2rem 0; border-top: 1px solid hsl(var(--border)); background: hsl(var(--muted) / 0.3); }
.footer-content { text-align: center; color: hsl(var(--muted-foreground)); font-size: 0.875rem; }
.footer-link { color: hsl(var(--foreground)); text-decoration: none; font-weight: 500; transition: color 0.2s; }
.footer-link:hover { color: hsl(var(--primary)); }

/* Floating */
.floating-button {
    position: fixed; bottom: 2rem; right: 2rem; z-index: 1000; display: flex; align-items: center; gap: 0.5rem;
    padding: 1rem 1.5rem; background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); border: 2px solid hsl(var(--primary)); border-radius: 50px; text-decoration: none; font-size: 0.875rem; font-weight: 600; box-shadow: 0 4px 12px rgba(0,0,0,.15), 0 0 20px rgba(0,0,0,.3); transition: all 0.3s ease; white-space: nowrap; animation: glow 2s ease-in-out infinite alternate;
}
@keyframes glow { from { box-shadow: 0 4px 12px rgba(0,0,0,.15), 0 0 20px rgba(0,0,0,.3);} to { box-shadow: 0 4px 12px rgba(0,0,0,.15), 0 0 30px rgba(0,0,0,.5), 0 0 40px rgba(0,0,0,.3);} }
.floating-button:hover { animation: none; box-shadow: 0 8px 20px rgba(0,0,0,.2), 0 0 40px rgba(0,0,0,.6); }
@media (max-width: 480px) { .floating-button svg { width: 14px; height: 14px; } }

/* Back to list */
.back-row { margin: 1rem 0; }
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: hsl(var(--muted-foreground));
    font-weight: 500;
}
.back-link:hover { color: hsl(var(--foreground)); }
