/* shadcn/ui inspired CSS for HTMAA 2025 Documentation Site */

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

:root {
    --background: 0 0% 100%;
    --foreground: 222.2 84% 4.9%;
    --muted: 210 40% 98%;
    --muted-foreground: 215.4 16.3% 46.9%;
    --border: 214.3 31.8% 91.4%;
    --accent: 210 40% 98%;
    --accent-foreground: 222.2 84% 4.9%;
    --primary: 222.2 47.4% 11.2%;
    --primary-foreground: 210 40% 98%;
    --secondary: 210 40% 96%;
    --secondary-foreground: 222.2 84% 4.9%;
    --ring: 215 20.2% 65.1%;
}

body {
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    line-height: 1.7;
    color: hsl(var(--foreground));
    background-color: hsl(var(--background));
    max-width: 1024px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

header {
    border-bottom: 1px solid hsl(var(--border));
    margin-bottom: 3rem;
    padding-bottom: 2rem;
}

h1 {
    font-size: 2.25rem;
    font-weight: 600;
    letter-spacing: -0.025em;
    margin-bottom: 0.5rem;
    color: hsl(var(--primary));
}

h2 {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.025em;
    margin: 3rem 0 1.5rem 0;
    color: hsl(var(--primary));
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 2rem 0 1rem 0;
    color: hsl(var(--primary));
}

p {
    margin-bottom: 1.5rem;
    color: hsl(var(--muted-foreground));
    leading-trim: both;
    text-edge: cap;
}

ul, ol {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
    color: hsl(var(--muted-foreground));
}

/* Navigation */
nav {
    margin: 2rem 0;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-left: 0;
}

nav a {
    color: hsl(var(--muted-foreground));
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid hsl(var(--border));
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 150ms ease;
    background-color: hsl(var(--background));
}

nav a:hover {
    background-color: hsl(var(--accent));
    color: hsl(var(--accent-foreground));
    border-color: hsl(var(--border));
}

nav a.current {
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    border-color: hsl(var(--primary));
}

/* Homepage specific styles */
.intro {
    margin: 3rem 0;
    padding: 2rem;
    background-color: hsl(var(--muted));
    border: 1px solid hsl(var(--border));
    border-radius: 8px;
}

.intro h2 {
    margin-top: 0;
    margin-bottom: 1rem;
}

.intro p {
    color: hsl(var(--foreground));
    font-size: 1rem;
}

.project-overview {
    margin: 3rem 0;
}

/* Week 1 specific styles */
.assignment-grid {
    display: grid;
    gap: 1.5rem;
    margin: 3rem 0;
}

.assignment {
    padding: 2rem;
    border: 1px solid hsl(var(--border));
    border-radius: 8px;
    background-color: hsl(var(--background));
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
}

.assignment h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: hsl(var(--primary));
}

/* Week 2 specific styles */
.characterization-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 0.875rem;
    border: 1px solid hsl(var(--border));
    border-radius: 8px;
    overflow: hidden;
}

.characterization-table th,
.characterization-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid hsl(var(--border));
}

.characterization-table th {
    background-color: hsl(var(--muted));
    font-weight: 600;
    color: hsl(var(--foreground));
}

.characterization-table td {
    color: hsl(var(--muted-foreground));
}

.characterization-table tr:last-child td {
    border-bottom: none;
}

.construction-kit {
    background-color: hsl(var(--muted));
    border: 1px solid hsl(var(--border));
    padding: 2rem;
    border-radius: 8px;
    margin: 3rem 0;
}

.parameters {
    background-color: hsl(var(--background));
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid hsl(var(--border));
    margin: 1.5rem 0;
}

.vinyl-section {
    background-color: hsl(142 76% 96%);
    border: 1px solid hsl(142 76% 86%);
    padding: 2rem;
    border-radius: 8px;
    margin: 3rem 0;
}

.completed-badge {
    display: inline-flex;
    align-items: center;
    background-color: hsl(142 76% 36%);
    color: hsl(142 76% 96%);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-left: 0.5rem;
}

/* Image styles */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.image-item {
    text-align: center;
    background-color: hsl(var(--background));
    border: 1px solid hsl(var(--border));
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
}

.image-item img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border: none;
}

.image-item p {
    margin: 0;
    padding: 1rem;
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    background-color: hsl(var(--muted));
}

img.single {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem 0;
    border: 1px solid hsl(var(--border));
}

/* Footer */
footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid hsl(var(--border));
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
    text-align: center;
}

/* Responsive design */
@media (max-width: 768px) {
    body {
        padding: 2rem 1rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.25rem;
    }
    
    nav ul {
        gap: 0.25rem;
    }
    
    .image-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .characterization-table {
        font-size: 0.75rem;
    }
    
    .characterization-table th,
    .characterization-table td {
        padding: 0.75rem;
    }
    
    .construction-kit,
    .vinyl-section,
    .intro {
        padding: 1.5rem;
    }
    
    .assignment {
        padding: 1.5rem;
    }
}
