:root {
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --text-main: #1a1a1a;
    --text-sub: #666666;
    --accent: #007aff;
    --radius: 20px;
    --max-width: 600px;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    /* Centers everything on the screen */
    display: flex;
    justify-content: center; 
    min-height: 100vh;
    padding: 40px 20px;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    /* Aligns profile and grid in a centered column */
    display: flex;
    flex-direction: column;
    align-items: center; 
}

.profile {
    text-align: center;
    margin-bottom: 40px;
    width: 100%;
}

.avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #eee, #ccc);
    border-radius: 50%;
    margin: 0 auto 15px;
}

/* Shelf Grid Layout */
.shelf-grid {
    display: grid;
    /* 2 columns of equal width */
    grid-template-columns: repeat(2, 1fr); 
    gap: 16px;
    width: 100%; /* Ensures it fills the container up to max-width */
}

.card {
    background: var(--card-bg);
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card span {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-sub);
    margin-bottom: 8px;
}

.card h3 { margin: 0; font-size: 1.1rem; }
.card p { margin: 4px 0 0; font-size: 0.9rem; color: var(--text-sub); }

/* Mobile Responsive */
@media (max-width: 480px) {
    .shelf-grid {
        grid-template-columns: 1fr; /* Stack cards on mobile */
    }
}
