/**
 * Shared page layout styles.
 *
 * Applies to content pages that follow the standard card-based layout.
 * Pair with `body.centered` from base.css for a centred column layout.
 */

/* ── Content card ───────────────────────────────────────────────────────── */

.page-card {
    background: var(--white);
    border: 1px solid var(--gray-300);
    padding: 1.25rem;
    margin: 1.25rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: min(600px, 95vw);
}

/* Card header row: title on the left, optional action on the right */
.page-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;

    & h1 {
        margin: 0;
        font-size: 1.2rem;
        color: var(--secondary);
    }
}

/* ── Page-level heading (outside a card) ────────────────────────────────── */

.page-title {
    color: var(--secondary);
    margin-bottom: 1rem;
}

/* ── Empty / placeholder state ──────────────────────────────────────────── */

.empty-state {
    text-align: center;
    color: var(--gray-500);
    padding: 1.25rem 0;
    font-size: 0.95rem;
}

/* ── Bottom navigation links (e.g. Logout) ──────────────────────────────── */

.nav-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    font-size: 1rem;

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

        &:hover {
            text-decoration: underline;
        }
    }
}

/* ── Mobile ──────────────────────────────────────────────────────────────── */

@media (max-width: 767px) {
    .page-card {
        margin: 0.75rem;
        padding: 1.25rem 1rem;
        width: auto;
    }
}
