.home-page {
    max-width: var(--screen-md);
    margin: 3rem auto;
    padding: 0 1rem;
}

.home-welcome {
    margin-bottom: 2rem;

    & .home-title {
        font-size: 1.75rem;
        font-weight: 700;
        color: var(--text-primary);
        margin: 0 0 0.375rem;
    }

    & .home-subtitle {
        font-size: 1rem;
        color: var(--text-secondary);
        margin: 0;
    }
}

.home-nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.home-quick-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.home-action-spin {
    animation: home-spin 0.8s linear infinite;
}

@keyframes home-spin {
    to { transform: rotate(360deg); }
}

.home-nav-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    padding: 1.75rem 1rem;
    background-color: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    text-decoration: none;
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        transform 0.15s ease;

    &:hover {
        border-color: var(--primary-light);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
        transform: translateY(-2px);
        text-decoration: none;
    }

    & .home-nav-icon {
        font-size: 2rem;
        color: var(--primary);
    }

    & .home-nav-label {
        font-size: 0.9rem;
        font-weight: 600;
        color: var(--text-primary);
    }
}

/* Guest / login view */

.home-page-guest {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    margin-top: 0;
}

.home-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;

    & .home-hero-icon {
        font-size: 4rem;
        color: var(--primary);
    }

    & .home-title {
        font-size: 2.5rem;
        font-weight: 700;
        color: var(--text-primary);
        margin: 0;
    }

    & .home-subtitle {
        font-size: 1.05rem;
        color: var(--text-secondary);
        max-width: 28rem;
        margin: 0;
    }
}

@media (max-width: 640px) {
    .home-page {
        margin: 2rem auto;
    }

    .home-nav-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
