/* ─── Reset & Base ──────────────────────────────────────────────────────────── */

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

body {
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: #1a1a2e;
    background-color: #f8f9fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: #4361ee;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #3a0ca3;
}

/* ─── Layout ────────────────────────────────────────────────────────────────── */

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

main {
    flex: 1;
    padding: 2rem 0;
}

/* ─── Navbar ────────────────────────────────────────────────────────────────── */

.navbar {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

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

.navbar-brand {
    color: #fff !important;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.navbar-nav {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.navbar-nav a {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    transition: color 0.2s ease;
}

.navbar-nav a:hover {
    color: #fff;
}

/* ─── Hero ──────────────────────────────────────────────────────────────────── */

.hero {
    text-align: center;
    padding: 3rem 0 2rem;
}

.hero h1 {
    font-size: 2.5rem;
    color: #1a1a2e;
    margin-bottom: 0.75rem;
}

.hero p {
    font-size: 1.15rem;
    color: #555;
    max-width: 600px;
    margin: 0 auto;
}

/* ─── Items Section ─────────────────────────────────────────────────────────── */

.items-section {
    margin-top: 2rem;
}

.items-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #1a1a2e;
}

.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.item-card {
    background: #fff;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.item-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.item-card h3 {
    color: #1a1a2e;
    margin-bottom: 0.5rem;
}

.item-card p {
    color: #555;
    margin-bottom: 0.75rem;
}

.item-card small {
    color: #888;
    font-size: 0.85rem;
}

.empty-state {
    text-align: center;
    color: #888;
    padding: 2rem;
    background: #fff;
    border-radius: 10px;
    border: 2px dashed #ddd;
}

/* ─── About ─────────────────────────────────────────────────────────────────── */

.about-section {
    max-width: 700px;
}

.about-section h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.about-section p {
    margin-bottom: 1rem;
    color: #444;
}

.about-section code {
    background: #e9ecef;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9rem;
}

/* ─── Footer ────────────────────────────────────────────────────────────────── */

.footer {
    background: #1a1a2e;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 3rem;
}
