/* ============================================
   Objectgrams — style.css
   (Pure Riley Walz aesthetic: Zero fluff, high utility)
   ============================================ */

:root {
    --bg: #ffffff;
    --text: #111111;
    --text-muted: #6b7280;
    --border: #e5e7eb;
    --accent: #111111; /* Keep it raw/black instead of blue */
    --hover-bg: #f9fafb;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.5;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

main {
    max-width: 600px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
}

a {
    color: var(--text);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

strong {
    font-weight: 600;
}

/* ---- Header ---- */
header {
    margin-bottom: 1.75rem;
}

.emoji-badge {
    font-size: 2rem;
    display: inline-block;
    margin-bottom: 0.5rem;
}

h1 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.25rem;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* ---- Explainer ---- */
.explainer {
    margin-bottom: 3rem;
    font-size: 1.05rem;
}

.explainer p {
    margin-bottom: 1rem;
}

.explainer p:last-child {
    margin-bottom: 0;
}

/* ---- Items Section ---- */
.items-section {
    margin-bottom: 4rem;
}

.items-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
}

.items-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
}

.updated {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ---- Items List ---- */
.items-list {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

/* ---- Item Row ---- */
.item-row {
    display: flex;
    align-items: center;
    padding: 0.6rem 1rem;
    border-bottom: 1px solid var(--border);
    text-decoration: none !important;
    color: var(--text);
    transition: background-color 0.1s ease;
}

.item-row:last-child {
    border-bottom: none;
}

.item-row:hover {
    background-color: var(--hover-bg);
}

.item-image {
    width: 48px;
    height: 48px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.item-image img, .item-image svg {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.item-details {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.item-name {
    font-size: 1rem;
    font-weight: 500;
}

.item-price {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-left: 1rem;
}

/* ---- Empty State ---- */
.items-empty {
    padding: 2rem;
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
}

/* ---- Footer ---- */
footer {
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    font-size: 0.9rem;
    color: var(--text-muted);
}

footer p {
    margin-bottom: 0.5rem;
}

footer p:last-child {
    margin-bottom: 0;
}

/* ---- Responsive ---- */
@media (max-width: 500px) {
    .item-row {
        align-items: flex-start;
        padding: 1rem;
    }
    .item-price {
        margin-left: 0;
        margin-top: 0.25rem;
    }
    .item-details {
        flex-direction: column;
    }
    .item-image {
        margin-right: 1rem;
    }
}
